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