- Convert to new options framework

- Add shared mmkeys and xspf descriptions
This commit is contained in:
Martin Wilke 2012-05-29 14:38:30 +00:00
parent ba397e5cae
commit 86d771def0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=297676
2 changed files with 6 additions and 4 deletions

View file

@ -11,6 +11,7 @@ DOCS_DESC?= Build and install the documentation
FLAC_DESC?= Enable support for flac
ID3_DESC?= Enable support for id3 tags
LDAP_DESC?= Enable LDAP support
MMKEYS_DESC?= Enable multimedia keys support
MP4_DESC?= Enable support for mp4
MULTIBYTE_DESC?= Enable multibyte character support
NLS_DESC?= Build and install the localisation data
@ -20,3 +21,4 @@ SSL_DESC?= Enable SSL support
STATIC_DESC?= Build static executable/libraries
TIDY_DESC?= Enable tidy html cleaner support
VORBIS_DESC?= Enable support for ogg vorbis
XSPF_DESC?= Enable support for XSPF

View file

@ -34,16 +34,16 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= gmpc-remote.1 gmpc.1 gmpc-remote-stream.1
OPTIONS= MMKEYS "Enable multimedia keys support" on \
XSPF "Enable support for XSPF playlists" off
OPTIONS_DEFINE= MMKEYS XSPF
OPTIONS_DEFAULT= MMKEYS
.include <bsd.port.options.mk>
.if defined(WITHOUT_MMKEYS)
.if ${PORT_OPTIONS:MMMKEYS}
CONFIGURE_ARGS+=--disable-mmkeys
.endif
.if defined(WITH_XSPF)
.if ${PORT_OPTIONS:MXSPF}
LIB_DEPENDS+= xspf.4:${PORTSDIR}/multimedia/libxspf
CONFIGURE_ARGS+=--enable-libxspf
.else