1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

Use options helpers
This commit is contained in:
Baptiste Daroussin 2014-04-06 18:19:46 +00:00
parent 12e06d8e03
commit 366f47fdf6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350397
2 changed files with 24 additions and 59 deletions

View File

@ -9,77 +9,41 @@ MASTER_SITES= http://herrie.info/distfiles/ \
http://www.stack.nl/~ed/projects/herrie/distfiles/ http://www.stack.nl/~ed/projects/herrie/distfiles/
MAINTAINER= ed@FreeBSD.org MAINTAINER= ed@FreeBSD.org
COMMENT= A small command line interface music player COMMENT= Small command line interface music player
HAS_CONFIGURE= yes HAS_CONFIGURE= yes
CONFIGURE_ARGS+=verbose CONFIGURE_ARGS+=verbose
CONFIGURE_ENV+= PREFIX=${PREFIX} CONFIGURE_ENV+= PREFIX=${PREFIX}
USE_BZIP2= yes USES= tar:bzip2
NO_STAGE= yes
USE_GNOME= glib20 USE_GNOME= glib20
OPTIONS_DEFINE= MAD VORBIS SNDFILE MODPLUG HTTP LIBAO XCURSES XSPF OPTIONS_DEFINE= MAD VORBIS SNDFILE MODPLUG HTTP LIBAO XCURSES XSPF NLS
OPTIONS_DEFAULT= MAD VORBIS HTTP XSPF OPTIONS_DEFAULT= MAD VORBIS HTTP XSPF
OPTIONS_SUB= yes
HTTP_DESC= HTTP streams and AudioScrobbler support HTTP_DESC= HTTP streams and AudioScrobbler support
LIBAO_DESC= LibAO support (breaks chroot) LIBAO_DESC= LibAO support (breaks chroot)
XCURSES_DESC= Build XCurses version XCURSES_DESC= Build XCurses version
MAN1= herrie.1 MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/mad \
MANCOMPRESSED= yes libid3tag.so:${PORTSDIR}/audio/libid3tag
MAD_CONFIGURE_OFF=no_mp3
.include <bsd.port.options.mk> VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_OFF=no_vorbis
.if ${OSVERSION} < 700033 SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
CONFIGURE_ARGS+=ncurses SNDFILE_CONFIGURE_OFF=no_sndfile
.endif MODPLUG_LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug
MODPLUG_CONFIGURE_OFF=no_modplug
.if ${PORT_OPTIONS:MMAD} HTTP_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/mad \ HTTP_CONFIGURE_OFF=no_http no_scrobbler
libid3tag.so:${PORTSDIR}/audio/libid3tag LIBAO_LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao
.else LIBAO_CONFIGURE_ON=ao
CONFIGURE_ARGS+=no_mp3 XCURSES_LIB_DEPENDS= libXCurses.so:${PORTSDIR}/devel/pdcurses
.endif XCURSES_CONFIGURE_ON=xcurses
.if ${PORT_OPTIONS:MVORBIS} XSPF_LIB_DEPENDS= libxspf.so:${PORTSDIR}/multimedia/libxspf
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis XSPF_CONFIGURE_OFF=no_xspf
.else NLS_USES= gettext
CONFIGURE_ARGS+=no_vorbis NLS_CONFIGURE_OFF=no_nls
.endif
.if ${PORT_OPTIONS:MSNDFILE}
LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
.else
CONFIGURE_ARGS+=no_sndfile
.endif
.if ${PORT_OPTIONS:MMODPLUG}
LIB_DEPENDS+= libmodplug.so:${PORTSDIR}/audio/libmodplug
.else
CONFIGURE_ARGS+=no_modplug
.endif
.if ${PORT_OPTIONS:MHTTP}
LIB_DEPENDS+= libbcurl.so:${PORTSDIR}/ftp/curl
.else
CONFIGURE_ARGS+=no_http no_scrobbler
.endif
.if ${PORT_OPTIONS:MLIBAO}
LIB_DEPENDS+= libao.so:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+=ao
.endif
.if ${PORT_OPTIONS:MXCURSES}
LIB_DEPENDS+= libXCurses.so:${PORTSDIR}/devel/pdcurses
CONFIGURE_ARGS+=xcurses
.endif
.if ${PORT_OPTIONS:MXSPF}
LIB_DEPENDS+= libxspf.so:${PORTSDIR}/multimedia/libxspf
.else
CONFIGURE_ARGS+=no_xspf
.endif
.if ${PORT_OPTIONS:MNLS}
PLIST_SUB+= NLS=""
USES+= gettext
.else
PLIST_SUB+= NLS="@comment "
CONFIGURE_ARGS+=no_nls
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,5 +1,6 @@
bin/herrie bin/herrie
etc/herrie.conf.sample etc/herrie.conf.sample
man/man1/herrie.1.gz
%%NLS%%share/locale/ca/LC_MESSAGES/herrie.mo %%NLS%%share/locale/ca/LC_MESSAGES/herrie.mo
%%NLS%%share/locale/da/LC_MESSAGES/herrie.mo %%NLS%%share/locale/da/LC_MESSAGES/herrie.mo
%%NLS%%share/locale/de/LC_MESSAGES/herrie.mo %%NLS%%share/locale/de/LC_MESSAGES/herrie.mo