pkgsrc/chat/tzc/Makefile
marino 057631d902 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.
2011-11-28 19:44:14 +00:00

33 lines
904 B
Makefile

# $NetBSD: Makefile,v 1.14 2011/11/28 19:44:14 marino Exp $
#
DISTNAME= tzc-2.6.15
PKGREVISION= 3
CATEGORIES= chat net
MASTER_SITES= http://www.cs.cmu.edu/People/dkindred/zephyr-mode/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.cmu.edu/People/dkindred/zephyr/zephyr.html
COMMENT= Back-end program for zephyr-mode
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"
.include "../../security/kth-krb4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"