diff options
author | cy <cy@FreeBSD.org> | 2011-04-09 05:02:41 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2011-04-09 05:02:41 +0800 |
commit | f16c112ef148b3047caec71812ad43ad1c5422f2 (patch) | |
tree | 29a6f2fe10fc6a14c10f010349e092984c9687c2 /security/krb5 | |
parent | 015d1d2892f96c8fa7cfc3f3b9f3c272f11fa973 (diff) | |
download | freebsd-ports-gnome-f16c112ef148b3047caec71812ad43ad1c5422f2.tar.gz freebsd-ports-gnome-f16c112ef148b3047caec71812ad43ad1c5422f2.tar.zst freebsd-ports-gnome-f16c112ef148b3047caec71812ad43ad1c5422f2.zip |
Adjust krb5-config when $KRB5_HOME is specified. This will allow applications
linking aganst the MIT krb5 libraries to link using the correct ones.
Diffstat (limited to 'security/krb5')
-rw-r--r-- | security/krb5/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile index 6e3fd82e4959..38b840a2adf3 100644 --- a/security/krb5/Makefile +++ b/security/krb5/Makefile @@ -40,6 +40,12 @@ OPTIONS= KRB5_DOC "Build and install krb5 documentation" on \ WANT_HTML "Want HTML documentation too" on \ DNS_FOR_REALM "enable DNS lookups of Kerberos realm names" off +.if defined(KRB5_HOME) +PREFIX= ${KRB5_HOME} +CFLAGS+= -rpath=${KRB5_HOME}/lib +LDFLAGS+= -rpath=${KRB5_HOME}/lib +.endif + .include <bsd.port.pre.mk> .if defined(WITH_DNS_FOR_REALM) CONFIGURE_ARGS+= --enable-dns-for-realm @@ -51,10 +57,6 @@ BUILD_DEPENDS+= texi2dvi:${PORTSDIR}/print/texinfo \ INFO= krb5-admin krb5-install krb5-user .endif -.if defined(KRB5_HOME) -PREFIX= ${KRB5_HOME} -.endif - MAN1= k5srvutil.1 kadmin.1 krb5-send-pr.1 krb5-config.1 \ kpasswd.1 klist.1 kinit.1 kdestroy.1 ksu.1 ktutil.1 \ sclient.1 kerberos.1 kvno.1 compile_et.1 |