aboutsummaryrefslogtreecommitdiff
path: root/kerberos5/usr.bin/krb5-config/Makefile
blob: 5224f7c54503ea453b5e2c09958172927da26db7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $FreeBSD$

SCRIPTS=krb5-config
MAN=	krb5-config.1

CLEANFILES= krb5-config

# In order for this to work on MacOS we need to set LC_ALL=C since the
# krb5-config.in file contains characters that will be rejected by MacOS with
# a UTF-8 locale (see https://stackoverflow.com/a/23584470/894271)
# TODO: Should we just require LC_ALL=C during the build?
krb5-config: krb5-config.in
	env LC_ALL=C sed -e "s,@PACKAGE@,FreeBSD heimdal,g" \
	    -e "s,@VERSION@,1.1.0,g" \
	    -e "s,@prefix@,/usr,g" \
	    -e "s,@exec_prefix@,/usr,g" \
	    -e "s,@libdir@,${LIBDIR},g" \
	    -e "s,@includedir@,${INCLUDEDIR},g" \
	    -e "s,@LIB_crypt@,-lcrypt,g" \
	    -e "s,@LIB_dbopen@,,g" \
	    -e "s,@LIB_hcrypto_appl@,-lcrypto,g" \
	    -e "s,@LIB_pkinit@,-lhx509,g" \
	    -e "s,@LIB_dlopen@,,g" \
	    -e "s,@LIB_door_create@,,g" \
	    -e "s,@PTHREAD_LIBADD@,-pthread,g" \
	    -e "s,@LIBS@,,g" \
	    -e "s,@INCLUDE_hcrypto@,,g" \
	    ${.ALLSRC} > ${.TARGET}

.include <bsd.prog.mk>

.PATH: ${KRB5DIR}/tools