Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2014 20:09:55 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347419 - head/audio/liblastfm
Message-ID:  <201403072009.s27K9tSM022927@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Mar  7 20:09:55 2014
New Revision: 347419
URL: http://svnweb.freebsd.org/changeset/ports/347419
QAT: https://qat.redports.org/buildarchive/r347419/

Log:
  - Use new OPTIONS features
  - After switch to cmake, it should be MAKE_JOBS_SAFE
  - Remove unneeded lines

Modified:
  head/audio/liblastfm/Makefile

Modified: head/audio/liblastfm/Makefile
==============================================================================
--- head/audio/liblastfm/Makefile	Fri Mar  7 19:58:13 2014	(r347418)
+++ head/audio/liblastfm/Makefile	Fri Mar  7 20:09:55 2014	(r347419)
@@ -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}/mat
 
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403072009.s27K9tSM022927>