Compatibility fixes for Erlang R15B01.
Specifically, on R15B01 the sendfile function does not require a separate port driver.
This commit is contained in:
parent
fa161be0ef
commit
3535e77da6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302598
2 changed files with 0 additions and 13 deletions
|
@ -26,10 +26,6 @@ ONLY_FOR_ARCHS= i386 amd64 sparc64
|
|||
MAN1= yaws.1
|
||||
MAN5= yaws.conf.5 yaws_api.5 yaws_soap_lib.5
|
||||
|
||||
OPTIONS_DEFINE= SENDFILE
|
||||
SENDFILE_DESC= Use native sendfile(2) interface
|
||||
OPTIONS_DEFAULT=SENDFILE
|
||||
|
||||
APPDIR=${PREFIX}/lib/erlang/lib/yaws-${PORTVERSION}
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
@ -38,14 +34,6 @@ CONFIGURE_ARGS+=--prefix=${PREFIX} --localstatedir=/var
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MSENDFILE}
|
||||
PLIST_SUB+= SENDFILE=""
|
||||
CONFIGURE_ARGS+=--enable-sendfile
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-sendfile
|
||||
PLIST_SUB+= SENDFILE="@comment "
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${FIND} ${WRKSRC} -name .empty -delete
|
||||
|
||||
|
|
|
@ -128,7 +128,6 @@ 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
|
||||
%%SENDFILE%%%%LIB32DIR%%/erlang/lib/yaws-%%VERSION%%/priv/lib/yaws_sendfile_drv.so
|
||||
%%WWWDIR%%/END
|
||||
%%WWWDIR%%/END2
|
||||
%%WWWDIR%%/HEAD
|
||||
|
|
Loading…
Reference in a new issue