Subject: pkg/21775: add arts support to mplayer
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marc@informatik.uni-bremen.de>
List: netbsd-bugs
Date: 06/04/2003 01:06:03
>Number:         21775
>Category:       pkg
>Synopsis:       add arts support to mplayer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 03 23:07:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 1.6T
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 1.6T NetBSD 1.6T (LEELOO) #0: Tue Jun 3 13:40:37 CEST 2003 root@leeloo.intern.geht.de:/usr/obj/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
Add a makefile knob (USE_ARTS) to make mplayer work with arts.
This is needed in a KDE environment.
	
>How-To-Repeat:
	
>Fix:
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/mplayer-share/Makefile.common,v
retrieving revision 1.32
diff -u -r1.32 Makefile.common
--- Makefile.common     2003/05/24 17:27:10     1.32
+++ Makefile.common     2003/06/03 23:01:12
@@ -38,7 +38,6 @@
 CONFIGURE_ARGS+=       --with-extralibdir="${X11BASE}/lib"
 CONFIGURE_ARGS+=       --disable-mpdvdkit
 CONFIGURE_ARGS+=       --enable-faad
-CONFIGURE_ARGS+=       --disable-arts

 # The configure script attempts to test-execute compiled programs in /tmp,
 # but that directory may be mounted as noexec; work this around by setting
@@ -46,6 +45,12 @@
 CONFIGURE_ENV+=                TMPDIR=${WRKDIR}

 .include "../../mk/bsd.prefs.mk"
+
+.if defined(USE_ARTS) && !empty(USE_ARTS:M[Yy][Ee][Ss])
+.include "../../audio/arts/buildlink2.mk"
+.else
+CONFIGURE_ARGS+=       --disable-arts
+.endif

 .if ${MACHINE_ARCH} == "i386"
 CONFIGURE_ARGS+=       --with-win32libdir="${LOCALBASE}/lib/win32"
	
>Release-Note:
>Audit-Trail:
>Unformatted: