diff options
author | garga <garga@FreeBSD.org> | 2013-11-01 07:40:51 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2013-11-01 07:40:51 +0800 |
commit | 85f39a703602ecb099016c70cf6f6186b2c40437 (patch) | |
tree | c6dab4985f12401f7bc4bd7842cf3391febb2596 /net/xmlrpc-c-devel | |
parent | e0eef30a06b5de74eec40b0ea6f8ceda3a5fa7bb (diff) | |
download | freebsd-ports-gnome-85f39a703602ecb099016c70cf6f6186b2c40437.tar.gz freebsd-ports-gnome-85f39a703602ecb099016c70cf6f6186b2c40437.tar.zst freebsd-ports-gnome-85f39a703602ecb099016c70cf6f6186b2c40437.zip |
Simplify Makefile
Diffstat (limited to 'net/xmlrpc-c-devel')
-rw-r--r-- | net/xmlrpc-c-devel/Makefile | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/net/xmlrpc-c-devel/Makefile b/net/xmlrpc-c-devel/Makefile index ca52a4bb3fe3..926c8da8a341 100644 --- a/net/xmlrpc-c-devel/Makefile +++ b/net/xmlrpc-c-devel/Makefile @@ -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 |