summaryrefslogtreecommitdiff
path: root/print/ghostscript
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-02-13 15:31:35 +0000
committerdrochner <drochner@pkgsrc.org>2009-02-13 15:31:35 +0000
commitbefd52f31e23027d4fe1c20cd9e689f8c2addd51 (patch)
tree3b8c4b03f0dee7080250bd3961c8c8237992e86e /print/ghostscript
parent4beb48ad88762b048a6acaf017032424722edf0e (diff)
downloadpkgsrc-befd52f31e23027d4fe1c20cd9e689f8c2addd51.tar.gz
fix a build problem with native xorg reported by Matthias Scheler,
being here, quell a printf format compiler warning
Diffstat (limited to 'print/ghostscript')
-rw-r--r--print/ghostscript/Makefile4
-rw-r--r--print/ghostscript/distinfo4
-rw-r--r--print/ghostscript/patches/patch-ah13
-rw-r--r--print/ghostscript/patches/patch-ai13
4 files changed, 32 insertions, 2 deletions
diff --git a/print/ghostscript/Makefile b/print/ghostscript/Makefile
index 0d37c7f9da1..d647f96e36d 100644
--- a/print/ghostscript/Makefile
+++ b/print/ghostscript/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2009/02/12 19:51:08 drochner Exp $
+# $NetBSD: Makefile,v 1.57 2009/02/13 15:31:35 drochner Exp $
DISTNAME= ghostscript-8.64
CATEGORIES= print
@@ -66,6 +66,8 @@ CFLAGS.SunOS= -fPIC
BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv
.endif
+CONFIGURE_ENV+= LPLIBDIR=${LOCALBASE}/lib
+
post-extract:
${MKDIR} ${WRKSRC}/bin
${MKDIR} ${WRKSRC}/obj
diff --git a/print/ghostscript/distinfo b/print/ghostscript/distinfo
index 1e8eb2e5b1e..c9c9a410566 100644
--- a/print/ghostscript/distinfo
+++ b/print/ghostscript/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2009/02/12 19:51:08 drochner Exp $
+$NetBSD: distinfo,v 1.20 2009/02/13 15:31:35 drochner Exp $
SHA1 (ghostscript-8.64.tar.bz2) = 4c2a6e04145428d35da73fbc4db9c66a75e336e0
RMD160 (ghostscript-8.64.tar.bz2) = 565134dcfe1e823b435c3761461c5eb394bd633c
@@ -8,3 +8,5 @@ SHA1 (patch-ad) = 8b3b743b2d6405ea35bfb16970942ecd55702401
SHA1 (patch-ae) = 50335e72adebe95ab0cb5873d1c6dd00e971579a
SHA1 (patch-af) = e4d56f13f5eb595a3929aac6c257012961f59c2b
SHA1 (patch-ag) = dd452d29253e20bb8fa453a1e4f139a40b2ab3e3
+SHA1 (patch-ah) = efc85dead838505ee462714167f196db2deeb0aa
+SHA1 (patch-ai) = 525b1a00f12027e2ff72f40ddd764fec1622d430
diff --git a/print/ghostscript/patches/patch-ah b/print/ghostscript/patches/patch-ah
new file mode 100644
index 00000000000..fdead1aa81b
--- /dev/null
+++ b/print/ghostscript/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.3 2009/02/13 15:31:35 drochner Exp $
+
+--- configure.orig 2009-02-13 12:06:58.000000000 +0100
++++ configure
+@@ -7749,7 +7749,7 @@ fi
+
+ fi
+ if test x$with_libpaper != xno; then
+- LIBS="$LIBS -lpaper"
++ LIBS="$LIBS -L${LPLIBDIR} -Wl,-R${LPLIBDIR} -lpaper"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define USE_LIBPAPER 1
diff --git a/print/ghostscript/patches/patch-ai b/print/ghostscript/patches/patch-ai
new file mode 100644
index 00000000000..7355aa8b940
--- /dev/null
+++ b/print/ghostscript/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.3 2009/02/13 15:31:35 drochner Exp $
+
+--- base/mkromfs.c.orig 2009-02-13 12:20:54.000000000 +0100
++++ base/mkromfs.c
+@@ -467,7 +467,7 @@ main(int argc, char *argv[])
+ #endif
+ fprintf(out,"\n#include \"stdint_.h\"\n");
+ fprintf(out,"\n#include \"time_.h\"\n\n");
+- fprintf(out," time_t gs_romfs_buildtime = %ld;\n\n", time(NULL));
++ fprintf(out," time_t gs_romfs_buildtime = %qd;\n\n", (int64_t)time(NULL));
+
+ /* process the remaining arguments (options interspersed with paths) */
+ for (; atarg < argc; atarg++) {