diff options
author | osa <osa@FreeBSD.org> | 2003-09-24 17:51:07 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2003-09-24 17:51:07 +0800 |
commit | d7f3df0fdaed69c799265b7aa853c0050044108d (patch) | |
tree | 252ad4ea12d0c18962ef9f29bf31429c15e7a84a /www/oops | |
parent | 9bf41bd460876ae440db59584dfb00087f62fa87 (diff) | |
download | freebsd-ports-gnome-d7f3df0fdaed69c799265b7aa853c0050044108d.tar.gz freebsd-ports-gnome-d7f3df0fdaed69c799265b7aa853c0050044108d.tar.zst freebsd-ports-gnome-d7f3df0fdaed69c799265b7aa853c0050044108d.zip |
Update www/oops:
*) Respect to ${CXX}
*) Use ${PTHREAD_CFLAGS} and ${PTHREAD_LIBS} instead
of hardcoded -pthread flag
*) Remove rwlock.c support, because libc_r already
support pthread_rwlock family calls
*) Bump ${PORTREVISION}
PR: 56943
Diffstat (limited to 'www/oops')
-rw-r--r-- | www/oops/Makefile | 3 | ||||
-rw-r--r-- | www/oops/files/patch-configure.in | 33 | ||||
-rw-r--r-- | www/oops/files/patch-src::Makefile.in | 15 | ||||
-rw-r--r-- | www/oops/files/patch-src::modules::Makefile.in | 11 |
4 files changed, 54 insertions, 8 deletions
diff --git a/www/oops/Makefile b/www/oops/Makefile index dc145f097c50..974587f1e075 100644 --- a/www/oops/Makefile +++ b/www/oops/Makefile @@ -7,6 +7,7 @@ PORTNAME= oops PORTVERSION= ${OOPSVERSION}.${OOPSDATE} +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://oops-cache.org/ DISTNAME= ${PORTNAME}-${OOPSVERSION} @@ -31,6 +32,8 @@ CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \ --libdir=${PREFIX}/libexec/oops \ --enable-oops-user=oops \ --enable-large-files +MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" MAN8= oops.8 oopsctl.8 OOPSVAR= /var/run/oops diff --git a/www/oops/files/patch-configure.in b/www/oops/files/patch-configure.in index d78dcdab0f96..e055af54de9a 100644 --- a/www/oops/files/patch-configure.in +++ b/www/oops/files/patch-configure.in @@ -1,5 +1,5 @@ ---- configure.in.orig Fri Mar 21 18:46:36 2003 -+++ configure.in Fri Mar 21 18:54:01 2003 +--- configure.in.orig Tue Sep 16 16:32:04 2003 ++++ configure.in Tue Sep 16 16:34:21 2003 @@ -37,7 +37,7 @@ AC_ARG_WITH(zlib,--with-zlib=[[PATH]] Which zlib library/object file to use, with_zlib="$withval", with_zlib="") @@ -9,7 +9,20 @@ AC_CHECK_HEADERS(netinet/ip_fil.h, AC_DEFINE(HAVE_IPF)) AC_CHECK_HEADERS(netinet/ip6.h, AC_DEFINE(HAVE_IP6_H)) -@@ -375,10 +375,10 @@ +@@ -296,10 +296,9 @@ + LIBS="-oldstyle_liblookup -lpthread $LIBS" + + ;; +-freebsd*) CFLAGS="$CFLAGS -pthread -D_REENTRANT -DFREEBSD -D_THREAD_SAFE -DFD_SETSIZE=2048 -I." +- CXX=g++ ++freebsd*) CFLAGS="$CFLAGS $PTHREAD_CFLAGS -D_REENTRANT -DFREEBSD -DFD_SETSIZE=2048 -I." + CXXSOFLAGS="-shared -Xlinker -Bstatic" +- LIBS="-lc_r $LEXLIB $LIBS" ++ LIBS="$PTHREAD_LIBS $LEXLIB $LIBS" + if test "$large_files" = "yes" ; then + ## FreeBSD need no any special flags for 64bit files + CFLAGS="$CFLAGS -DWITH_LARGE_FILES" +@@ -375,10 +374,10 @@ esac if test "X$MYSQL_PATH" != "X" ; then @@ -23,7 +36,17 @@ fi if test "X$PGSQL_PATH" != "X" ; then -@@ -464,6 +464,9 @@ +@@ -427,6 +426,9 @@ + cp -f lib/rwlock/rwlock.h ./; + cd .. + ;; ++freebsd*) ++ echo "Already have pthread_rwlock_init() support in our libc_r"; ++ ;; + *) + AC_CHECK_FUNC(pthread_rwlock_init,AC_DEFINE(HAVE_PTHREAD_RWLOCK_INIT),EXTRASRC="$EXTRASRC rwlock.c" ; cd src; cp -f lib/rwlock/rwlock.c ./; cp -f lib/rwlock/rwlock.h ./; cd ..) + ;; +@@ -464,6 +466,9 @@ LIBDB_PATH="$pwd" elif test -r "/usr/local/lib/libdb.a"; then LIBDB_PATH="/usr/local" @@ -33,7 +56,7 @@ elif test -r "/usr/lib/libdb2.a"; then LIBDB_PATH="/usr" LIBDB_NAME=-ldb2 -@@ -574,7 +577,7 @@ +@@ -574,7 +579,7 @@ AC_DEFINE(HAVE_ZLIB) AC_MSG_RESULT(/usr/local/lib/libz.a) if test "X`echo $CFLAGS | grep '\-I/usr/local/include'`" = "X"; then diff --git a/www/oops/files/patch-src::Makefile.in b/www/oops/files/patch-src::Makefile.in index 44e53ba15ce1..303f238c344d 100644 --- a/www/oops/files/patch-src::Makefile.in +++ b/www/oops/files/patch-src::Makefile.in @@ -1,11 +1,20 @@ ---- src/Makefile.in.orig Fri Mar 21 19:42:58 2003 -+++ src/Makefile.in Fri Mar 21 19:43:33 2003 +--- src/Makefile.in.orig Tue Aug 19 15:56:34 2003 ++++ src/Makefile.in Tue Aug 19 15:58:11 2003 +@@ -29,7 +29,7 @@ + + #CFLAGS = -Wall -ggdb -D_REENTRANT -D_POSIX_PTHREADS_SEMANTICS + +-CFLAGS = @CFLAGS@ @DEFS@ ++CFLAGS = @CFLAGS@ @DEFS@ ${PTHREAD_CFLAGS} + + VER=@VER@ + OOPSPATH=@prefix@/oops @@ -45,7 +45,7 @@ cd modules; $(MAKE) oops: ${OBJS} - ${CC} ${CFLAGS} ${OBJS} ${EXTLDFLAGS} ${LDFLAGS} ${LIBGB_PATH} ${LIBGB_NAME} ${OOPS_LIBS} ${LIBZ_NAME} ${OOPS_RPATH} -o oops -+ ${CXX} ${CFLAGS} ${OBJS} ${EXTLDFLAGS} ${LDFLAGS} ${LIBGB_PATH} ${LIBGB_NAME} ${OOPS_LIBS} ${LIBZ_NAME} ${OOPS_RPATH} -o oops ++ ${CXX} ${CFLAGS} ${OBJS} ${EXTLDFLAGS} ${LDFLAGS} ${LIBGB_PATH} ${LIBGB_NAME} ${OOPS_LIBS} ${PTHREAD_LIBS} ${LIBZ_NAME} ${OOPS_RPATH} -o oops mkinstalldirs: ../mkinstalldirs ${OOPSPATH} \ diff --git a/www/oops/files/patch-src::modules::Makefile.in b/www/oops/files/patch-src::modules::Makefile.in new file mode 100644 index 000000000000..9ac5487ce1c6 --- /dev/null +++ b/www/oops/files/patch-src::modules::Makefile.in @@ -0,0 +1,11 @@ +--- src/modules/Makefile.in.orig Tue Aug 19 16:36:50 2003 ++++ src/modules/Makefile.in Tue Aug 19 16:37:09 2003 +@@ -1,7 +1,7 @@ + CC = @CC@ + CXX = @CXX@ + LIBS = @LIBS@ +-CFLAGS = @CFLAGS@ @DEFS@ ++CFLAGS = @CFLAGS@ @DEFS@ ${PTHREAD_CFLAGS} + LDFLAGS = @LDFLAGS@ + LD = @LD@ + SOFLAGS = @SOFLAGS@ |