diff options
author | bapt <bapt@FreeBSD.org> | 2013-03-22 01:32:34 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-03-22 01:32:34 +0800 |
commit | b79f053a9a198175366f97533f6c47236fa506c7 (patch) | |
tree | f16cf02a99cfd14adff3dd81db12a4115df6fe18 /audio/pytone | |
parent | c58f2a61cc77c8ad12e2259fbabfac71bc279c0a (diff) | |
download | freebsd-ports-gnome-b79f053a9a198175366f97533f6c47236fa506c7.tar.gz freebsd-ports-gnome-b79f053a9a198175366f97533f6c47236fa506c7.tar.zst freebsd-ports-gnome-b79f053a9a198175366f97533f6c47236fa506c7.zip |
Convert to new options framework left un converted ports in a* categories
While here trim headers
Convert some gnomehack to pathfix
Convert some pkgconfig to USE_PKGCONFIG=build
Diffstat (limited to 'audio/pytone')
-rw-r--r-- | audio/pytone/Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/audio/pytone/Makefile b/audio/pytone/Makefile index d3f0000cd9f7..1906d82f35f7 100644 --- a/audio/pytone/Makefile +++ b/audio/pytone/Makefile @@ -21,38 +21,38 @@ USE_NCURSES= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= PyTone -OPTIONS= MAD "MPEG Audio Decoder (libmad) support" On \ - VORBIS "Ogg/Vorbis support" On \ - PYAO "Libao cross-platform audio library" Off \ - XMMS "Enable XMMS player engine" Off \ - MPG123 "Enable mpg123 player engine" Off \ - MPG321 "Enable mpg321 player engine" Off +OPTIONS_DEFINE= MAD VORBIS PYAO XMMS MPG123 MPG321 +OPTIONS_DEFAULT= MAD VORBIS +PYAO_DESC= ${AO_DESC} +XMMS_DESC= XMMS player engine +MPG123_DESC= mpg123 player engine +MPG321_DESC= mpg321 player engine -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -.if !defined(WITHOUT_MAD) +.if ${PORT_OPTIONS:MMAD} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/madmodule.so:${PORTSDIR}/audio/py-mad .endif -.if !defined(WITHOUT_VORBIS) +.if ${PORT_OPTIONS:MVORBIS} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis .endif -.if defined(WITH_PYAO) +.if ${PORT_OPTIONS:MPYAO} BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/aomodule.so:${PORTSDIR}/audio/py-ao .endif -.if defined(WITH_XMMS) +.if ${PORT_OPTIONS:MXMMS} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xmms/xmmscontrol.so:${PORTSDIR}/audio/py-xmms .endif -.if defined(WITH_MPG123) +.if ${PORT_OPTIONS:MMPG123} RUN_DEPENDS+= ${LOCALBASE}/bin/mpg123:${PORTSDIR}/audio/mpg123 .endif -.if defined(WITH_MPG321) +.if ${PORT_OPTIONS:MMPG321} RUN_DEPENDS+= ${LOCALBASE}/bin/mpg321:${PORTSDIR}/audio/mpg321 .endif @@ -66,4 +66,4 @@ post-install: @${CP} ${WRKSRC}/conf/pytonerc ${PREFIX}/etc/pytonerc.sample @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |