Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2013 23:40:51 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332309 - head/net/xmlrpc-c-devel
Message-ID:  <201310312340.r9VNeprC014474@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Thu Oct 31 23:40:51 2013
New Revision: 332309
URL: http://svnweb.freebsd.org/changeset/ports/332309

Log:
  Simplify Makefile

Modified:
  head/net/xmlrpc-c-devel/Makefile

Modified: head/net/xmlrpc-c-devel/Makefile
==============================================================================
--- head/net/xmlrpc-c-devel/Makefile	Thu Oct 31 23:40:29 2013	(r332308)
+++ head/net/xmlrpc-c-devel/Makefile	Thu Oct 31 23:40:51 2013	(r332309)
@@ -14,6 +14,7 @@ LICENSE=	BSD
 
 OPTIONS_DEFINE=	DEBUG CURL LIBWWW CPLUSPLUS
 OPTIONS_DEFAULT=CURL LIBWWW CPLUSPLUS
+OPTIONS_SUB=	CPLUSPLUS
 
 LIBWWW_DESC=	 Compile with libwww support
 CPLUSPLUS_DESC=	 Build xmlrpc-c c++ libs and tools
@@ -27,34 +28,19 @@ MAKEFILE=	GNUmakefile
 MAKE_JOBS_UNSAFE=	yes
 USE_LDCONFIG=	yes
 
+CURL_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
+CURL_CONFIGURE_ENABLE=	curl-client
+LIBWWW_LIB_DEPENDS=	libwwwcore.so:${PORTSDIR}/www/libwww
+LIBWWW_CONFIGURE_ENABLE=libwww-client
+LIBWWW_CONFIGURE_WITH=	libwww-ssl
+CPLUSPLUS_CONFIGURE_ENABLE=	cplusplus
+
 .include <bsd.port.pre.mk>
 
 .if empty(PORT_OPTIONS:MDEBUG)
 CFLAGS+=	-DNDEBUG
 .endif
 
-.if ${PORT_OPTIONS:MCURL}
-LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
-CONFIGURE_ARGS+=	--enable-curl-client
-.else
-CONFIGURE_ARGS+=	--disable-curl-client
-.endif
-
-.if ${PORT_OPTIONS:MLIBWWW}
-LIB_DEPENDS+=	wwwcore:${PORTSDIR}/www/libwww
-CONFIGURE_ARGS+=	--enable-libwww-client --with-libwww-ssl
-.else
-CONFIGURE_ARGS+=	--disable-libwww-client
-.endif
-
-.if ${PORT_OPTIONS:MCPLUSPLUS}
-CONFIGURE_ARGS+=	--enable-cplusplus
-PLIST_SUB+=	CPLUSPLUS=""
-.else
-CONFIGURE_ARGS+=	--disable-cplusplus
-PLIST_SUB+=	CPLUSPLUS="@comment "
-.endif
-
 .if empty(PORT_OPTIONS:MLIBWWW) && empty(PORT_OPTIONS:MCURL)
 PLIST_SUB+=	CLIENT="@comment "
 .else



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