summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-03-07 20:09:55 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-03-07 20:09:55 +0000
commit45c8849f51f6bf9a1ecbf7042b268d05a8d620f0 (patch)
tree6d72beaaa4a6cff51b7bd8e62d68ae529575c66b /audio
parentNo need any longer to remove the Courgette tests from the unit tests. (diff)
- Use new OPTIONS features
- After switch to cmake, it should be MAKE_JOBS_SAFE - Remove unneeded lines
Notes
Notes: svn path=/head/; revision=347419
Diffstat (limited to 'audio')
-rw-r--r--audio/liblastfm/Makefile34
1 files changed, 9 insertions, 25 deletions
diff --git a/audio/liblastfm/Makefile b/audio/liblastfm/Makefile
index 7d54322284b7..ba247c91c313 100644
--- a/audio/liblastfm/Makefile
+++ b/audio/liblastfm/Makefile
@@ -3,7 +3,6 @@
PORTNAME= liblastfm
PORTVERSION= 1.0.6
-#PORTREVISION= 0
CATEGORIES= audio
MAINTAINER= ports@FreeBSD.org
@@ -17,35 +16,20 @@ LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \
GH_ACCOUNT= lastfm
GH_COMMIT= 5826fe6
-GH_PROJECT= liblastfm
-GH_TAGNAME= ${PORTVERSION}
-
-MAKE_JOBS_UNSAFE= yes
-
-OPTIONS_DEFINE= FINGERPRINT TESTS
-FINGERPRINT_DESC= Build the lastfm-fingerprint library
-TESTS_DESC= Build liblastfm tests
-OPTIONS_DEFAULT= FINGERPRINT
USES= cmake pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
USE_QT4= dbus moc_build rcc_build network qmake_build qtestlib sql xml
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFINGERPRINT}
-CMAKE_ARGS+= -DBUILD_FINGERPRINT:BOOL=ON
-PLIST_SUB+= FINGERPRINT=""
-.else
-CMAKE_ARGS+= -DBUILD_FINGERPRINT:BOOL=OFF
-PLIST_SUB+= FINGERPRINT="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MTESTS}
-CMAKE_ARGS+= -DBUILD_TESTS:BOOL=ON
-.else
-CMAKE_ARGS+= -DBUILD_TESTS:BOOL=OFF
-.endif
+OPTIONS_DEFINE= FINGERPRINT TESTS
+OPTIONS_DEFAULT= FINGERPRINT
+OPTIONS_SUB= yes
+FINGERPRINT_DESC= Build the lastfm-fingerprint library
+FINGERPRINT_CMAKE_ON= -DBUILD_FINGERPRINT:BOOL=ON
+FINGERPRINT_CMAKE_OFF= -DBUILD_FINGERPRINT:BOOL=OFF
+TESTS_DESC= Build liblastfm tests
+TESTS_CMAKE_ON= -DBUILD_TESTS:BOOL=ON
+TESTS_CMAKE_OFF= -DBUILD_TESTS:BOOL=OFF
.include <bsd.port.mk>