Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 18:35:08 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r404165 - head/dns/c-ares
Message-ID:  <201512211835.tBLIZ84c058925@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Mon Dec 21 18:35:08 2015
New Revision: 404165
URL: https://svnweb.freebsd.org/changeset/ports/404165

Log:
  - Convert to new options helper
  - Remove PKGNAMESUFFIX
  - Bump PORTREVISION for PKGNAME change

Modified:
  head/dns/c-ares/Makefile

Modified: head/dns/c-ares/Makefile
==============================================================================
--- head/dns/c-ares/Makefile	Mon Dec 21 18:35:04 2015	(r404164)
+++ head/dns/c-ares/Makefile	Mon Dec 21 18:35:08 2015	(r404165)
@@ -3,7 +3,7 @@
 
 PORTNAME=	c-ares
 PORTVERSION=	1.10.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns
 MASTER_SITES=	http://c-ares.haxx.se/download/ \
 		http://obsd.isc.org/pub/OpenBSD/distfiles/ \
@@ -34,30 +34,10 @@ CONFLICTS=		ares-1.*
 
 MAKE_JOBS_UNSAFE=	yes
 
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCONFIG_INFO}
-EXTRA_PATCHES+=	${FILESDIR}/ares-config-info.patch
-PKGNAMESUFFIX=	-config
-.endif
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--enable-debug
-.else
-CONFIGURE_ARGS+=--disable-debug
-.endif
-
-.if ${PORT_OPTIONS:MHIDE_SYMBOLS}
-CONFIGURE_ARGS+=--enable-symbol-hiding
-.else
-CONFIGURE_ARGS+=--disable-symbol-hiding
-.endif
-
-.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
-CONFIGURE_ARGS+=--enable-optimize
-.else
-CONFIGURE_ARGS+=--disable-optimize
-.endif
+CONFIG_INFO_EXTRA_PATCHES=	${FILESDIR}/ares-config-info.patch
+DEBUG_CONFIGURE_ENABLE=	debug
+HIDE_SYMBOLS_CONFIGURE_ENABLE=	symbol-hiding
+OPTIMIZED_CFLAGS_CONFIGURE_ENABLE=	optimize
 
 post-install:
 	${INSTALL_PROGRAM} ${PROGRAMS:S@^@${WRKSRC}/.libs/@} ${STAGEDIR}${PREFIX}/bin/



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