# New ports collection makefile for: quodlibet # Date created: 19 December 2005 # Whom: Byung-Hee HWANG # # $FreeBSD$ # PORTNAME= quodlibet PORTVERSION= 0.24 CATEGORIES= multimedia audio python gnome MASTER_SITES= http://www.sacredchao.net/~piman/software/ MAINTAINER= johnson.peter@gmail.com COMMENT= A GTK+-based audio player written in Python BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gst-0.10/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gst-0.10/gst/__init__.py:${PORTSDIR}/multimedia/py-gstreamer BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen USE_PYTHON= 2.4+ USE_GNOME= pygtk2 USE_GETTEXT= yes USE_GMAKE= yes USE_X_PREFIX= yes USE_GSTREAMER= yes USE_GSTREAMER+= gconf MAN1= exfalso.1 quodlibet.1 OPTIONS= FLAC "Flac audio support" on OPTIONS+= MP3 "MP3 audio support" on OPTIONS+= AAC "AAC support with MPEG4IP" on OPTIONS+= MUSEPACK "Musepack (MPC, musicpd, libmpcdec) support" on OPTIONS+= OGG "OGG multimedia container support" on OPTIONS+= SPEEX "OGG/Speex audio support" on OPTIONS+= VORBIS "OGG/Vorbis audio support" on OPTIONS+= WAVPACK "Wavpack support" on OPTIONS+= DBUS "Enable dbus (iPod, storage) support" on OPTIONS+= REMOTE "Enable remote playback" on OPTIONS+= EXTENSIONS "Enable extensions" off .include .if !defined(WITHOUT_OGG) USE_GSTREAMER+= ogg .endif .if !defined(WITHOUT_VORBIS) USE_GSTREAMER+= vorbis .endif .if !defined(WITHOUT_SPEEX) USE_GSTREAMER+= speex .endif .if !defined(WITHOUT_MP3) USE_GSTREAMER+= mad .endif .if !defined(WITHOUT_FLAC) USE_GSTREAMER+= flac .endif .if !defined(WITHOUT_MUSEPACK) || !defined(WITHOUT_WAVPACK) \ || !defined(WITHOUT_AAC) BUILD_DEPENDS+= ${PYCTYPES} RUN_DEPENDS+= ${PYCTYPES} .endif .if !defined(WITHOUT_MUSEPACK) LIB_DEPENDS+= mpcdec.4:${PORTSDIR}/audio/libmpcdec USE_GSTREAMER+= musepack .endif .if !defined(WITHOUT_WAVPACK) LIB_DEPENDS+= wavpack.0:${PORTSDIR}/audio/wavpack USE_GSTREAMER+= wavpack .endif .if !defined(WITHOUT_MPEG4IP) LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 USE_GSTREAMER+= faad .endif .if !defined(WITHOUT_DBUS) BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus .endif .if !defined(WITHOUT_REMOTE) BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/feedparser.py:${PORTSDIR}/textproc/py-feedparser USE_GSTREAMER+= gnomevfs .endif .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 " .endif .if defined(PACKAGE_BUILDING) BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ ${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} .endif .if ${OSVERSION} < 500000 IGNORE= is unsupported on FreeBSD 4.x .endif do-configure: @${PYTHON_CMD} ${WRKSRC}/check.py do-build: @cd ${WRKSRC}/po && ${GMAKE} po .if defined(WITH_EXTENSIONS) @cd ${WRKSRC} && ${GMAKE} extensions .endif pre-install: @${MKDIR} ${PREFIX}/lib/${PORTNAME} @${MKDIR} ${PREFIX}/share/applications post-install: @${MKDIR} ${DATADIR}/plugins @${MKDIR} ${DATADIR}/plugins/events @${INSTALL_DATA} ${FILESDIR}/qlscrobbler.py ${DATADIR}/plugins/events .include