Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2019 15:27:39 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489500 - head/devel/smack
Message-ID:  <201901061527.x06FRdVU025885@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sun Jan  6 15:27:39 2019
New Revision: 489500
URL: https://svnweb.freebsd.org/changeset/ports/489500

Log:
  devel/smack: Convert to options helpers

Modified:
  head/devel/smack/Makefile

Modified: head/devel/smack/Makefile
==============================================================================
--- head/devel/smack/Makefile	Sun Jan  6 15:09:04 2019	(r489499)
+++ head/devel/smack/Makefile	Sun Jan  6 15:27:39 2019	(r489500)
@@ -14,23 +14,15 @@ LICENSE=	GPLv2
 LIB_DEPENDS=	libboost_iostreams.so:devel/boost-libs \
 		libsnappy.so:archivers/snappy
 
+USES=		cmake compiler:c++11-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	zloidemon
 GH_TAGNAME=	72c81bf
-
-USES=		cmake compiler:c++11-lang
 USE_LDCONFIG=	yes
 
 OPTIONS_DEFINE=	EXAMPLES
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-PLIST_SUB+=	EXAMPLES=""
-CMAKE_ARGS=	-DENABLE_EXAMPLES=ON
-.else
-CMAKE_ARGS=	-DENABLE_EXAMPLES=OFF
-PLIST_SUB+=	EXAMPLES="@comment "
-.endif
+EXAMPLES_CMAKE_BOOL=	ENABLE_EXAMPLES
 
 .include <bsd.port.mk>



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