summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2014-08-10 09:06:48 +0000
committertron <tron@pkgsrc.org>2014-08-10 09:06:48 +0000
commitcb7c84f2eb503d4b1f72efe4f14034869a987a8e (patch)
treedeb1ab7fe66a2f4600a3f0147cfc2d28ee3ac49a
parenta1c4acb8815d40cd72b7aa0ebb81003bdc3e74cf (diff)
downloadpkgsrc-cb7c84f2eb503d4b1f72efe4f14034869a987a8e.tar.gz
Fix build under Mac OS X.
-rw-r--r--security/apg/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/security/apg/Makefile b/security/apg/Makefile
index e441ba76f24..5192d9ad857 100644
--- a/security/apg/Makefile
+++ b/security/apg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2014/06/02 19:42:47 fhajny Exp $
+# $NetBSD: Makefile,v 1.20 2014/08/10 09:06:48 tron Exp $
#
DISTNAME= apg-2.3.0b
@@ -23,8 +23,15 @@ MAKE_ENV+= APG_CS_CLIBS=${APG_CS_CLIBS:Q}
INSTALLATION_DIRS+= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+= rm:-lcrypt
+.endif
+
post-extract:
${CHMOD} -R u+w ${WRKSRC}
+ ${RM} -f ${WRKSRC}/INSTALL
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/perl/apgcli.pl ${DESTDIR}${PREFIX}/bin/apgcli