aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-09-19 06:11:11 +0800
committermat <mat@FreeBSD.org>2015-09-19 06:11:11 +0800
commit1fda478ad56eb9bfa3247fdbeeb780255d427d63 (patch)
treef346d101e510ce28dc41dc17b12041c487fa1a03 /Mk/Uses
parentab80f1a9b04c10d561b53dbcea93427b99b8965a (diff)
downloadfreebsd-ports-gnome-1fda478ad56eb9bfa3247fdbeeb780255d427d63.tar.gz
freebsd-ports-gnome-1fda478ad56eb9bfa3247fdbeeb780255d427d63.tar.zst
freebsd-ports-gnome-1fda478ad56eb9bfa3247fdbeeb780255d427d63.zip
Fixup gssapi.mk, no need to support more releases than needed, and use
the correct way to insert targets in the pipe. Sponsored by: Absolight
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/gssapi.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/Uses/gssapi.mk b/Mk/Uses/gssapi.mk
index 594117bc1536..a59b543dfe81 100644
--- a/Mk/Uses/gssapi.mk
+++ b/Mk/Uses/gssapi.mk
@@ -94,7 +94,7 @@ _HEADERS+= gssapi/gssapi.h gssapi/gssapi_krb5.h krb5.h
GSSAPICPPFLAGS= -I"${GSSAPIINCDIR}"
GSSAPILIBS= -lkrb5 -lgssapi -lgssapi_krb5
GSSAPILDFLAGS= -L"${GSSAPILIBDIR}"
-.if empty(OSREL:N9.*:N10.0])
+.if empty(OSREL:N9.3)
_FIXUP_KRB5CONFIG= yes
.endif
.elif ${_local} == "heimdal"
@@ -143,10 +143,10 @@ IGNORE= USES=gssapi - invalid args: [${_local}] specified
# libgssapi_krb5 for some interfaces of GSS-API is missing.
.if defined(_FIXUP_KRB5CONFIG)
KRB5CONFIG=${WRKDIR}/krb5-config
-krb5config-fix::
+_USES_configure+= 290:krb5config-fix
+krb5config-fix:
${SED} -e 's,\$$lib_flags -lgssapi -lheimntlm,\$$lib_flags -lgssapi -lgssapi_krb5 -lheimntlm,' < ${GSSAPIBASEDIR}/bin/krb5-config > ${KRB5CONFIG}
${CHMOD} a+rx ${KRB5CONFIG}
-pre-configure: krb5config-fix
.else
KRB5CONFIG=${GSSAPIBASEDIR}/bin/krb5-config
.endif