diff options
author | osa <osa@FreeBSD.org> | 2004-02-12 22:04:59 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2004-02-12 22:04:59 +0800 |
commit | 4c2bf369e5b688b3c6d9ff38d63b6e0d2509c8a3 (patch) | |
tree | e6e97436ea5ba8f083ff73a90f0acbbe303d5720 /www | |
parent | 132085c1dd23a20365a65476964fa64608a61a67 (diff) | |
download | freebsd-ports-graphics-4c2bf369e5b688b3c6d9ff38d63b6e0d2509c8a3.tar.gz freebsd-ports-graphics-4c2bf369e5b688b3c6d9ff38d63b6e0d2509c8a3.tar.zst freebsd-ports-graphics-4c2bf369e5b688b3c6d9ff38d63b6e0d2509c8a3.zip |
Attempt to fix build on amd64. [1]
Also fix build problem with MySQL support. [2]
Correct use PTHREAD_[CFLAGS|LIBS].
Bump PORTREVISION.
[1] Notify from: kris via bento
[2] Submitted by: Sergey Mokryshev <mokr@mokr.net>
Diffstat (limited to 'www')
-rw-r--r-- | www/oops/Makefile | 10 | ||||
-rw-r--r-- | www/oops/files/patch-configure.in | 43 |
2 files changed, 46 insertions, 7 deletions
diff --git a/www/oops/Makefile b/www/oops/Makefile index fd412322eb4..6638da27590 100644 --- a/www/oops/Makefile +++ b/www/oops/Makefile @@ -7,7 +7,7 @@ PORTNAME= oops PORTVERSION= ${OOPSVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://oops-cache.org/ DISTNAME= ${PORTNAME}-${OOPSVERSION} @@ -20,7 +20,6 @@ BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk OOPSVERSION= 1.5.23 USE_SUBMAKE= yes -USE_REINPLACE= yes USE_AUTOCONF= yes CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \ --sysconfdir=${PREFIX}/etc/oops \ @@ -28,7 +27,8 @@ CONFIGURE_ARGS?=--sbindir=${PREFIX}/sbin \ --libdir=${PREFIX}/libexec/oops \ --enable-oops-user=oops \ --enable-large-files -MAKE_ENV+= CXX="${CXX}" \ +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" @@ -46,10 +46,6 @@ pre-fetch: .include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" .endif -post-patch: - @${REINPLACE_CMD} -e 's|CXX=g++||g' \ - ${WRKSRC}/configure.in - pre-configure: @cd ${WRKSRC} && ${AUTOHEADER} diff --git a/www/oops/files/patch-configure.in b/www/oops/files/patch-configure.in new file mode 100644 index 00000000000..8d77e9ee874 --- /dev/null +++ b/www/oops/files/patch-configure.in @@ -0,0 +1,43 @@ +--- configure.in.orig Thu Feb 12 13:38:59 2004 ++++ configure.in Thu Feb 12 13:44:17 2004 +@@ -315,7 +315,6 @@ + + ;; + freebsd*) CFLAGS="$CFLAGS -D_REENTRANT -DFREEBSD -D_THREAD_SAFE -DFD_SETSIZE=2048 -I." +- CXX=g++ + CXXSOFLAGS="-shared -Xlinker -Bstatic" + LIBS="$LEXLIB $LIBS" + if test "$large_files" = "yes" ; then +@@ -328,14 +327,14 @@ + rel=`uname -r` + case "$rel" in + 4*) +- CFLAGS="$CFLAGS -pthread" ++ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS" + ;; + 5*) +- LIBS="-lc_r $LEXLIB $LIBS" ++ LIBS="$PTHREAD_LIBS $LEXLIB $LIBS" + ;; + *) +- CFLAGS="$CFLAGS -pthread" +- LIBS="-lc_r $LEXLIB $LIBS" ++ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" ++ LIBS="$PTHREAD_LIBS $LEXLIB $LIBS" + ;; + esac + RPATH_OPTION="-rpath" +@@ -430,10 +429,10 @@ + esac + + if test "X$MYSQL_PATH" != "X" ; then +- LIBS="-L$MYSQL_PATH/lib -lmysqlclient $LIBS" ++ LIBS="-L$MYSQL_PATH/lib/mysql -lmysqlclient $LIBS" + AC_DEFINE(HAVE_MYSQL) +- CFLAGS="$CFLAGS -I$MYSQL_PATH/include" +- MYSQL_LIB="-L$MYSQL_PATH/lib -lmysqlclient" ++ CFLAGS="$CFLAGS -I$MYSQL_PATH/include/mysql" ++ MYSQL_LIB="-L$MYSQL_PATH/lib/mysql -lmysqlclient" + fi + + if test "X$PGSQL_PATH" != "X" ; then |