diff options
author | bapt <bapt@FreeBSD.org> | 2013-05-11 00:44:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-05-11 00:44:26 +0800 |
commit | c738cc5ce3180ffde78bd9f46908ae01df619b8c (patch) | |
tree | da9b3a1715b2845fe9af08fab71f44850ec443f0 /net-p2p/eiskaltdcpp-lib | |
parent | 87922faebffa8773942fddf5902a76cbfc2bc032 (diff) | |
download | freebsd-ports-gnome-c738cc5ce3180ffde78bd9f46908ae01df619b8c.tar.gz freebsd-ports-gnome-c738cc5ce3180ffde78bd9f46908ae01df619b8c.tar.zst freebsd-ports-gnome-c738cc5ce3180ffde78bd9f46908ae01df619b8c.zip |
Convert to new options framework
Diffstat (limited to 'net-p2p/eiskaltdcpp-lib')
-rw-r--r-- | net-p2p/eiskaltdcpp-lib/Makefile | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/net-p2p/eiskaltdcpp-lib/Makefile b/net-p2p/eiskaltdcpp-lib/Makefile index 8a80e053bef6..9b297725c5a4 100644 --- a/net-p2p/eiskaltdcpp-lib/Makefile +++ b/net-p2p/eiskaltdcpp-lib/Makefile @@ -25,10 +25,9 @@ USE_OPENSSL= yes USE_LDCONFIG= yes MAKE_JOBS_SAFE= yes -OPTIONS= LUA "Lua scripting support" off \ - PCRE "PCRE support in ADL Search" off \ - IDN "IDN support" on \ - DHT "DHT support" on +OPTIONS_DEFINE= LUA PCRE IDN DHT +OPTIONS_DEFAULT= IDN DHT +DHT_DESC= DHT support .include <bsd.port.options.mk> @@ -39,7 +38,7 @@ CMAKE_ARGS+= -DUSE_ASPELL:BOOL=OFF CMAKE_ARGS+= -DUSE_MINIUPNP:BOOL=OFF CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=ON -.if defined(WITH_LUA) && !defined(WITHOUT_LUA) +.if ${PORT_OPTIONS:MLUA} USE_LUA= 5.1 CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=ON IGNORE= crashes on connect attempt if built with Lua support @@ -47,33 +46,27 @@ IGNORE= crashes on connect attempt if built with Lua support CMAKE_ARGS+= -DLUA_SCRIPT:BOOL=OFF .endif -.if defined(WITH_PCRE) && !defined(WITHOUT_PCRE) +.if ${PORT_OPTIONS:MPCRE} LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre CMAKE_ARGS+= -DPERL_REGEX:BOOL=ON .else CMAKE_ARGS+= -DPERL_REGEX:BOOL=OFF .endif -.if defined(WITH_IDN) && !defined(WITHOUT_IDN) +.if ${PORT_OPTIONS:MIDN} LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn CMAKE_ARGS+= -DUSE_IDNA:BOOL=ON .else CMAKE_ARGS+= -DUSE_IDNA:BOOL=OFF .endif -.if defined(WITH_DHT) && !defined(WITHOUT_DHT) +.if ${PORT_OPTIONS:MDHT} CMAKE_ARGS+= -DWITH_DHT:BOOL=ON .else CMAKE_ARGS+= -DWITH_DHT:BOOL=OFF .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 700024 -USE_OPENSSL_PORT=yes -.endif - post-build: ${LOCALBASE}/bin/chrpath -r "${_GCC_RUNTIME}" "${WRKSRC}/dcpp/libeiskaltdcpp.so.2.2" -.include <bsd.port.post.mk> +.include <bsd.port.mk> |