diff options
author | marino <marino@pkgsrc.org> | 2011-11-28 19:42:39 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-11-28 19:42:39 +0000 |
commit | 102ce2298bc07a82c5dbf742810a0406ff748eb7 (patch) | |
tree | a9880b608168cbf4fa8e36bdc8d36a0910e024a3 /chat/zephyr/Makefile | |
parent | acb9ab6be46fc93b7fa724db6fa262819e65a69f (diff) | |
download | pkgsrc-102ce2298bc07a82c5dbf742810a0406ff748eb7.tar.gz |
chat/zephyr: Add DragonFly and FreeBSD support
DragonFly and FreeBSD don't build libdes with Kerberos IV, and at least
DragonFly doesn't have heriod support. Sed substition within the Makefile
was required due to requirements conflicts between platforms.
Diffstat (limited to 'chat/zephyr/Makefile')
-rw-r--r-- | chat/zephyr/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/chat/zephyr/Makefile b/chat/zephyr/Makefile index f5a05f48d9a..ea6be6c6222 100644 --- a/chat/zephyr/Makefile +++ b/chat/zephyr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2010/08/16 09:48:00 wiz Exp $ +# $NetBSD: Makefile,v 1.20 2011/11/28 19:42:39 marino Exp $ # DISTNAME= zephyr-20010518 @@ -21,7 +21,6 @@ CPPFLAGS+= -I${BUILDLINK_PREFIX.kth-krb4}/include/kerberosIV CPPFLAGS.NetBSD+= -I${BUILDLINK_PREFIX.kth-krb4}/include/kerberosIV/ss CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} CONFIGURE_ARGS+= --with-krb4 -CONFIGURE_ARGS+= --with-hesiod CONFIGURE_ARGS+= --with-ares ZEPHYR_DOCDIR= ${PREFIX}/share/doc/zephyr @@ -45,6 +44,17 @@ SUBST_SED.mandir= -e 's,$${prefix}/man,@mandir@,g' BUILDLINK_TRANSFORM+= l:ss:ss:roken:crypt .endif +.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" +CFLAGS+= -DHAVE_STRERROR +SUBST_CLASSES+= FreeFly +SUBST_STAGE.FreeFly= post-patch +SUBST_MESSAGE.FreeFly= Replacing libdes with libcrypt + libcrypto +SUBST_FILES.FreeFly= aclocal.m4 configure +SUBST_SED.FreeFly= -e 's,-lkrb -ldes,-lkrb -lcrypt -lcrypto,g' +.else +CONFIGURE_ARGS+= --with-hesiod +.endif + pre-install: ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} ${INSTALL_DATA_DIR} ${DESTDIR}${ZEPHYR_DOCDIR} |