2005-12-28 02:00:32 +01:00
|
|
|
# New ports collection makefile for: quodlibet
|
|
|
|
# Date created: 19 December 2005
|
|
|
|
# Whom: Byung-Hee HWANG <bh@izb.knu.ac.kr>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= quodlibet
|
2006-01-04 22:16:53 +01:00
|
|
|
PORTVERSION= 0.16
|
2006-01-08 13:36:35 +01:00
|
|
|
PORTREVISION= 2
|
2005-12-28 02:00:32 +01:00
|
|
|
CATEGORIES= multimedia audio python
|
|
|
|
MASTER_SITES= http://www.sacredchao.net/~piman/software/
|
|
|
|
|
2006-01-04 22:16:53 +01:00
|
|
|
MAINTAINER= changbom.yoon@gmail.com
|
2005-12-28 02:00:32 +01:00
|
|
|
COMMENT= A GTK+-based audio player written in Python
|
|
|
|
|
2006-01-07 03:13:33 +01:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer
|
2005-12-28 02:00:32 +01:00
|
|
|
|
|
|
|
USE_PYTHON= 2.3+
|
|
|
|
USE_GNOME= pygtk2
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X_PREFIX= yes
|
2006-01-07 03:13:33 +01:00
|
|
|
USE_GSTREAMER= yes
|
2005-12-28 02:00:32 +01:00
|
|
|
|
|
|
|
MAN1= exfalso.1 quodlibet.1
|
|
|
|
|
2006-01-07 03:13:33 +01:00
|
|
|
# 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
|
|
|
|
|
2005-12-28 02:00:32 +01:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
|
|
|
|
${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXTENSIONS)
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/egg/__init__.py:${PORTSDIR}/x11-toolkits/py-gnome-extras
|
|
|
|
PLIST_SUB+= EXTENSIONS:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXTENSIONS:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
IGNORE= is unsupported on FreeBSD 4.x
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@${PYTHON_CMD} ${WRKSRC}/check.py
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.if defined(WITH_EXTENSIONS)
|
|
|
|
@cd ${WRKSRC} && ${GMAKE} extensions
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "Build done."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
2006-01-04 22:16:53 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/${PORTNAME}
|
2005-12-28 02:00:32 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
|
|
|
|
|
|
|
post-install:
|
2006-01-04 22:16:53 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/${PORTNAME}/plugins
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/qlscrobbler.py ${PREFIX}/share/${PORTNAME}/plugins
|
2005-12-28 02:00:32 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|