diff options
author | grant <grant@pkgsrc.org> | 2007-02-27 10:38:45 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2007-02-27 10:38:45 +0000 |
commit | 5a6a5f4e21e56a2c6f82a5e7435af2595fd42fa1 (patch) | |
tree | 9d19058ccc776f22c60a90989c1c3273e77efa36 /devel/libevent/Makefile | |
parent | 5aa5c900ab1a56b03b17ea05947c013e53fa9378 (diff) | |
download | pkgsrc-5a6a5f4e21e56a2c6f82a5e7435af2595fd42fa1.tar.gz |
make this build on Solaris with sunpro.
Diffstat (limited to 'devel/libevent/Makefile')
-rw-r--r-- | devel/libevent/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/devel/libevent/Makefile b/devel/libevent/Makefile index 096995eef16..901348eac09 100644 --- a/devel/libevent/Makefile +++ b/devel/libevent/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2007/02/11 05:34:33 tv Exp $ +# $NetBSD: Makefile,v 1.20 2007/02/27 10:38:45 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 @@ -20,4 +20,18 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes TEST_TARGET= verify +LIBS.SunOS+= -lnsl -lresolv + +# Solaris doesn't have u_intX_t types in <inttypes.h>. +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 +.endif + .include "../../mk/bsd.pkg.mk" |