pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/netpbm Make this compile on Irix.
details: https://anonhg.NetBSD.org/pkgsrc/rev/cc2da00a81b4
branches: trunk
changeset: 460921:cc2da00a81b4
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Sun Sep 07 17:22:15 2003 +0000
description:
Make this compile on Irix.
(use 'ar rs' instead of ranlib on Irix, don't use '-fPIC', make sure
strdup is properly prototyped)
diffstat:
graphics/netpbm/distinfo | 6 ++++--
graphics/netpbm/patches/patch-aa | 37 ++++++++++++++++++++++++++-----------
graphics/netpbm/patches/patch-ad | 12 ++++++++++++
graphics/netpbm/patches/patch-ae | 12 ++++++++++++
4 files changed, 54 insertions(+), 13 deletions(-)
diffs (150 lines):
diff -r dea1a7c10137 -r cc2da00a81b4 graphics/netpbm/distinfo
--- a/graphics/netpbm/distinfo Sun Sep 07 15:07:10 2003 +0000
+++ b/graphics/netpbm/distinfo Sun Sep 07 17:22:15 2003 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.17 2003/06/11 07:10:46 wiz Exp $
+$NetBSD: distinfo,v 1.18 2003/09/07 17:22:15 jschauma Exp $
SHA1 (netpbm-10.11.8.tgz) = ecfe6e59688bb3a44c178a6b6bfb923039c4229e
Size (netpbm-10.11.8.tgz) = 1911118 bytes
-SHA1 (patch-aa) = 58e17af135a46342ff048c25c971c05e51f95104
+SHA1 (patch-aa) = 22de5096922df8353e8a42da59b9adb65afd6dd8
SHA1 (patch-ac) = cd8bb4318828a9872cce2793635c4bc51272d199
+SHA1 (patch-ad) = 21c7cce58e010d9323bbfac514e7d0bd39f4723c
+SHA1 (patch-ae) = 8a46f8c0b1c0efe57533dba55d18459135e796ea
diff -r dea1a7c10137 -r cc2da00a81b4 graphics/netpbm/patches/patch-aa
--- a/graphics/netpbm/patches/patch-aa Sun Sep 07 15:07:10 2003 +0000
+++ b/graphics/netpbm/patches/patch-aa Sun Sep 07 17:22:15 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.25 2003/06/11 07:10:47 wiz Exp $
+$NetBSD: patch-aa,v 1.26 2003/09/07 17:22:16 jschauma Exp $
---- Makefile.config.in.orig Wed Oct 16 03:17:21 2002
-+++ Makefile.config.in Wed Jun 11 15:29:48 2003
+--- Makefile.config.in.orig Tue Oct 15 10:17:21 2002
++++ Makefile.config.in Sun Sep 7 12:39:12 2003
@@ -33,7 +33,7 @@
#CC = gcc
# Note that 'cc' is usually an alias for whatever is the main compiler
@@ -29,7 +29,18 @@
# If you don't want to strip the binaries, just leave it null:
#STRIPFLAG =
-@@ -131,7 +131,7 @@
+@@ -83,7 +83,9 @@
+ AR = ar
+ RANLIB = ranlib
+ # IRIX, SCO don't have Ranlib:
+-#RANLIB = true
++ifeq ($(OPSYS),IRIX)
++RANLIB = ar rs
++endif
+ LEX = flex
+ # Solaris:
+ # LEX = flex -e
+@@ -131,7 +133,7 @@
# Solaris, SunOS, NetBSD:
#NEED_RUNTIME_PATH = Y
@@ -38,7 +49,7 @@
# Eunice users may want to use -noshare so that the executables can
# run standalone:
#LDFLAGS = -noshare
-@@ -171,6 +171,14 @@
+@@ -171,6 +173,14 @@
#AIX:
#LDSHLIB = ???
@@ -53,7 +64,7 @@
# On older systems, you have to make shared libraries out of position
# independent code, so you need -fpic or fPIC here. (The rule is: if
# -fpic works, use it. If it bombs, go to fPIC). On newer systems,
-@@ -188,11 +196,15 @@
+@@ -188,11 +198,19 @@
CFLAGS_SHLIB =
# Solaris or SunOS with gcc, and NetBSD:
#CFLAGS_SHLIB = -fpic
@@ -67,10 +78,14 @@
+CFLAGS_SHLIB = -fno-common
+endif
+
++ifeq ($(OPSYS),IRIX)
++CFLAGS_SHLIB = -KPIC
++endif
++
# SHLIB_CLIB is the link option to include the C library in a shared library,
# normally "-lc". On typical systems, this serves no purpose. On some,
# though, it causes information about which C library to use to be recorded
-@@ -244,8 +256,8 @@
+@@ -244,8 +262,8 @@
#TIFFLIB = libtiff.so
#TIFFHDR_DIR = /usr/include/libtiff
#NetBSD:
@@ -81,7 +96,7 @@
# OSF, Tru64:
#TIFFLIB = /usr/local1/DEC/lib/libtiff.so
#TIFFHDR_DIR = /usr/local1/DEC/include
-@@ -273,8 +285,8 @@
+@@ -273,8 +291,8 @@
#JPEGLIB = libjpeg.so
#JPEGHDR_DIR = /usr/include/jpeg
# Netbsd:
@@ -92,7 +107,7 @@
# OSF, Tru64:
#JPEGLIB = /usr/local1/DEC/libjpeg.so
#JPEGHDR_DIR = /usr/local1/DEC/include
-@@ -297,8 +309,8 @@
+@@ -297,8 +315,8 @@
#PNGLIB = libpng$(PNGVER).so
#PNGHDR_DIR = /usr/include/libpng$(PNGVER)
# NetBSD:
@@ -103,7 +118,7 @@
# OSF/Tru64:
#PNGLIB = /usr/local1/DEC/lib/libpng$(PNGVER).so
#PNGHDR_DIR = /usr/local1/DEC/include
-@@ -308,8 +320,8 @@
+@@ -308,8 +326,8 @@
# NONE for the PNG library, it doesn't matter what you specify here --
# it won't get used.
@@ -114,7 +129,7 @@
#ZLIB = libz.so
# The JBIG lossless image compression library (aka JBIG-KIT):
-@@ -337,7 +349,7 @@
+@@ -337,7 +355,7 @@
# network functions is the option in ppmtompeg to run it on multiple
# computers simultaneously.
diff -r dea1a7c10137 -r cc2da00a81b4 graphics/netpbm/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/netpbm/patches/patch-ad Sun Sep 07 17:22:15 2003 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.13 2003/09/07 17:22:16 jschauma Exp $
+
+--- converter/other/pstopnm.c.orig Sat Sep 6 21:22:44 2003
++++ converter/other/pstopnm.c Sat Sep 6 21:22:36 2003
+@@ -7,7 +7,6 @@
+ -----------------------------------------------------------------------------*/
+
+ #define _BSD_SOURCE 1 /* Make sure strdup() is in string.h */
+-#define _XOPEN_SOURCE /* Make sure fdopen() is in stdio.h */
+
+ #include <string.h>
+ #include <unistd.h>
diff -r dea1a7c10137 -r cc2da00a81b4 graphics/netpbm/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/netpbm/patches/patch-ae Sun Sep 07 17:22:15 2003 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.9 2003/09/07 17:22:16 jschauma Exp $
+
+--- generator/pbmtextps.c.orig Sat Sep 6 23:31:49 2003
++++ generator/pbmtextps.c Sat Sep 6 23:32:23 2003
+@@ -13,7 +13,6 @@
+ * PostScript is a registered trademark of Adobe Systems International.
+ *
+ */
+-#define _XOPEN_SOURCE /* Make sure popen() is in stdio.h */
+ #define _BSD_SOURCE /* Make sure stdrup() is in string.h */
+ #include <stdio.h>
+ #include <stdlib.h>
Home |
Main Index |
Thread Index |
Old Index