Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2001 09:27:49 +0200 (CEST)
From:      "Thomas E. Zander" <riggs@f113.hadiko.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30020: Update port : graphics/mplayer
Message-ID:  <200108240727.f7O7Rnb83993@f113.hadiko.de>

next in thread | raw e-mail | index | archive | help

>Number:         30020
>Category:       ports
>Synopsis:       Update port : graphics/mplayer
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 24 00:30:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas E. Zander
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:
System: FreeBSD f113.hadiko.de 4.4-RC FreeBSD 4.4-RC #0: Fri Aug 17 00:34:57 CEST 2001 root@f113.hadiko.de:/usr/obj/usr/src/sys/MARVIN i386
>Description:
Update of MASTER_SITES because mplayer Homepage has changed, fix ports/29959 in a unified diff
>How-To-Repeat:
see ports/29959 for information
>Fix:

--- /usr/ports/graphics/mplayer/Makefile	Wed Aug 22 08:11:07 2001
+++ /usr/ports/riggs/mplayer/Makefile	Fri Aug 24 09:18:21 2001
@@ -2,13 +2,13 @@
 # Date created:		10 August 2001
 # Whom:			Thomas E. Zander
 #			with lots of help from Vladimir Kushnir
-# $FreeBSD: ports/graphics/mplayer/Makefile,v 1.1 2001/08/22 06:11:07 dinoex Exp $
+# $FreeBSD$
 #
 
 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 @@
 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 @@
 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 @@
 install-user:
 	@${PERL} ${FILESDIR}/install-user
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108240727.f7O7Rnb83993>