Commit e1b8fc77 authored by Pawel Pekala's avatar Pawel Pekala
Browse files

- Remove EXTENSIONS option it depended on USE_GNOME=pygnomeestras

  funcionality removed in r372768
- Make depends path independent
- Use option helpers for better clarity

PR:		201328
Submitted by:	myslef
Approved by:	maintainer timeout
parent d8f99b23
...@@ -12,8 +12,8 @@ COMMENT= GTK+-based audio player written in Python ...@@ -12,8 +12,8 @@ COMMENT= GTK+-based audio player written in Python
LICENSE= GPLv2 LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:${PORTSDIR}/audio/py-mutagen
USE_PYTHON= distutils autoplist USE_PYTHON= distutils autoplist
USE_GNOME= pygtk2 USE_GNOME= pygtk2
...@@ -24,69 +24,36 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-pydistutils ...@@ -24,69 +24,36 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-pydistutils
USE_GSTREAMER= gconf good python USE_GSTREAMER= gconf good python
OPTIONS_DEFINE= FLAC MP3 AAC MUSEPACK OGG SPC SPEEX VORBIS WAVPACK DBUS REMOTE EXTENSIONS OPTIONS_DEFINE= FLAC MP3 AAC MUSEPACK OGG SPEEX VORBIS WAVPACK DBUS REMOTE
OPTIONS_DEFINE_i386= SPC
OPTIONS_DEFAULT= FLAC MP3 AAC MUSEPACK OGG SPC SPEEX VORBIS WAVPACK DBUS REMOTE OPTIONS_DEFAULT= FLAC MP3 AAC MUSEPACK OGG SPEEX VORBIS WAVPACK DBUS REMOTE
OPTIONS_DEFAULT_i386= SPC
SPC_DESC= SPC (SNES ROM audio) support on i386 SPC_DESC= SPC (SNES ROM audio) support on i386
SPEEX_DESC= OGG/Speex audio support SPEEX_DESC= OGG/Speex audio support
REMOTE_DESC= Enable remote playback REMOTE_DESC= Enable remote playback
EXTENSIONS_DESC= Enable extensions
OGG_USE= GSTREAMER=ogg
.include <bsd.port.options.mk> VORBIS_USE= GSTREAMER=vorbis
SPC_USE= GSTREAMER=spc
.if ${PORT_OPTIONS:MOGG} SPEEX_USE= GSTREAMER=speex
USE_GSTREAMER+= ogg MP3_USE= GSTREAMER=mp3
.endif FLAC_USE= GSTREAMER=flac
.if ${PORT_OPTIONS:MVORBIS} MUSEPACK_LIB_DEPENDS= libmpcdec.so:${PORTSDIR}/audio/musepack
USE_GSTREAMER+= vorbis MUSEPACK_USE= GSTREAMER=musepack
.endif
WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack
.if ${PORT_OPTIONS:MSPC} && ${ARCH} == i386 WAVPACK_USE= GSTREAMER=wavpack
USE_GSTREAMER+= spc
.endif AAC_LIB_DEPENDS= libmp4v2.so:${PORTSDIR}/multimedia/mp4v2
AAC_USE= GSTREAMER=faad
.if ${PORT_OPTIONS:MSPEEX}
USE_GSTREAMER+= speex DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:${PORTSDIR}/devel/py-dbus
.endif DBUS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:${PORTSDIR}/devel/py-dbus
.if ${PORT_OPTIONS:MMP3} REMOTE_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>0:${PORTSDIR}/textproc/py-feedparser
USE_GSTREAMER+= mp3 REMOTE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}feedparser>0:${PORTSDIR}/textproc/py-feedparser
.endif REMOTE_USE= GSTREAMER=gnomevfs
.if ${PORT_OPTIONS:MFLAC}
USE_GSTREAMER+= flac
.endif
.if ${PORT_OPTIONS:MMUSEPACK}
LIB_DEPENDS+= libmpcdec.so:${PORTSDIR}/audio/musepack
USE_GSTREAMER+= musepack
.endif
.if ${PORT_OPTIONS:MWAVPACK}
LIB_DEPENDS+= libwavpack.so:${PORTSDIR}/audio/wavpack
USE_GSTREAMER+= wavpack
.endif
.if ${PORT_OPTIONS:MAAC}
LIB_DEPENDS+= libmp4v2.so:${PORTSDIR}/multimedia/mp4v2
USE_GSTREAMER+= faad
.endif
.if ${PORT_OPTIONS:MDBUS}
BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
.endif
.if ${PORT_OPTIONS:MREMOTE}
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 ${PORT_OPTIONS:MEXTENSIONS}
USE_GNOME+= pygnomeextras
.endif
.include <bsd.port.mk> .include <bsd.port.mk>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment