summaryrefslogtreecommitdiff
path: root/print/a2ps/Makefile
diff options
context:
space:
mode:
authortron <tron>2010-10-28 23:21:52 +0000
committertron <tron>2010-10-28 23:21:52 +0000
commitaa0e0407a67638dad3a80e0c6a7f480cce68a9e1 (patch)
tree330b290955ee3934b6d19cb509ef0db36d88707b /print/a2ps/Makefile
parentd7ba177da732c628fccefbe6193ee85dc093162f (diff)
downloadpkgsrc-aa0e0407a67638dad3a80e0c6a7f480cce68a9e1.tar.gz
Fix two problem under Mac OS X:
1.) stpcpy() is a macro under at least Mac OS 10.6. Avoid build failures by not defining a dodgy prototype for it. 2.) Don't strip installed binaries to allow the dynamic linker to find symbols required by the shared library but defined by the application. This fixes PR pkg/41827 by Christopher M. Fuhrman. Bump package revision as the package built fine under Mac OS 10.5 before but didn't work.
Diffstat (limited to 'print/a2ps/Makefile')
-rw-r--r--print/a2ps/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/print/a2ps/Makefile b/print/a2ps/Makefile
index 9955c307a17..903e235d63b 100644
--- a/print/a2ps/Makefile
+++ b/print/a2ps/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.69 2008/11/11 13:48:58 wiz Exp $
+# $NetBSD: Makefile,v 1.70 2010/10/28 23:21:52 tron Exp $
DISTNAME= a2ps-4.14
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GNU:=a2ps/} \
ftp://ftp.enst.fr/pub/unix/a2ps/
@@ -16,7 +17,13 @@ PKG_DESTDIR_SUPPORT= user-destdir
STRIP= # empty
USE_LIBTOOL= yes
+
+.include "../../mk/bsd.prefs.mk"
+
CFLAGS.Darwin+= -flat_namespace
+.if ${OPSYS} == "Darwin"
+_STRIPFLAG_INSTALL= # none
+.endif
USE_TOOLS+= file:run gmake lex mktemp:run perl:run
CONFIGURE_ENV+= file_prog=${FILE_CMD:Q}