diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2012-08-15 16:39:39 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2012-08-15 16:39:39 +0000 |
commit | 0e59f1cd4a20dd906fd56beec133bf6f5bff5018 (patch) | |
tree | f0d460edd7123135c978e6c9c86326448d215c4e /www/yaws | |
parent | a26ed26d61c0b84a180ee3396eaf5b4b8d78e68e (diff) | |
download | ports-0e59f1cd4a20dd906fd56beec133bf6f5bff5018.tar.gz ports-0e59f1cd4a20dd906fd56beec133bf6f5bff5018.zip |
Notes
Diffstat (limited to 'www/yaws')
-rw-r--r-- | www/yaws/Makefile | 11 | ||||
-rw-r--r-- | www/yaws/pkg-plist | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/www/yaws/Makefile b/www/yaws/Makefile index 42e02431c74f..f4b06112af59 100644 --- a/www/yaws/Makefile +++ b/www/yaws/Makefile @@ -26,7 +26,9 @@ ONLY_FOR_ARCHS= i386 amd64 sparc64 MAN1= yaws.1 MAN5= yaws.conf.5 yaws_api.5 yaws_soap_lib.5 -OPTIONS= SENDFILE "Use native sendfile(2) interface" on +OPTIONS_DEFINE= SENDFILE +SENDFILE_DESC= Use native sendfile(2) interface +OPTIONS_DEFAULT=SENDFILE APPDIR=${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION} @@ -36,11 +38,12 @@ CONFIGURE_ARGS+=--prefix=${PREFIX} --localstatedir=/var .include <bsd.port.pre.mk> -.if defined(WITH_SENDFILE) -PLIST_SUB+= WITH_SENDFILE="" +.if ${PORT_OPTIONS:MSENDFILE} +PLIST_SUB+= SENDFILE="" +CONFIGURE_ARGS+=--enable-sendfile .else CONFIGURE_ARGS+=--disable-sendfile -PLIST_SUB+= WITH_SENDFILE="@comment " +PLIST_SUB+= SENDFILE="@comment " .endif post-extract: diff --git a/www/yaws/pkg-plist b/www/yaws/pkg-plist index 95014930fe52..5e78b2ddd000 100644 --- a/www/yaws/pkg-plist +++ b/www/yaws/pkg-plist @@ -128,7 +128,7 @@ bin/yaws %%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/src/yaws_websockets.erl %%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/src/yaws_xmlrpc.erl %%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/src/yaws_zlib.erl -%%WITH_SENDFILE%%%%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/priv/lib/yaws_sendfile_drv.so +%%SENDFILE%%%%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/priv/lib/yaws_sendfile_drv.so %%WWWDIR%%/END %%WWWDIR%%/END2 %%WWWDIR%%/HEAD |