summaryrefslogtreecommitdiff
path: root/print/a2ps
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2010-10-28 23:21:52 +0000
committertron <tron@pkgsrc.org>2010-10-28 23:21:52 +0000
commitbc9e0dbd6fbe29a6913d8b1adef912c4e3cdeed3 (patch)
tree330b290955ee3934b6d19cb509ef0db36d88707b /print/a2ps
parent6515c68e037406a8c2ec206495ebfafe37603dd1 (diff)
downloadpkgsrc-bc9e0dbd6fbe29a6913d8b1adef912c4e3cdeed3.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')
-rw-r--r--print/a2ps/Makefile9
-rw-r--r--print/a2ps/distinfo3
-rw-r--r--print/a2ps/patches/patch-ac16
3 files changed, 26 insertions, 2 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}
diff --git a/print/a2ps/distinfo b/print/a2ps/distinfo
index cc284e164bf..194deb1f73f 100644
--- a/print/a2ps/distinfo
+++ b/print/a2ps/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.11 2008/11/10 18:00:34 wiz Exp $
+$NetBSD: distinfo,v 1.12 2010/10/28 23:21:52 tron Exp $
SHA1 (a2ps-4.14.tar.gz) = 365abbbe4b7128bf70dad16d06e23c5701874852
RMD160 (a2ps-4.14.tar.gz) = a5105d6256a809483e099519325979aaaff7219e
Size (a2ps-4.14.tar.gz) = 2552507 bytes
SHA1 (patch-aa) = 6317b6abca697388538fc705037da55379a4e1e1
SHA1 (patch-ab) = 7b1f1e3ed2af47e7d9864ec2dbcd7d105f93632a
+SHA1 (patch-ac) = 8e09c4c3b320b58bf12c4266d4d22977b5f9b826
diff --git a/print/a2ps/patches/patch-ac b/print/a2ps/patches/patch-ac
new file mode 100644
index 00000000000..a4211d655cb
--- /dev/null
+++ b/print/a2ps/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.7 2010/10/28 23:21:53 tron Exp $
+
+Fix build problem under Mac OS X where stpcpy() is a macro.
+
+--- lib/xstrrpl.c.orig 2007-12-29 01:37:54.000000000 +0000
++++ lib/xstrrpl.c 2010-10-28 23:29:51.000000000 +0100
+@@ -22,7 +22,9 @@
+ #include <assert.h>
+ #include "xstrrpl.h"
+
++#ifndef stpcpy
+ extern char * stpcpy();
++#endif
+
+ /* Perform subsitutions in string. Result is malloc'd
+ E.g., result = xstrrrpl ("1234", subst) gives result = "112333"