diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-08-25 04:51:38 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-08-25 04:51:38 +0000 |
commit | eb09bf66a1201c5fe3bda4e9c23eac310dc101b7 (patch) | |
tree | cd79df66b6c9737eb8bb6622bcca0c47850b7b6f /multimedia | |
parent | 87236a41af44fb287c55db4393b4693b8f300104 (diff) | |
download | ports-eb09bf66a1201c5fe3bda4e9c23eac310dc101b7.tar.gz ports-eb09bf66a1201c5fe3bda4e9c23eac310dc101b7.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mplayer/Makefile | 42 | ||||
-rw-r--r-- | multimedia/mplayerxp/Makefile | 42 |
2 files changed, 70 insertions, 14 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> diff --git a/multimedia/mplayerxp/Makefile b/multimedia/mplayerxp/Makefile index 4b60ab7bafc5..6f268a15190f 100644 --- a/multimedia/mplayerxp/Makefile +++ b/multimedia/mplayerxp/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> |