1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

Simplify Makefile

This commit is contained in:
Renato Botelho 2013-10-31 23:40:51 +00:00
parent 9fdfe4154e
commit 802a51784d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332309

View File

@ -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