summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-13 18:23:14 +0000
committerrillig <rillig>2006-07-13 18:23:14 +0000
commit31a022b4d623ad20ae4eac4b248779aa9490e81b (patch)
tree2076af4c5ed6f49a9f11d964c876759919038167 /devel
parenteb566145bbad40d0a07e48d7ba035a29fb17384a (diff)
downloadpkgsrc-31a022b4d623ad20ae4eac4b248779aa9490e81b.tar.gz
The better way to fix the Solaris problem of <stdint.h> is to replace
the header name in the installed headers. Otherwise the packages that depend on this one have to use the same hack as in the previous revision of this file.
Diffstat (limited to 'devel')
-rw-r--r--devel/liboil/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/liboil/Makefile b/devel/liboil/Makefile
index 732009e1d21..2edffa4e36b 100644
--- a/devel/liboil/Makefile
+++ b/devel/liboil/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/07/13 17:04:51 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2006/07/13 18:23:14 rillig Exp $
#
DISTNAME= liboil-0.3.6
@@ -21,8 +21,11 @@ PKGCONFIG_OVERRIDE+= liboil.pc.in
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MSunOS-5.8-*)
-pre-configure:
- ${ECHO} "#include <inttypes.h>" > ${BUILDLINK_DIR}/include/stdint.h
+SUBST_CLASSES+= solaris
+SUBST_STAGE.solaris= pre-configure
+SUBST_MESSAGES.solaris= Replacing <stdint.h> with <inttypes.h>
+SUBST_FILES.solaris= liboil/*.h
+SUBST_SED.solaris= -e 's,<stdint\.h>,<inttypes.h>,'
.endif
.include "../../mk/bsd.pkg.mk"