summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorbsiegert <bsiegert>2014-11-12 20:30:55 +0000
committerbsiegert <bsiegert>2014-11-12 20:30:55 +0000
commitc3c8ba1a90e4f2449682ae35763e045c5c78db49 (patch)
tree1ca0a3771a75123b05c72bf3dff3d20f393e5c19 /mail
parent37e5cd2e2a5d05414584c169ba8ce1610f569eb6 (diff)
downloadpkgsrc-c3c8ba1a90e4f2449682ae35763e045c5c78db49.tar.gz
Fix alpine build under Mac OS X Yosemite.
Alpine uses a function called panic(). However, mach/mach.h, which somehow ends up always included, defines panic with different arguments. Rename alpine's panic to Panic on Darwin.
Diffstat (limited to 'mail')
-rw-r--r--mail/alpine/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/alpine/Makefile b/mail/alpine/Makefile
index e5068582a97..69e903959c0 100644
--- a/mail/alpine/Makefile
+++ b/mail/alpine/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2014/02/12 23:18:06 tron Exp $
+# $NetBSD: Makefile,v 1.35 2014/11/12 20:30:55 bsiegert Exp $
#
DISTNAME= alpine-2.11
@@ -33,6 +33,16 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
CONFIGURE_ARGS+= --without-pthread
.endif
+.if ${OPSYS} == "Darwin"
+# mach/mach.h defines panic, differently.
+SUBST_CLASSES+= panic
+SUBST_STAGE.panic= pre-configure
+SUBST_MESSAGE.panic= Renaming the panic function
+SUBST_FILES.panic= */*.c
+SUBST_FILES.panic+= pith/util.h
+SUBST_SED.panic+= -e 's,panic(,Panic(,g'
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/alpine/alpine ${DESTDIR}${PREFIX}/bin/alpine
${INSTALL_MAN} ${WRKSRC}/doc/alpine.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/alpine.1