6 CLEANFILES= krb5-config
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?
12 krb5-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" \
27 -e "s,@INCLUDE_hcrypto@,,g" \
28 ${.ALLSRC} > ${.TARGET}
30 .include <bsd.prog.mk>
32 .PATH: ${KRB5DIR}/tools