xref: /freebsd/kerberos5/usr.bin/krb5-config/Makefile (revision b51f459a2098622c31ed54f5c1bf0e03efce403b)
1# $FreeBSD$
2
3SCRIPTS=krb5-config
4MAN=	krb5-config.1
5
6CLEANFILES= krb5-config
7
8# In order for this to work on MacOS we need to set LC_ALL=C since the
9# krb5-config.in file contains characters that will be rejected by MacOS with
10# a UTF-8 locale (see https://stackoverflow.com/a/23584470/894271)
11# TODO: Should we just require LC_ALL=C during the build?
12krb5-config: krb5-config.in
13	env LC_ALL=C sed -e "s,@PACKAGE@,FreeBSD heimdal,g" \
14	    -e "s,@VERSION@,1.1.0,g" \
15	    -e "s,@prefix@,/usr,g" \
16	    -e "s,@exec_prefix@,/usr,g" \
17	    -e "s,@libdir@,${LIBDIR},g" \
18	    -e "s,@includedir@,${INCLUDEDIR},g" \
19	    -e "s,@LIB_crypt@,-lcrypt,g" \
20	    -e "s,@LIB_dbopen@,,g" \
21	    -e "s,@LIB_hcrypto_appl@,-lcrypto,g" \
22	    -e "s,@LIB_pkinit@,-lhx509,g" \
23	    -e "s,@LIB_dlopen@,,g" \
24	    -e "s,@LIB_door_create@,,g" \
25	    -e "s,@PTHREAD_LIBADD@,-pthread,g" \
26	    -e "s,@LIBS@,,g" \
27	    -e "s,@INCLUDE_hcrypto@,,g" \
28	    ${.ALLSRC} > ${.TARGET}
29
30.include <bsd.prog.mk>
31
32.PATH: ${KRB5DIR}/tools
33