summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/xmlrpc-c/Makefile19
1 files changed, 5 insertions, 14 deletions
diff --git a/net/xmlrpc-c/Makefile b/net/xmlrpc-c/Makefile
index 49dede0ebcc4..62037b9534bb 100644
--- a/net/xmlrpc-c/Makefile
+++ b/net/xmlrpc-c/Makefile
@@ -28,26 +28,17 @@ MAKE_ARGS= LIBTOOL="${LIBTOOL}" \
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
+
.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
-.else
-CONFIGURE_ARGS+= --disable-libwww-client
-.endif
-
post-extract:
@${FIND} ${WRKSRC} -type l -name blddir -delete
@${FIND} ${WRKSRC} -type l -name srcdir -delete