1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

Add an explicit dependency on iconv and pkgconfig

Fix build with newer binutils
Use options helpers
This commit is contained in:
Baptiste Daroussin 2013-07-26 14:31:26 +00:00
parent 5563abefa4
commit 86ede9d632
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323724

View File

@ -22,36 +22,26 @@ CONFIGURE_ENV= DATADIRNAME=share
# Cannot enable -Werror yet: Clang does not like the code `printf(_("..."))',
# see this bug for details: http://llvm.org/bugs/show_bug.cgi?id=3814
#CONFIGURE_ARGS= --with-werror
USES= gettext
USE_GMAKE= yes
USES= gettext gmake iconv pkgconfig
USE_GNOME= gtk20
USE_SQLITE= yes
INSTALLS_ICONS= yes
PORTDOCS= AUTHORS ChangeLog NEWS README
LDFLAGS= -liconv
OPTIONS_DEFINE= DOCS MPD XMMS2 AMAROK
MPD_DESC= Enable MPD support
XMMS2_DESC= Enable XMMS2 support
AMAROK_DESC= Enable Amarok 1.4 support
MPD_LIB_DEPENDS= mpd:${PORTSDIR}/audio/libmpd
MPD_CONFIGURE_OFF= --disable-mpd
XMMS2_LIB_DEPENDS= xmmsclient:${PORTSDIR}/audio/xmms2
XMMS2_CONFIGURE_OFF= --disable-xmms2
AMAROK_CONFIGURE_ENABLE= amarok1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMPD}
LIB_DEPENDS+= mpd:${PORTSDIR}/audio/libmpd
.else
CONFIGURE_ARGS+= --disable-mpd
.endif
.if ${PORT_OPTIONS:MXMMS2}
LIB_DEPENDS+= xmmsclient:${PORTSDIR}/audio/xmms2
.else
CONFIGURE_ARGS+= --disable-xmms2
.endif
.if ${PORT_OPTIONS:MAMAROK}
CONFIGURE_ARGS+= --enable-amarok1
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}