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