summaryrefslogtreecommitdiff
path: root/devel/libevent/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2007-02-27 11:11:17 +0000
committergrant <grant@pkgsrc.org>2007-02-27 11:11:17 +0000
commit3cdb6c1ce7e869a595be7ef3973fccbf908e2169 (patch)
tree08c8f8c0b4d85f0366f13d4055bb2b0a40cb2fd8 /devel/libevent/Makefile
parent5a6a5f4e21e56a2c6f82a5e7435af2595fd42fa1 (diff)
downloadpkgsrc-3cdb6c1ce7e869a595be7ef3973fccbf908e2169.tar.gz
improvements to last:
- configure script already has provision for different compiler inline directives, just not every file was using it. - u_intXX_t types need to be fixed in installed event.h too.
Diffstat (limited to 'devel/libevent/Makefile')
-rw-r--r--devel/libevent/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/devel/libevent/Makefile b/devel/libevent/Makefile
index 901348eac09..110eb49f532 100644
--- a/devel/libevent/Makefile
+++ b/devel/libevent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/02/27 10:38:45 grant Exp $
+# $NetBSD: Makefile,v 1.21 2007/02/27 11:11:17 grant Exp $
#
# WARNING: updating this package (as of the 1.1/1.2 releases) means
# updating BUILDLINK_ABI_DEPENDS in buildlink3.mk and a PKGREVISION
@@ -27,11 +27,14 @@ CFLAGS.SunOS+= -Du_int8_t=uint8_t
CFLAGS.SunOS+= -Du_int16_t=uint16_t
CFLAGS.SunOS+= -Du_int32_t=uint32_t
-# The SunPro compiler doesn't understand __inline.
-.include "../../mk/compiler.mk"
-
-.if !empty(PKGSRC_COMPILER:Msunpro)
-CFLAGS.SunOS+= -D__inline=inline
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= inttypes
+SUBST_STAGE.inttypes= post-patch
+SUBST_FILES.inttypes= event.h
+SUBST_SED.inttypes= -e "s,u_int8_t,uint8_t,g"
+SUBST_SED.inttypes+= -e "s,u_int16_t,uint16_t,g"
+SUBST_SED.inttypes+= -e "s,u_int32_t,uint32_t,g"
.endif
.include "../../mk/bsd.pkg.mk"