diff options
author | green <green@FreeBSD.org> | 2004-02-27 23:23:44 +0800 |
---|---|---|
committer | green <green@FreeBSD.org> | 2004-02-27 23:23:44 +0800 |
commit | b02829720a66b233388751dc8d233b658d35b71d (patch) | |
tree | 8b1521a31ac6fe39f8ea7e35cac4ac6713b46974 | |
parent | ed292346e2ebdf38a28202e5443900dcd1a98e97 (diff) | |
download | freebsd-ports-gnome-b02829720a66b233388751dc8d233b658d35b71d.tar.gz freebsd-ports-gnome-b02829720a66b233388751dc8d233b658d35b71d.tar.zst freebsd-ports-gnome-b02829720a66b233388751dc8d233b658d35b71d.zip |
Actually compile using the system CFLAGS, and add a WITH_DEBUG option.
Version not bumped due to -O probably not making much difference.
-rw-r--r-- | audio/xmms-imms/Makefile | 6 | ||||
-rw-r--r-- | audio/xmms-imms/files/patch-configure.ac | 13 | ||||
-rw-r--r-- | audio/xmms-imms/files/patch-vars.mk.in | 2 |
3 files changed, 19 insertions, 2 deletions
diff --git a/audio/xmms-imms/Makefile b/audio/xmms-imms/Makefile index bf252cb81301..111ba5d959fa 100644 --- a/audio/xmms-imms/Makefile +++ b/audio/xmms-imms/Makefile @@ -29,7 +29,11 @@ USE_AUTOCONF= yes USE_AUTOHEADER= yes WANT_AUTOCONF_VER= 257 GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" CFLAGS="-I${LOCALBASE}/include" +CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" +.if defined(WITH_DEBUG) +CONFIGURE_ARGS+=--enable-debug +.endif INSTALLS_SHLIB= yes .include <bsd.port.mk> diff --git a/audio/xmms-imms/files/patch-configure.ac b/audio/xmms-imms/files/patch-configure.ac new file mode 100644 index 000000000000..7efde56e0a76 --- /dev/null +++ b/audio/xmms-imms/files/patch-configure.ac @@ -0,0 +1,13 @@ +--- configure.ac.orig Fri Feb 27 09:49:26 2004 ++++ configure.ac Fri Feb 27 09:49:50 2004 +@@ -29,8 +29,8 @@ + AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], + [Extra debug output]), +- [enable_debug='yes' DEBUG_CFLAGS="-ggdb -O0 -DDEBUG"], +- [enable_debug='no' DEBUG_CFLAGS="-O3"]) ++ [enable_debug='yes' DEBUG_CFLAGS="-g -DDEBUG"], ++ [enable_debug='no' DEBUG_CFLAGS=""]) + + AC_PROG_CXX + AC_PROG_CC diff --git a/audio/xmms-imms/files/patch-vars.mk.in b/audio/xmms-imms/files/patch-vars.mk.in index 6e85f6c1dbe5..1dbf7eb9a67b 100644 --- a/audio/xmms-imms/files/patch-vars.mk.in +++ b/audio/xmms-imms/files/patch-vars.mk.in @@ -10,7 +10,7 @@ songinfo.o regexx.o strmanip.o levenshtein.o xidle.o md5.o -CFLAGS = `xmms-config --cflags` @DEBUG_CFLAGS@ -Wall -fPIC -D_REENTRANT -+CFLAGS = `xmms-config --cflags` @CFLAGS@ -Wall -fPIC -D_REENTRANT ++CFLAGS = `xmms-config --cflags` @DEBUG_CFLAGS@ @CFLAGS@ -Wall -fPIC -D_REENTRANT CPPFLAGS = ${CFLAGS} -pedantic -fno-rtti -LDFLAGS = `xmms-config --libs` @LIBS@ +LDFLAGS = `xmms-config --libs` -lc @LIBS@ |