summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2014-11-12 20:30:55 +0000
committerbsiegert <bsiegert@pkgsrc.org>2014-11-12 20:30:55 +0000
commit33d1d27e152db951c3e495618efa65438f7299f9 (patch)
tree1ca0a3771a75123b05c72bf3dff3d20f393e5c19 /mail
parent6cbc9d845209da08e45655b7c2fcb49d960ef945 (diff)
downloadpkgsrc-33d1d27e152db951c3e495618efa65438f7299f9.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