summaryrefslogtreecommitdiff
path: root/devel/liboil
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-13 18:23:14 +0000
committerrillig <rillig@pkgsrc.org>2006-07-13 18:23:14 +0000
commit711de1d31e04369dff782e61cbe73fd8226d93a6 (patch)
tree2076af4c5ed6f49a9f11d964c876759919038167 /devel/liboil
parent1605e75ca28d46bc5fbeb76395b84417c0020367 (diff)
downloadpkgsrc-711de1d31e04369dff782e61cbe73fd8226d93a6.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/liboil')
-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"