Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  6 Jan 2006 03:39:36 -0700 (MST)
From:      Byung-Hee HWANG <bh@izb.knu.ac.kr>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/91388: [PATCH] multimedia/quodlibet: FLAC Format support
Message-ID:  <20060106103936.9DA5A64AB@viola.izb.knu.ac.kr>
Resent-Message-ID: <200601061040.k06Ae3rl087188@freefall.freebsd.org>

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

>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@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@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:



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