diff options
author | lioux <lioux@FreeBSD.org> | 2001-11-15 12:42:26 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-11-15 12:42:26 +0800 |
commit | 25a149a2def42c736508a6f9669061d7df1278d7 (patch) | |
tree | eefce1f54006fb36eeec7abab28cfc8734f07f5e /graphics/mplayer | |
parent | 86916f8b15faed2523e4886a7c697979da2702b7 (diff) | |
download | freebsd-ports-graphics-25a149a2def42c736508a6f9669061d7df1278d7.tar.gz freebsd-ports-graphics-25a149a2def42c736508a6f9669061d7df1278d7.tar.zst freebsd-ports-graphics-25a149a2def42c736508a6f9669061d7df1278d7.zip |
1) make it work on -current given recent malloc.h problem
2) remove esound options since they do not work yet
3) bump PORTREVISION due to (1)
Submitted by: maintainer
Diffstat (limited to 'graphics/mplayer')
-rw-r--r-- | graphics/mplayer/Makefile | 13 | ||||
-rw-r--r-- | graphics/mplayer/files/patch-ad | 42 |
2 files changed, 40 insertions, 15 deletions
diff --git a/graphics/mplayer/Makefile b/graphics/mplayer/Makefile index c75c7892b8f..a972903256c 100644 --- a/graphics/mplayer/Makefile +++ b/graphics/mplayer/Makefile @@ -7,6 +7,7 @@ PORTNAME= mplayer PORTVERSION= 0.50.0.2 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://ftp.mplayerhq.hu/MPlayer/releases/ \ http://www.stud.uni-karlsruhe.de/~uedc/mplayer/ \ @@ -22,10 +23,10 @@ RUN_DEPENDS= ${LOCALBASE}/share/mplayer/fonts:${PORTSDIR}/graphics/mplayer-fonts USE_BZIP2= yes USE_GMAKE= yes USE_XLIB= yes -WANT_ESOUND= yes GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" +CONFIGURE_ARGS= --disable-esd MAN1= mplayer.1 MANCOMPRESSED= no @@ -51,10 +52,6 @@ LIB_DEPENDS+= dvdcss.0:${PORTSDIR}/graphics/libdvdcss \ dvdread.2:${PORTSDIR}/graphics/libdvdread .endif -.if defined(WITH_ESOUND) || defined(HAVE_ESOUND) -USE_ESOUND= yes -.endif - .if defined(WITH_SVGALIB) LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib .endif @@ -74,9 +71,6 @@ CONFIGURE_ARGS+=--disable-3dnow .if defined(WITHOUT_DSP) || defined(WITHOUT_3DNOW) || ${OSVERSION} < 400021 CONFIGURE_ARGS+=--disable-3dnowex .endif -.if !(defined(WITH_ESOUND) || defined(HAVE_ESOUND)) -CONFIGURE_ARGS+=--disable-esd -.endif .if defined(WITHOUT_SSE) CONFIGURE_ARGS+=--disable-mmx2 --disable-sse .endif @@ -107,9 +101,6 @@ pre-everything:: .if !defined(WITH_DVD) @${ECHO_MSG} "You can enable DVD support by defining WITH_DVD." .endif -.if !(defined(WITH_ESOUND) || defined(HAVE_ESOUND)) - @${ECHO_MSG} "You can enable ESOUND sound support by defining WITH_ESOUND." -.endif .if !defined(WITH_SVGALIB) @${ECHO_MSG} "You can enable SVGALIB support by defining WITH_SVGALIB." .endif diff --git a/graphics/mplayer/files/patch-ad b/graphics/mplayer/files/patch-ad index 532df185635..bb36af32952 100644 --- a/graphics/mplayer/files/patch-ad +++ b/graphics/mplayer/files/patch-ad @@ -1,5 +1,5 @@ --- configure.old Sun Oct 7 23:36:29 2001 -+++ configure Fri Oct 12 11:22:39 2001 ++++ configure Tue Nov 13 15:38:29 2001 @@ -299,7 +299,7 @@ _confcygwin="TARGET_CYGWIN=no" _confwin32= @@ -56,7 +56,41 @@ { _gl=no; echo "GL includes not found!";} else $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -lm $_socklib > /dev/null 2>&1 || \ -@@ -1645,33 +1634,33 @@ +@@ -998,33 +987,10 @@ + # --- + # check availability of some header files + +-cat > $TMPC << EOF +-#include <malloc.h> +-int main( void ) { return 0; } +-EOF + +-_memalign_def= + _memalign=no + _malloc_h=no +-if $_cc -o $TMPO $TMPC 2> /dev/null ; then +-_malloc_h=yes +-# check for memalign - atmos +-# should this be restricted to x86, or customized for cpu types (opt for cacheline sizes)? +-cat > $TMPC << EOF +-#include <malloc.h> +-int main ( void ) { +-char *string = NULL; +-string = memalign(64, sizeof(char)); +-return 0; +-} +-EOF +-_memalign_def='/* #define memalign(a,b) malloc(b) */' +-_memalign=yes +-$_cc -o $TMPO $TMPC 2> /dev/null || _memalign=no +-if [ "$_memalign" = "no" ]; then + _memalign_def='#define memalign(a,b) malloc(b)' +-fi +-fi + + + cat > $TMPC << EOF +@@ -1645,33 +1611,33 @@ echo echo $_echo_n "Checking for gtk version ... $_echo_c" @@ -96,7 +130,7 @@ [ -z "$_gliblib" ] && { echo 'glib not found.'; exit 1; } echo "done" -@@ -1700,7 +1689,7 @@ +@@ -1700,7 +1666,7 @@ if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then # Under XFree86 4.x GL port is poorly designed if [ -r /usr/X11R6/bin/XFree86 ]; then @@ -105,7 +139,7 @@ else _gllib='-lGL' fi -@@ -1926,7 +1915,7 @@ +@@ -1926,7 +1892,7 @@ # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS # for MT applications: if [ "$system_name" = "FreeBSD" ]; then |