aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-10-27 05:13:05 +0800
committernemysis <nemysis@FreeBSD.org>2013-10-27 05:13:05 +0800
commit4f4fc9a8475973bbaff6a7e7f750231afd09ba9c (patch)
tree97edca65c5ad938775bcc8be83c943af54d0bc1e
parentb5fee4f1c667442e326d3a402116dad7f964cec1 (diff)
downloadfreebsd-ports-gnome-4f4fc9a8475973bbaff6a7e7f750231afd09ba9c.tar.gz
freebsd-ports-gnome-4f4fc9a8475973bbaff6a7e7f750231afd09ba9c.tar.zst
freebsd-ports-gnome-4f4fc9a8475973bbaff6a7e7f750231afd09ba9c.zip
- Simplify master sites
- Bump PORTREVISION for dependency change - Fix portaudio2 dependency due to recent commit - Use the new format for LIB_DEPENDS - Add USE_LDCONFIG=yes - Add DOCS Option - Add FAAD SHOUTCAST TCMALLOC WAVPACK to default Options - Add OPTIONS_SUB - Change DOCS - Change pkg-plist, remove DOCS Approved by: pawel / wg (mentors, implicit)
-rw-r--r--audio/mixxx/Makefile99
-rw-r--r--audio/mixxx/pkg-plist3
2 files changed, 48 insertions, 54 deletions
diff --git a/audio/mixxx/Makefile b/audio/mixxx/Makefile
index 356431755f36..e5b279d2125e 100644
--- a/audio/mixxx/Makefile
+++ b/audio/mixxx/Makefile
@@ -3,29 +3,26 @@
PORTNAME= mixxx
PORTVERSION= 1.11.0
-PORTREVISION= 1
DISTVERSIONSUFFIX= -src
+PORTREVISION= 2
CATEGORIES= audio
-MASTER_SITES= http://downloads.mixxx.org/%SUBDIR%/
-MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION}
+MASTER_SITES= http://downloads.mixxx.org/${PORTNAME}-${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= DJ mixing application
LICENSE= GPLv2 # (or later)
-BUILD_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
-LIB_DEPENDS= FLAC:${PORTSDIR}/audio/flac \
- id3tag:${PORTSDIR}/audio/libid3tag \
- mad:${PORTSDIR}/audio/libmad \
- sndfile:${PORTSDIR}/audio/libsndfile \
- vorbis:${PORTSDIR}/audio/libvorbis \
- tag:${PORTSDIR}/audio/taglib \
- protobuf:${PORTSDIR}/devel/protobuf
-RUN_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
-
-OPTIONS_DEFINE= FAAD LAME SHOUTCAST TCMALLOC WAVPACK DOCS
-TCMALLOC_DESC= Use Google's TCMalloc
+BUILD_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2 \
+ bzr>=0:${PORTSDIR}/devel/bzr
+LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac \
+ libid3tag.so:${PORTSDIR}/audio/libid3tag \
+ libmad.so:${PORTSDIR}/audio/libmad \
+ libsndfile.so:${PORTSDIR}/audio/libsndfile \
+ libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
+ libtag.so:${PORTSDIR}/audio/taglib \
+ libprotobuf.so:${PORTSDIR}/devel/protobuf
+RUN_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
@@ -36,45 +33,44 @@ USE_GL= glu
USE_SCONS= yes
SCONS_BUILDENV= ${SCONS_ENV}
SCONS_ARGS= qtdir="${QT_PREFIX}" optimize=0
+USE_LDCONFIG= yes
-.include <bsd.port.options.mk>
+PORTDOCS= *
-.if ${PORT_OPTIONS:MFAAD}
-LIB_DEPENDS+= faad:${PORTSDIR}/audio/faad \
- mp4v2:${PORTSDIR}/multimedia/mp4v2
-SCONS_ARGS+= faad=1
-PLIST_SUB+= FAAD=""
-.else
-SCONS_ARGS+= faad=0
-PLIST_SUB+= FAAD="@comment "
-.endif
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= Mixxx-Manual.pdf README README.macro
-.if ${PORT_OPTIONS:MLAME}
-RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
-.endif
+DOCSRCDIR2= ${WRKSRC}/doc/HID
+DOCSDIR2= ${DOCSDIR}/doc/HID
+DOC_FILES2= *.odt *.pdf
-.if ${PORT_OPTIONS:MSHOUTCAST}
-LIB_DEPENDS+= shout:${PORTSDIR}/audio/libshout2
-SCONS_ARGS+= shoutcast=1
-.else
-SCONS_ARGS+= shoutcast=0
-.endif
+OPTIONS_DEFINE= DOCS FAAD LAME SHOUTCAST TCMALLOC WAVPACK
+OPTIONS_DEFAULT= FAAD SHOUTCAST TCMALLOC WAVPACK
-.if ${PORT_OPTIONS:MTCMALLOC}
-LIB_DEPENDS+= tcmalloc:${PORTSDIR}/devel/google-perftools
-SCONS_ARGS+= perftools=1
-.else
-SCONS_ARGS+= perftools=0
-.endif
+OPTIONS_SUB= yes
-.if ${PORT_OPTIONS:MWAVPACK}
-LIB_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack
-SCONS_ARGS+= wv=1
-PLIST_SUB+= WAVPACK=""
-.else
-SCONS_ARGS+= wv=0
-PLIST_SUB+= WAVPACK="@comment "
-.endif
+TCMALLOC_DESC= Use Google's TCMalloc
+
+FAAD_LIB_DEPENDS= libfaad.so:${PORTSDIR}/audio/faad \
+ libmp4v2.so:${PORTSDIR}/multimedia/mp4v2
+FAAD_SCONS_ARGS_ON= faad=1
+FAAD_SCONS_ARGS_OFF= faad=0
+
+LAME_RUN_DEPENDS= lame:${PORTSDIR}/audio/lame
+
+SHOUTCAST_LIB_DEPENDS= libshout.so:${PORTSDIR}/audio/libshout
+SHOUTCAST_SCONS_ARGS_ON= shoutcast=1
+SHOUTCAST_SCONS_ARGS_OFF= shoutcast=0
+
+TCMALLOC_LIB_DEPENDS= libtcmalloc.so
+TCMALLOC_SCONS_ARGS_ON= perftools=
+TCMALLOC_SCONS_ARGS_OFF= perftools=0
+
+WAVPACK_LIB_DEPENDS= libwavpack.so:${PORTSDIR}/audio/wavpack
+WAVPACK_SCONS_ARGS_ON= wv=1
+WAVPACK_SCONS_ARGS_OFF= wv=0
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g ; \
@@ -91,11 +87,12 @@ post-patch:
post-install:
@${STRIP_CMD} ${PREFIX}/bin/mixxx
+
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for f in Mixxx-Manual.pdf README
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR2}
+ ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
.endif
.include <bsd.port.mk>
diff --git a/audio/mixxx/pkg-plist b/audio/mixxx/pkg-plist
index dd19213fede5..5a77a2319e9a 100644
--- a/audio/mixxx/pkg-plist
+++ b/audio/mixxx/pkg-plist
@@ -3,8 +3,6 @@ bin/mixxx
%%WAVPACK%%lib/mixxx/plugins/soundsource/libsoundsourcewv.so
lib/mixxx/plugins/vamp/libmixxxminimal.so
share/applications/mixxx.desktop
-%%PORTDOCS%%%%DOCSDIR%%/Mixxx-Manual.pdf
-%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/controllers/Akai MPD24.midi.xml
%%DATADIR%%/controllers/Akai-LPD8-RK-scripts.js
%%DATADIR%%/controllers/Akai-LPD8-RK.midi.xml
@@ -9952,7 +9950,6 @@ share/pixmaps/mixxx-icon.png
@dirrm %%DATADIR%%/keyboard
@dirrm %%DATADIR%%/controllers
@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm lib/mixxx/plugins/vamp
%%FAAD%%@dirrmtry lib/mixxx/plugins/soundsource
@dirrm lib/mixxx/plugins