xref: /freebsd/kerberos5/usr.bin/krb5-config/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1*a30235a4SEmmanuel VadotPACKAGE=	kerberos
2*a30235a4SEmmanuel Vadot
3cdbf1b6bSRuslan ErmilovSCRIPTS=krb5-config
4fb0007c7SAssar WesterlundMAN=	krb5-config.1
5069b88ebSMark Murray
6fb0007c7SAssar WesterlundCLEANFILES= krb5-config
7ec4ca830SAssar Westerlund
892aea66eSAlex Richardson# In order for this to work on MacOS we need to set LC_ALL=C since the
992aea66eSAlex Richardson# krb5-config.in file contains characters that will be rejected by MacOS with
1092aea66eSAlex Richardson# a UTF-8 locale (see https://stackoverflow.com/a/23584470/894271)
1192aea66eSAlex Richardson# TODO: Should we just require LC_ALL=C during the build?
12ec4ca830SAssar Westerlundkrb5-config: krb5-config.in
1392aea66eSAlex Richardson	env LC_ALL=C sed -e "s,@PACKAGE@,FreeBSD heimdal,g" \
14639f40f8SKyle Evans	    -e "s,@VERSION@,1.1.0,g" \
15639f40f8SKyle Evans	    -e "s,@prefix@,/usr,g" \
16639f40f8SKyle Evans	    -e "s,@exec_prefix@,/usr,g" \
17639f40f8SKyle Evans	    -e "s,@libdir@,${LIBDIR},g" \
18639f40f8SKyle Evans	    -e "s,@includedir@,${INCLUDEDIR},g" \
19639f40f8SKyle Evans	    -e "s,@LIB_crypt@,-lcrypt,g" \
20639f40f8SKyle Evans	    -e "s,@LIB_dbopen@,,g" \
21639f40f8SKyle Evans	    -e "s,@LIB_hcrypto_appl@,-lcrypto,g" \
22639f40f8SKyle Evans	    -e "s,@LIB_pkinit@,-lhx509,g" \
23639f40f8SKyle Evans	    -e "s,@LIB_dlopen@,,g" \
24639f40f8SKyle Evans	    -e "s,@LIB_door_create@,,g" \
25639f40f8SKyle Evans	    -e "s,@PTHREAD_LIBADD@,-pthread,g" \
26639f40f8SKyle Evans	    -e "s,@LIBS@,,g" \
27e5dc3b75SDoug Rabson	    -e "s,@INCLUDE_hcrypto@,,g" \
28fb0007c7SAssar Westerlund	    ${.ALLSRC} > ${.TARGET}
29ec4ca830SAssar Westerlund
30ec4ca830SAssar Westerlund.include <bsd.prog.mk>
31ec4ca830SAssar Westerlund
32ec4ca830SAssar Westerlund.PATH: ${KRB5DIR}/tools
33