diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-08-25 12:51:38 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-08-25 12:51:38 +0800 |
commit | f2e7bb1a1a377cf7858bdcd9c0647e6b80246887 (patch) | |
tree | 7dc2e44190c81dffb9b83de91bc28920303d86b3 /multimedia/mplayer | |
parent | a3471a0714de23bb124ddbc60456af8ecc6e174c (diff) | |
download | freebsd-ports-gnome-f2e7bb1a1a377cf7858bdcd9c0647e6b80246887.tar.gz freebsd-ports-gnome-f2e7bb1a1a377cf7858bdcd9c0647e6b80246887.tar.zst freebsd-ports-gnome-f2e7bb1a1a377cf7858bdcd9c0647e6b80246887.zip |
Added Options to build for diffrent CPU types.
PR: 29959,30020
Submitted by: riggs@f113.hadiko.de
Diffstat (limited to 'multimedia/mplayer')
-rw-r--r-- | multimedia/mplayer/Makefile | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile index 4b60ab7bafc5..6f268a15190f 100644 --- a/multimedia/mplayer/Makefile +++ b/multimedia/mplayer/Makefile @@ -8,7 +8,7 @@ PORTNAME= mplayer PORTVERSION= 0.18 CATEGORIES= graphics -MASTER_SITES= http://mp.dev.hu/MPlayer/releases/ \ +MASTER_SITES= http://MPlayerHQ.hu/MPlayer/releases/ \ http://www.stud.uni-karlsruhe.de/~uedc/mplayer/ DISTNAME= MPlayer-${PORTVERSION}pre EXTRACT_SUFX= .tgz @@ -32,17 +32,27 @@ USE_XLIB= yes LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png RUN_DEPENDS= ${PREFIX}/share/mplayer/fonts:${PORTSDIR}/graphics/mplayer-fonts -CONFIGURE_ARGS+=--disable-esd \ - --enable-mmx2 \ - --enable-3dnow \ - --enable-3dnowex +CONFIGURE_ARGS+=--disable-esd + +.include <bsd.port.pre.mk> .if defined(WITH_SDL) LIB_DEPENDS+= SDL-1.1.3:${PORTSDIR}/devel/sdl12 .else BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm .endif - +.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 +CONFIGURE_ARGS+=--enable-3dnow +.endif +.if !defined(WITHOUT_3DNOWEX) && !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 +CONFIGURE_ARGS+=--enable-3dnowex +.endif +.if !defined(WITHOUT_MMX2) +CONFIGURE_ARGS+=--enable-mmx2 +.endif +.if defined(WITH_SSE) +CONFIGURE_ARGS+=--enable-sse +.endif .if defined(USE_AVIFILE_CODECS) BUILD_DEPENDS+= ${PREFIX}/lib/win32:${PORTSDIR}/graphics/win32-codecs .else @@ -50,6 +60,24 @@ BUILD_DEPENDS+= ${PREFIX}/lib/mplayer-codecs:${PORTSDIR}/graphics/mplayer-codecs CONFIGURE_ARGS+=--with-win32libdir=${LOCALBASE}/lib/mplayer-codecs .endif +pre-extract: + +.if !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 + @${ECHO_MSG} "You can disable 3DNow! support by defining WITHOUT_3DNOW" +.endif + +.if !defined(WITHOUT_3DNOWEX) && !defined(WITHOUT_3DNOW) && ${OSVERSION} >= 400021 + @${ECHO_MSG} "You can disable K7 3DNow! extension support by defining WITHOUT_3DNOWEX" +.endif +.if !defined(WITHOUT_MMX2) + @${ECHO_MSG} "You can disable MMX2 support by defining WITHOUT_MMX2" +.endif +.if !defined(WITH_SSE) + @${ECHO_MSG} "You can enable SSE optimized decoding by defining WITH_SSE" + @${ECHO_MSG} "You have to enable \"options CPU_ENABLE_SSE\" in your kernel" + @${ECHO_MSG} "config in order to enable kernel support for SSE." +.endif + post-install: @${MKDIR} ${PREFIX}/share/mplayer @${CHMOD} 755 ${PREFIX}/share/mplayer @@ -71,4 +99,4 @@ post-install: install-user: @${PERL} ${FILESDIR}/install-user -.include <bsd.port.mk> +.include <bsd.port.post.mk> |