graphics/netpbm

This commit is contained in:
Lionel Sambuc 2015-04-28 14:04:39 +00:00 committed by Lionel Sambuc
parent e31337ed43
commit b946e1c41f
4 changed files with 55 additions and 0 deletions

View File

@ -63,6 +63,10 @@ MAKE_FLAGS.SunOS+= LDSHLIB=-shared
MAKE_FLAGS.SunOS+= NEED_RUNTIME_PATH=Y
MAKE_FLAGS.SunOS+= NETWORKLD="-lsocket -lnsl"
.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
BUILDLINK_TRANSFORM+= rm:-R/usr/pkg/lib
.endif # ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
.if ${OS_VARIANT} == "SCOOSR5"
MAKE_FLAGS+= NETWORKLD="-lsocket -lresolv"
.endif

View File

@ -13,3 +13,5 @@ SHA1 (patch-converter_other_giftopnm.c) = 444fd73c239279a94481a2163a9e31d340af1a
SHA1 (patch-lib_Makefile) = 3f93bd24c53aa1f22aa43545d7ca5422af8e78ca
SHA1 (patch-pm__config.in.h) = c6d51bbdf6c1f7725f08f321591038e296761e61
SHA1 (patch-wordaccess_be_aligned.h) = 7cc5cd1126f65b3307393c978ac9ff4a49d666de
SHA1 (patch-zz-minix-a) = 9de7f260f428853c840b71095dee6dc4147f23c2
SHA1 (patch-zz-minix-b) = ce54d931bdbe444e00572c06e7f30d02c3c26b30

View File

@ -0,0 +1,20 @@
--- pm_config.in.h.orig Sun Oct 16 21:10:30 2016
+++ pm_config.in.h Sun Oct 16 21:11:15 2016
@@ -49,7 +49,7 @@
The problematic C libraries treat _XOPEN_SOURCE the same way.
*/
-#if defined(__OpenBSD__) || defined (__NetBSD__) || defined(__bsdi__) || defined(__APPLE__)
+#if defined(__OpenBSD__) || defined(__minix) || defined (__NetBSD__) || defined(__bsdi__) || defined(__APPLE__)
#define POSIX_IS_IMPLIED
#endif
@@ -140,7 +140,7 @@
/* #define HAVE_SETMODE */
#if (defined(__GLIBC__) || defined(__GNU_LIBRARY__) || defined(__APPLE__)) \
- || defined(__NetBSD__) || (defined(__SVR4) && defined (__sun))
+ || defined(__minix) || defined(__NetBSD__) || (defined(__SVR4) && defined (__sun))
#define HAVE_VASPRINTF 1
#else
#define HAVE_VASPRINTF 0

View File

@ -0,0 +1,29 @@
--- config.mk.in.orig Sun Oct 16 21:12:18 2016
+++ config.mk.in Sun Oct 16 21:13:08 2016
@@ -336,7 +336,7 @@
# the directory information in the executable at link time.
NEED_RUNTIME_PATH = N
-# Solaris, SunOS, NetBSD, AIX:
+# Solaris, SunOS, Minix, NetBSD, AIX:
#NEED_RUNTIME_PATH = Y
# RPATHOPTNAME is the option you use on the link command to specify
@@ -378,7 +378,7 @@
#TIFFLIB = libtiff.so
#TIFFHDR_DIR = /usr/include/libtiff
-#NetBSD:
+# Minix, NetBSD:
#TIFFLIB = $(LOCALBASE)/lib/libtiff.so
#TIFFHDR_DIR = $(LOCALBASE)/include
# OSF, Tru64:
@@ -448,7 +448,7 @@
PNGVER =
#PNGLIB = libpng$(PNGVER).so
#PNGHDR_DIR = /usr/include/libpng$(PNGVER)
-# NetBSD:
+# Minix, NetBSD:
#PNGLIB = $(LOCALBASE)/lib/libpng$(PNGVER).so
#PNGHDR_DIR = $(LOCALBASE)/include
# OSF/Tru64: