summaryrefslogtreecommitdiff
path: root/multimedia/xmms
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2017-08-06 12:51:50 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2017-08-06 12:51:50 +0000
commit26fdd766f7c1b383c6a24da17713bcffab464628 (patch)
tree14a3905fab2a5c7d27e69393ef389809ad3a4b86 /multimedia/xmms
parentFix build on HEAD >= 1200039. (diff)
multimedia/xmms:
- Switch to options helpers - USES=localbase - Add LICENSE_FILE
Notes
Notes: svn path=/head/; revision=447461
Diffstat (limited to 'multimedia/xmms')
-rw-r--r--multimedia/xmms/Makefile27
1 files changed, 6 insertions, 21 deletions
diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile
index 05a4252296e0..bdc09da43baa 100644
--- a/multimedia/xmms/Makefile
+++ b/multimedia/xmms/Makefile
@@ -14,10 +14,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= X Multimedia System -- audio player with Winamp GUI
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS?= ru-xmms-[0-9]* zh-xmms-[0-9]*
GNU_CONFIGURE= yes
-USES= desktop-file-utils gmake iconv libtool pathfix tar:bzip2
+USES= desktop-file-utils gmake iconv libtool localbase pathfix tar:bzip2
USE_GNOME= gtk12
USE_LDCONFIG= yes
USE_XORG= sm x11 xxf86vm
@@ -26,8 +27,6 @@ CONFIGURE_ARGS= xmms_cv_newpcm_driver=yes --disable-static
CONFIGURE_ENV= INPUT_PLUGINS="${INPUT_PLUGINS}" \
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
INPUT_PLUGINS= cdaudio mpg123 tonegen wav
OUTPUT_PLUGINS= OSS disk_writer
@@ -41,11 +40,13 @@ OPTIONS_SUB= yes
ESOUND_CONFIGURE_ENABLE=esd
ESOUND_USE= GNOME=esound
+ESOUND_VARS= OUTPUT_PLUGINS+=esd
IPV6_CONFIGURE_ENABLE= ipv6
MIKMOD_CONFIGURE_ENABLE=mikmod
MIKMOD_LIB_DEPENDS= libmikmod.so:audio/libmikmod
+MIKMOD_VARS= INPUT_PLUGINS+=mikmod
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
@@ -55,35 +56,19 @@ SIMD_CONFIGURE_ENABLE= simd
SPEC_DESC= Visualization opengl_spectrum
SPEC_CONFIGURE_ENABLE= opengl
SPEC_USE= GL=gl
+SPEC_VARS= VISUALIZATION_PLUGINS+=opengl_spectrum
VFILEINFO_DESC= Enable Extended Vorbis Fileinfo
VFILEINFO_CPPFLAGS= -DALL_VORBIS_TAGS
VORBIS_CONFIGURE_ENABLE=vorbis
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
+VORBIS_VARS= INPUT_PLUGINS+=vorbis
.if !defined(WITH_DEBUG)
INSTALL_TARGET= install-strip
.endif
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MESOUND}
-OUTPUT_PLUGINS+= esd
-.endif
-
-.if ${PORT_OPTIONS:MMIKMOD}
-INPUT_PLUGINS+= mikmod
-.endif
-
-.if ${PORT_OPTIONS:MVORBIS}
-INPUT_PLUGINS+= vorbis
-.endif
-
-.if ${PORT_OPTIONS:MSPEC}
-VISUALIZATION_PLUGINS+= opengl_spectrum
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's/alsa_found=yes/alsa_found=no/' \
${WRKSRC}/configure