diff options
author | alepulver <alepulver@FreeBSD.org> | 2007-03-23 04:33:21 +0000 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2007-03-23 04:33:21 +0000 |
commit | ddd7b9748f60d6b00b8d7d06c87af9968028c937 (patch) | |
tree | b45f6f1f457f7390ebb9b134ac958294e1b8ae9c | |
parent | 7f7c222d12a869f65fcf19aeced174f5d31d5d08 (diff) | |
download | FreeBSD-ports-ddd7b9748f60d6b00b8d7d06c87af9968028c937.zip FreeBSD-ports-ddd7b9748f60d6b00b8d7d06c87af9968028c937.tar.gz |
- Fix building on FreeBSD versions without objformat(1).
- Fix building with GCC 4.x.
- Use ARCH instead of MACHINE_ARCH.
- Remove support for FreeBSD < 5.x.
Reported by: pointyhat
-rw-r--r-- | multimedia/toxine/Makefile | 11 | ||||
-rw-r--r-- | multimedia/toxine/files/extra-patch-main.c | 13 | ||||
-rw-r--r-- | multimedia/toxine/files/patch-configure | 24 | ||||
-rw-r--r-- | multimedia/toxine/files/patch-src__main.c | 13 |
4 files changed, 39 insertions, 22 deletions
diff --git a/multimedia/toxine/Makefile b/multimedia/toxine/Makefile index b233a10..b1e2c2a 100644 --- a/multimedia/toxine/Makefile +++ b/multimedia/toxine/Makefile @@ -17,18 +17,17 @@ COMMENT= Text user interface using the xine library LIB_DEPENDS= xine.1:${PORTSDIR}/multimedia/libxine -USE_X_PREFIX= yes GNU_CONFIGURE= yes -CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib" -MAN1= toxine.1 - OPTIONS= AALIB "Enable aalib support" on \ LIBCACA "Enable libcaca support" on \ OPTIMIZED_CFLAGS "Enable compilation optimizations" on +MAN1= toxine.1 + .include <bsd.port.pre.mk> .if ${OSVERSION} < 502000 @@ -36,10 +35,6 @@ LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline CONFIGURE_ARGS+=--with-readline=${LOCALBASE} .endif -.if ${OSVERSION} < 500000 -EXTRA_PATCHES= ${FILESDIR}/extra-patch-main.c -.endif - .if !defined(WITHOUT_AALIB) LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib PLIST_SUB+= AALIB="" diff --git a/multimedia/toxine/files/extra-patch-main.c b/multimedia/toxine/files/extra-patch-main.c deleted file mode 100644 index b0fa8b5..0000000 --- a/multimedia/toxine/files/extra-patch-main.c +++ /dev/null @@ -1,13 +0,0 @@ -FreeBSD 4.X does not have O_SYNC yet - ---- src/main.c.orig Mon Apr 12 17:55:02 2004 -+++ src/main.c Wed Jul 6 12:16:42 2005 -@@ -207,7 +207,7 @@ - { - char *ofile = (optarg) ? optarg : "toxine.out"; - -- if((tox->msg_fd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0644)) < 0) { -+ if((tox->msg_fd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | O_FSYNC, 0644)) < 0) { - fprintf(stderr, "Cannot open %s: %s\n", ofile, strerror(errno)); - exit(1); - } diff --git a/multimedia/toxine/files/patch-configure b/multimedia/toxine/files/patch-configure index 8f7a84a..4510b9f 100644 --- a/multimedia/toxine/files/patch-configure +++ b/multimedia/toxine/files/patch-configure @@ -1,5 +1,27 @@ --- configure.orig Thu May 6 18:22:57 2004 -+++ configure Wed Jul 13 17:36:09 2005 ++++ configure Fri Mar 23 00:19:27 2007 +@@ -7496,7 +7496,7 @@ + ;; + + freebsd*) +- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` ++ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) +@@ -9071,10 +9071,10 @@ + + + # This can be used to rebuild libtool when needed +-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" ++LIBTOOL_DEPS=" /usr/local/share/libtool/ltmain.sh" + + # Always use our own libtool. +-LIBTOOL='$(SHELL) $(top_builddir)/libtool' ++LIBTOOL='$(SHELL) /usr/local/bin/libtool' + + # Prevent multiple expansion + @@ -13267,10 +13267,6 @@ DEBUG_CFLAGS="$DEBUG_CFLAGS -O3" ;; diff --git a/multimedia/toxine/files/patch-src__main.c b/multimedia/toxine/files/patch-src__main.c new file mode 100644 index 0000000..59b5b92 --- /dev/null +++ b/multimedia/toxine/files/patch-src__main.c @@ -0,0 +1,13 @@ +--- src/main.c.orig Mon Apr 12 12:55:02 2004 ++++ src/main.c Thu Mar 22 19:00:30 2007 +@@ -127,8 +127,8 @@ + } + + toxine_free(tox->configfile); +- toxine_free((char *)tox->video.name); +- toxine_free((char *)tox->audio.name); ++ toxine_free(tox->video.name); ++ toxine_free(tox->audio.name); + toxine_free(tox->command.line); + toxine_free(tox->command.remain); + toxine_free(tox->command.command); |