Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2014 23:38:23 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339863 - head/databases/libzdb
Message-ID:  <201401152338.s0FNcN62085442@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jan 15 23:38:22 2014
New Revision: 339863
URL: http://svnweb.freebsd.org/changeset/ports/339863
QAT: https://qat.redports.org/buildarchive/r339863/

Log:
  Reduce bsd.port.mk inclusions by using options helpers
  replace USE_GMAKE -> USES=gmake

Modified:
  head/databases/libzdb/Makefile

Modified: head/databases/libzdb/Makefile
==============================================================================
--- head/databases/libzdb/Makefile	Wed Jan 15 23:34:24 2014	(r339862)
+++ head/databases/libzdb/Makefile	Wed Jan 15 23:38:22 2014	(r339863)
@@ -19,37 +19,22 @@ OPTIONS_DEFINE=	MYSQL \
 OPTIONS_DEFAULT=MYSQL SQLITE PGSQL
 
 NO_STAGE=	yes
-.include <bsd.port.options.mk>
 
-USES=	pathfix
-USE_GMAKE=	yes
+USES=	gmake pathfix
 USE_AUTOTOOLS=	libtool
 USE_LDCONFIG=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 
-.include <bsd.port.pre.mk>
+MYSQL_USE=	mysql=yes
+MYSQL_CONFIGURE_ON=	--with-mysql=${LOCALBASE}/bin/mysql_config
+MYSQL_CONFIGURE_OFF=	--without-mysql
+SQLITE_USE=	sqlite=3
+SQLITE_CONFIGURE_ON=	--with-sqlite=${LOCALBASE}
+SQLITE_CONFIGURE_OFF=	--without-sqlite
+PGSQL_USE=	pgsql=yes
+PGSQL_CONFIGURE_ON=	--with-postgresql=${LOCALBASE}/bin/pg_config
+PGSQL_CONFIGURE_OFF=	--without-postgresql
 
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL=	yes
-CONFIGURE_ARGS+=	--with-mysql=${LOCALBASE}/bin/mysql_config
-.else
-CONFIGURE_ARGS+=	--without-mysql
-.endif
-
-.if ${PORT_OPTIONS:MSQLITE}
-USE_SQLITE=	3
-CONFIGURE_ARGS+=	--with-sqlite=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=	--without-sqlite
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PGSQL=	yes
-CONFIGURE_ARGS+=	--with-postgresql=${LOCALBASE}/bin/pg_config
-.else
-CONFIGURE_ARGS+=	--without-postgresql
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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