Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 2014 15:24:03 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r352920 - head/benchmarks/sysbench
Message-ID:  <201405031524.s43FO34l018882@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat May  3 15:24:02 2014
New Revision: 352920
URL: http://svnweb.freebsd.org/changeset/ports/352920
QAT: https://qat.redports.org/buildarchive/r352920/

Log:
  - Fix staging when DOCS=off [1]
  - Switch to PLIST_FILES
  - Use options helpers
  
  PR:		ports/188390 [1] (patch not used)
  Submitted by:	Alexey Markov <redrat@mail.ru>

Deleted:
  head/benchmarks/sysbench/pkg-plist
Modified:
  head/benchmarks/sysbench/Makefile

Modified: head/benchmarks/sysbench/Makefile
==============================================================================
--- head/benchmarks/sysbench/Makefile	Sat May  3 15:11:29 2014	(r352919)
+++ head/benchmarks/sysbench/Makefile	Sat May  3 15:24:02 2014	(r352920)
@@ -15,40 +15,25 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USE_AUTOTOOLS=	libtool
 
+PLIST_FILES=	bin/sysbench
+PORTDOCS=	manual.html
+
 OPTIONS_DEFINE=	LARGEFILE MYSQL PGSQL DOCS
 OPTIONS_DEFAULT=	LARGEFILE MYSQL
-LARGEFILE_DESC=	Enable Largefile support
 
-.include <bsd.port.options.mk>
+LARGEFILE_DESC=			Largefile support
+LARGEFILE_CONFIGURE_ENABLE=	largefile
 
-.if ${PORT_OPTIONS:MLARGEFILE}
-CONFIGURE_ARGS+=	--enable-largefile
-.else
-CONFIGURE_ARGS+=	--disable-largefile
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL=	yes
-CONFIGURE_ARGS+=	--with-mysql
-.else
-CONFIGURE_ARGS+=	--with-mysql=no
-.endif
-
-.if ${PORT_OPTIONS:MPOSTGRESQL}
-USE_PGSQL=	yes
-CONFIGURE_ARGS+=	--with-pgsql
-.else
-CONFIGURE_ARGS+=	--with-pgsql=no
-.endif
+MYSQL_CONFIGURE_ON=	--with-mysql
+MYSQL_CONFIGURE_OFF=	--with-mysql=no
+MYSQL_USE=		MYSQL=yes
+
+PGSQL_CONFIGURE_ON=	--with-pgsql
+PGSQL_CONFIGURE_OFF=	--with-pgsql=no
+PGSQL_USE=		PGSQL=yes
 
 post-configure:
 	@${REINPLACE_CMD} -e 's/^program_transform_name/#/' \
 		${WRKSRC}/Makefile ${WRKSRC}/sysbench/Makefile
 
-.if empty(PORT_OPTIONS:MDOCS)
-post-install:
-	${RM} ${DOCSDIR}/manual.html
-	${RMDIR} ${DOCSDIR}
-.endif
-
 .include <bsd.port.mk>



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