ports/62363: [patch] let user control gstreamer-plugins dependency on audio/aRts

Piotr Smyrak smyru at smyrak.com
Wed Feb 4 20:30:50 UTC 2004


>Number:         62363
>Category:       ports
>Synopsis:       [patch] let user control gstreamer-plugins dependency on audio/aRts
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 04 12:30:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Piotr Smyrak
>Release:        FreeBSD 5.1-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD ntbk 5.1-RELEASE-p9 FreeBSD 5.1-RELEASE-p9 #0: Fri Nov 14 15:54:01 CET 2003 root at ntbk:/usr/obj/usr/src/sys/SMYRU i386


>Description:
	The current Makefile will force a dependency on aRts 
sound server if it was installed, which would also bring
chain dependencies, as for devel/qmake. This is not always 
friendly behaviour, as one of the obstacles would be a sudden 
dependency on Qt's devel/qmake popping up all around for 
GTK/Gnome apps.

	See: http://www.osnews.com/story.php?news_id=5821&page=2
for a description of such a situation.

	The following patch gives a user a chance to prevent 
gst-plugins from creating a dependency on aRts without 
a need for Makefile editing. This is a simple and minimal 
tweak, yet IMHO useful.

>How-To-Repeat:

	Install aRts, then build Gnome2, later cvsup and try to 
update any Gnome app depending on gestreamer and gst-plugins, 
or run pkgdb -F.

>Fix:


--- gst-plugins.patch begins here ---
--- Makefile.orig	Wed Jan 28 00:59:04 2004
+++ Makefile	Wed Jan 28 01:23:38 2004
@@ -131,7 +131,7 @@
 .endif
 
 # arts
-.if exists(${LOCALBASE}/lib/libartsc.so.0)
+.if exists(${LOCALBASE}/lib/libartsc.so.0) && !defined(WITHOUT_ARTS)
 WITH_ARTS=yes
 .endif
 
@@ -632,9 +632,12 @@
 	@${ECHO_MSG} '===>'
 	@${ECHO_MSG} '===> Define WITH_AALIB to enable aalib Video plugin'
 .endif
-.ifndef(WITH_ARTS)
+.ifdef(WITH_ARTS)
+	@${ECHO_MSG} '===>'
+	@${ECHO_MSG} '===> Define WITHOUT_ARTS to disable aRts Audio plugin'
+.else
 	@${ECHO_MSG} '===>'
-	@${ECHO_MSG} '===> Define WITH_ARTS to enable arts Audio plugin'
+	@${ECHO_MSG} '===> Define WITH_ARTS to enable aRts Audio plugin'
 .endif
 .ifndef(WITH_AVIFILE)
 	@${ECHO_MSG} '===>'
--- gst-plugins.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list