- Fix LICENSE

- Add LICENSE_FILE
- Pet portlint
- Whitespace fixes
- Remove always-true OSVERSION conditions

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-06-15 17:37:51 +00:00
parent dcc58cd479
commit e2b776d2b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472468

View File

@ -10,16 +10,17 @@ MASTER_SITES= http://rtmpd.com/assets/sources/
MAINTAINER= support@rtmpd.com MAINTAINER= support@rtmpd.com
COMMENT= C++ RTSP/RTMP/MPEG-TS Server COMMENT= C++ RTSP/RTMP/MPEG-TS Server
LICENSE= GPLv3 LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USES= cmake:outsource lua ssl USES= cmake:outsource lua ssl
CMAKE_SOURCE_PATH= ${WRKSRC}/builders/cmake CMAKE_SOURCE_PATH= ${WRKSRC}/builders/cmake
CMAKE_ARGS= -DCRTMPSERVER_INSTALL_PREFIX:STRING=${PREFIX} -DTEMP_FRAMEWORK_VER=${PORTVERSION} CMAKE_ARGS= -DCRTMPSERVER_INSTALL_PREFIX:STRING=${PREFIX} -DTEMP_FRAMEWORK_VER=${PORTVERSION}
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USERS= crtmpserver USERS= crtmpserver
GROUPS= crtmpserver GROUPS= crtmpserver
USE_RC_SUBR= crtmpserver USE_RC_SUBR= crtmpserver
@ -29,7 +30,7 @@ post-patch:
@${REINPLACE_CMD} -e "s,/usr/local/include/lua51,${LUA_INCDIR},g" \ @${REINPLACE_CMD} -e "s,/usr/local/include/lua51,${LUA_INCDIR},g" \
-e "s,lua$$,lua-${LUA_VER},g" \ -e "s,lua$$,lua-${LUA_VER},g" \
${WRKSRC}/builders/cmake/cmake_find_modules/Find_lua.cmake ${WRKSRC}/builders/cmake/cmake_find_modules/Find_lua.cmake
.if (${OSVERSION} >= 1100028) || (${OSVERSION} >= 1001505 && ${OSVERSION} < 1100000) .if ${OPSYS} == FreeBSD
@${REINPLACE_CMD} '/NOTE_USECONDS/d' ${WRKSRC}/sources/common/include/platform/freebsd/freebsdplatform.h @${REINPLACE_CMD} '/NOTE_USECONDS/d' ${WRKSRC}/sources/common/include/platform/freebsd/freebsdplatform.h
@${REINPLACE_CMD} 's, -Werror,,' ${WRKSRC}/builders/cmake/CMakeLists.txt @${REINPLACE_CMD} 's, -Werror,,' ${WRKSRC}/builders/cmake/CMakeLists.txt
.endif .endif