diff options
author | marino <marino@pkgsrc.org> | 2011-11-28 19:44:14 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-11-28 19:44:14 +0000 |
commit | 771daacefd6043093d6009b2d45f78dbd01c8c89 (patch) | |
tree | 6bedd474d876802bc868340a05d104e1ef1903ed /chat | |
parent | 102ce2298bc07a82c5dbf742810a0406ff748eb7 (diff) | |
download | pkgsrc-771daacefd6043093d6009b2d45f78dbd01c8c89.tar.gz |
chat/tzc: Add DragonFly and FreeBSD support
DragonFly and FreeBSD don't build libdes with Kerberos IV. Likely the
modification of removing -ldes and adding -lcrypt could have been done
entirely with changing LDFLAGS, but conservately sed subsitition was used
in order to avoid changing library linking order and possibly breaking
other platforms.
Diffstat (limited to 'chat')
-rw-r--r-- | chat/tzc/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chat/tzc/Makefile b/chat/tzc/Makefile index 981c357a949..f411457ca88 100644 --- a/chat/tzc/Makefile +++ b/chat/tzc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2011/03/28 13:11:21 obache Exp $ +# $NetBSD: Makefile,v 1.14 2011/11/28 19:44:14 marino Exp $ # DISTNAME= tzc-2.6.15 @@ -15,6 +15,17 @@ PKG_DESTDIR_SUPPORT= user-destdir CPPFLAGS+= -I/usr/include/kerberosIV -I/usr/include/krb5 LDFLAGS+= -lroken -lcrypto -lcom_err +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" +LDFLAGS+= -lcrypt +SUBST_CLASSES+= FreeFly +SUBST_STAGE.FreeFly= post-patch +SUBST_MESSAGE.FreeFly= Removing unwanted libdes +SUBST_FILES.FreeFly= Makefile +SUBST_SED.FreeFly= -e 's,-lkrb -ldes,-lkrb,g' +.endif + INSTALLATION_DIRS+= bin .include "../../chat/zephyr/buildlink3.mk" |