summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authormarino <marino>2011-11-28 19:44:14 +0000
committermarino <marino>2011-11-28 19:44:14 +0000
commitab40c89eaba2f55777a80a13b22e69110d180e19 (patch)
tree6bedd474d876802bc868340a05d104e1ef1903ed /chat
parentc351f4062bfb13ba572b8567f40f07970a7de052 (diff)
downloadpkgsrc-ab40c89eaba2f55777a80a13b22e69110d180e19.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/Makefile13
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"