pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libevent make this build on Solaris with sunpro.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81a929721bff
branches:  trunk
changeset: 526014:81a929721bff
user:      grant <grant%pkgsrc.org@localhost>
date:      Tue Feb 27 10:38:45 2007 +0000

description:
make this build on Solaris with sunpro.

diffstat:

 devel/libevent/Makefile         |  16 +++++++++++++++-
 devel/libevent/distinfo         |   3 ++-
 devel/libevent/patches/patch-aa |  24 ++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 2 deletions(-)

diffs (67 lines):

diff -r cc26967600e0 -r 81a929721bff devel/libevent/Makefile
--- a/devel/libevent/Makefile   Tue Feb 27 10:01:51 2007 +0000
+++ b/devel/libevent/Makefile   Tue Feb 27 10:38:45 2007 +0000
@@ -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 @@
 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"
diff -r cc26967600e0 -r 81a929721bff devel/libevent/distinfo
--- a/devel/libevent/distinfo   Tue Feb 27 10:01:51 2007 +0000
+++ b/devel/libevent/distinfo   Tue Feb 27 10:38:45 2007 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2007/02/08 17:06:28 xtraeme Exp $
+$NetBSD: distinfo,v 1.13 2007/02/27 10:38:45 grant Exp $
 
 SHA1 (libevent-1.2a.tar.gz) = 904724e029bfea42affc6e73630becd1ba30c217
 RMD160 (libevent-1.2a.tar.gz) = 5790bee3f198d7fac9e74dfac1c025441229ead9
 Size (libevent-1.2a.tar.gz) = 410346 bytes
+SHA1 (patch-aa) = ed170a74ee2f73c6b3894ff3801f8601167702ac
diff -r cc26967600e0 -r 81a929721bff devel/libevent/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libevent/patches/patch-aa   Tue Feb 27 10:38:45 2007 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1 2007/02/27 10:38:45 grant Exp $
+
+--- Makefile.in.orig   2006-11-29 13:26:12.000000000 +1100
++++ Makefile.in
+@@ -117,8 +117,8 @@ EXTRA_DIST = acconfig.h event.h event-in
+ 
+ lib_LTLIBRARIES = libevent.la
+ 
+-@BUILD_WIN32_TRUE@SUBDIRS = . sample
+-@BUILD_WIN32_FALSE@SUBDIRS = . sample test
++@BUILD_WIN32_TRUE@SUBDIRS = .
++@BUILD_WIN32_FALSE@SUBDIRS = .
+ @BUILD_WIN32_TRUE@SYS_LIBS = -lws2_32
+ @BUILD_WIN32_FALSE@SYS_LIBS = 
+ @BUILD_WIN32_TRUE@SYS_SRC = WIN32-Code/misc.c WIN32-Code/win32.c
+@@ -187,7 +187,7 @@ DIST_COMMON = README $(include_HEADERS) 
+       configure configure.in devpoll.c epoll.c epoll_sub.c evport.c \
+       install-sh kqueue.c ltmain.sh missing mkinstalldirs poll.c \
+       rtsig.c select.c signal.c strlcpy.c
+-DIST_SUBDIRS = . sample test
++DIST_SUBDIRS = . test
+ SOURCES = $(libevent_la_SOURCES)
+ 
+ all: config.h



Home | Main Index | Thread Index | Old Index