From 45c8849f51f6bf9a1ecbf7042b268d05a8d620f0 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 7 Mar 2014 20:09:55 +0000 Subject: [PATCH] - Use new OPTIONS features - After switch to cmake, it should be MAKE_JOBS_SAFE - Remove unneeded lines --- audio/liblastfm/Makefile | 34 +++++++++------------------------- 1 file 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 - -.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