svn commit: r339863 - head/databases/libzdb

Baptiste Daroussin bapt at FreeBSD.org
Wed Jan 15 23:38:23 UTC 2014


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>


More information about the svn-ports-all mailing list