pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/netpbm Fix build on Interix; also move "speci...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d8f808a81f8b
branches:  trunk
changeset: 488103:d8f808a81f8b
user:      tv <tv%pkgsrc.org@localhost>
date:      Mon Jan 24 20:48:05 2005 +0000

description:
Fix build on Interix; also move "special" GCC_REQD to hacks.mk.

diffstat:

 graphics/netpbm/Makefile |  11 +----------
 graphics/netpbm/hacks.mk |  26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 10 deletions(-)

diffs (55 lines):

diff -r 3bf0b01ac323 -r d8f808a81f8b graphics/netpbm/Makefile
--- a/graphics/netpbm/Makefile  Mon Jan 24 20:40:44 2005 +0000
+++ b/graphics/netpbm/Makefile  Mon Jan 24 20:48:05 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.104 2005/01/18 14:16:20 adam Exp $
+# $NetBSD: Makefile,v 1.105 2005/01/24 20:48:05 tv Exp $
 
 DISTNAME=      netpbm-10.26.1
 CATEGORIES=    graphics
@@ -27,15 +27,6 @@
 LIBS.SunOS=    -lsocket -lnsl
 MAKE_ENV+=     NETWORKLD="${LIBS}"
 
-.include "../../mk/bsd.prefs.mk"
-
-.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
-GCC_REQD+=             2.95.3
-.endif
-.if ${MACHINE_ARCH} == "alpha"
-GCC_REQD+=      3.0
-.endif
-
 pre-configure:
        ${CP} ${WRKSRC}/Makefile.config.in ${WRKSRC}/Makefile.config
 
diff -r 3bf0b01ac323 -r d8f808a81f8b graphics/netpbm/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/netpbm/hacks.mk  Mon Jan 24 20:48:05 2005 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: hacks.mk,v 1.1 2005/01/24 20:48:05 tv Exp $
+
+.ifndef NETPBM_HACKS_MK
+NETPBM_HACKS_MK=       # defined
+
+### [historic : ???]
+### gcc optimization fixes
+###
+.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
+PKG_HACKS+=            optimization
+GCC_REQD+=             2.95.3
+.endif
+.if ${MACHINE_ARCH} == "alpha"
+PKG_HACKS+=            optimization
+GCC_REQD+=             3.0
+.endif
+
+### [Mon Jan 24 20:47:14 UTC 2005 : tv]
+### substitute for <inttypes.h> on Interix
+###
+.if ${OPSYS} == "Interix"
+PKG_HACKS+=            standard-headers
+MAKE_FLAGS+=           INTTYPES_H='<sys/types.h>'
+.endif
+
+.endif



Home | Main Index | Thread Index | Old Index