ports/96950: [Maintainer-update] Add WITHOUT_IPV6 knob to multimedia/mplayer

Thomas E. Zander riggs at rrr.de
Sun May 7 20:50:31 UTC 2006


>Number:         96950
>Category:       ports
>Synopsis:       [Maintainer-update] Add WITHOUT_IPV6 knob to multimedia/mplayer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 07 20:50:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas E. Zander
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD marvin.riggiland.au 6.1-RC FreeBSD
>Description:
Provide a knob to build mplayer without ipv6 protocol family support.
Suggested by Dennis Cabooter <dennis at rootxs.nl>
>How-To-Repeat:
>Fix:
Patch for multimedia/mplayer:

diff -ruN /usr/ports/multimedia/mplayer/Makefile mplayer/Makefile
--- /usr/ports/multimedia/mplayer/Makefile	Sun May  7 21:00:54 2006
+++ mplayer/Makefile	Sun May  7 21:17:01 2006
@@ -267,11 +267,15 @@
 # This knob prevents the ports system from installing additional
 # documentation. If you define this, only the manpage is going
 # to be installed.
+#
+# WITHOUT_IPV6
+# default: undefined
+# This knob disables mplayer's ipv6 protocol family capabilities.
 
 PORTNAME=	mplayer
 PORTVERSION=	0.99.7
 PORTREVISION=	13
-CATEGORIES=	multimedia audio ipv6
+CATEGORIES=	multimedia audio
 MASTER_SITES=	http://www1.mplayerhq.hu/MPlayer/releases/ \
 		http://www2.mplayerhq.hu/MPlayer/releases/ \
 		http://ftp.lug.udel.edu/MPlayer/releases/ \
@@ -468,6 +472,8 @@
 # binary-suitable package or custom build
 
 .if defined(MPLAYER_GENERIC_BUILD)
+#Generic build includes ipv6 on FreeBSD
+CATEGORIES+=	ipv6
 #Compiler flags
 CFLAGS=		#let mplayer decide on this
 CONFIGURE_ARGS+=--enable-runtime-cpudetection
@@ -549,6 +555,12 @@
 
 .if defined(WITH_OPTIMIZED_CFLAGS)
 CFLAGS+=	-O3 -ffast-math -fomit-frame-pointer
+.endif
+
+.if defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+=	--disable-inet6
+.else
+CATEGORIES+=	ipv6
 .endif
 
 .if ${HAVE_GNOME:Mgtk12}!="" && !defined(WITH_GTK2) && !defined(WITHOUT_GUI)
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list