aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-05-12 04:31:15 +0800
committerantoine <antoine@FreeBSD.org>2015-05-12 04:31:15 +0800
commita5d7c48a15675edc7b4616f3092471495c039d0b (patch)
tree5c7e2485823562a9eb71a6fd3db8c375e768d08c /net
parentca9f35ed9c9d0c36205073467ce645455abb971b (diff)
downloadfreebsd-ports-gnome-a5d7c48a15675edc7b4616f3092471495c039d0b.tar.gz
freebsd-ports-gnome-a5d7c48a15675edc7b4616f3092471495c039d0b.tar.zst
freebsd-ports-gnome-a5d7c48a15675edc7b4616f3092471495c039d0b.zip
Fix build on head and stable/10
Reported by: pkg-fallout
Diffstat (limited to 'net')
-rw-r--r--net/crtmpserver/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/crtmpserver/Makefile b/net/crtmpserver/Makefile
index 26edefa460f4..0503c4ee7f71 100644
--- a/net/crtmpserver/Makefile
+++ b/net/crtmpserver/Makefile
@@ -26,10 +26,16 @@ GROUPS= crtmpserver
USE_RC_SUBR= crtmpserver
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e "s,/usr/local/include/lua51,${LUA_INCDIR},g" \
-e "s,lua$$,lua-${LUA_VER},g" \
${WRKSRC}/builders/cmake/cmake_find_modules/Find_lua.cmake
+.if (${OSVERSION} >= 1100028) || (${OSVERSION} >= 1001505 && ${OSVERSION} < 1100000)
+ @${REINPLACE_CMD} '/NOTE_USECONDS/d' ${WRKSRC}/sources/common/include/platform/freebsd/freebsdplatform.h
+ @${REINPLACE_CMD} 's, -Werror,,' ${WRKSRC}/builders/cmake/CMakeLists.txt
+.endif
pre-install:
@${SH} $(WRKSRC)/fixConfFile.sh "${WRKSRC}/builders/cmake/crtmpserver/crtmpserver.lua" "${PREFIX}" "${WRKSRC}"
@@ -39,4 +45,4 @@ post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/var/log/crtmpserver
@${MKDIR} ${STAGEDIR}${PREFIX}/var/crtmpserver/media
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>