ports/91388: [PATCH] multimedia/quodlibet: FLAC Format support

Byung-Hee HWANG bh at izb.knu.ac.kr
Fri Jan 6 10:40:04 UTC 2006


>Number:         91388
>Category:       ports
>Synopsis:       [PATCH] multimedia/quodlibet: FLAC Format support
>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:   Fri Jan 06 10:40:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Byung-Hee HWANG
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
InZealBomb
>Environment:
System: FreeBSD viola.izb.knu.ac.kr 6.0-STABLE FreeBSD 6.0-STABLE #0: Sat Dec 10 09:05:22 MST 2005 bh at viola.izb.knu.ac.kr:/usr/src/sys/i386/compile/II82801BA i386

>Description:
- FLAC [1] Format support
- [1] http://flac.sourceforge.net/

>How-To-Repeat:
After CVSup(cause py-flac), I tried patch and re-build. It worked correctly.
See follow, <URL:http://izb.knu.ac.kr/~bh/tmp/py-flac/files/flac_ql_ss.png>.

>Fix:

--- ports-quodlibet-20060106.diff begins here ---
diff --exclude=CVS -uNr quodlibet.orig/Makefile quodlibet/Makefile
--- quodlibet.orig/Makefile	2006-01-04 14:16:53.000000000 -0700
+++ quodlibet/Makefile	2006-01-05 10:48:54.336986828 -0700
@@ -13,23 +13,43 @@
 MAINTAINER=	changbom.yoon at gmail.com
 COMMENT=	A GTK+-based audio player written in Python
 
-BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer \
-		${PYTHON_SITELIBDIR}/ogg/_ogg.so:${PORTSDIR}/audio/py-ogg \
-		${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis \
-		${PYTHON_SITELIBDIR}/madmodule.so:${PORTSDIR}/audio/py-mad
-RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer \
-		${PYTHON_SITELIBDIR}/ogg/_ogg.so:${PORTSDIR}/audio/py-ogg \
-		${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis \
-		${PYTHON_SITELIBDIR}/madmodule.so:${PORTSDIR}/audio/py-mad
+BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer
+RUN_DEPENDS=	${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer
 
 USE_PYTHON=	2.3+
 USE_GNOME=	pygtk2
 USE_GMAKE=	yes
 USE_X_PREFIX=	yes
-USE_GSTREAMER=	ogg vorbis mad
+USE_GSTREAMER=	yes
 
 MAN1=		exfalso.1 quodlibet.1
 
+# Supported formats: ogg vorbis mad flac
+QUODLIBET_FORMATS?=	ogg vorbis mad flac
+.for format in ${QUODLIBET_FORMATS}
+WANT_QUODLIBET_${format:U}=	yes
+.endfor
+
+.if defined(WANT_QUODLIBET_OGG)
+BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/ogg/_ogg.so:${PORTSDIR}/audio/py-ogg
+USE_GSTREAMER+=	ogg
+.endif
+
+.if defined(WANT_QUODLIBET_VORBIS)
+BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis
+USE_GSTREAMER+=	vorbis
+.endif
+
+.if defined(WANT_QUODLIBET_MAD)
+BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/madmodule.so:${PORTSDIR}/audio/py-mad
+USE_GSTREAMER+=	mad
+.endif
+
+.if defined(WANT_QUODLIBET_FLAC)
+BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/flac/__init__.py:${PORTSDIR}/audio/py-flac
+USE_GSTREAMER+=	flac
+.endif
+
 .if defined(PACKAGE_BUILDING)
 BUILD_DEPENDS+=	Xvfb:${X_VFBSERVER_PORT} \
 		${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
@@ -37,7 +57,6 @@
 
 .if defined(WITH_EXTENSIONS)
 BUILD_DEPENDS+=	${PYTHON_SITELIBDIR}/gtk-2.0/egg/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome-extras
-RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/gtk-2.0/egg/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome-extras
 PLIST_SUB+=	EXTENSIONS:=""
 .else
 PLIST_SUB+=	EXTENSIONS:="@comment "
--- ports-quodlibet-20060106.diff ends here ---

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



More information about the freebsd-ports-bugs mailing list