xref: /freebsd/kerberos5/usr.bin/krb5-config/Makefile (revision 643ac419fafba89f5adda0e0ea75b538727453fb)
1# $FreeBSD$
2
3PACKAGE=	kerberos
4
5SCRIPTS=krb5-config
6MAN=	krb5-config.1
7
8CLEANFILES= krb5-config
9
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?
14krb5-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" \
28	    -e "s,@LIBS@,,g" \
29	    -e "s,@INCLUDE_hcrypto@,,g" \
30	    ${.ALLSRC} > ${.TARGET}
31
32.include <bsd.prog.mk>
33
34.PATH: ${KRB5DIR}/tools
35