svn commit: r404165 - head/dns/c-ares
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Dec 21 18:35:09 UTC 2015
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/
More information about the svn-ports-all
mailing list