diff --git a/net/udt/Makefile b/net/udt/Makefile index 08fe1c9218f0..cdb54340c7a3 100644 --- a/net/udt/Makefile +++ b/net/udt/Makefile @@ -1,41 +1,44 @@ PORTNAME= udt PORTVERSION= 4.11 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= SF DISTNAME= udt.sdk.${PORTVERSION} MAINTAINER= ports@virtual-estates.net COMMENT= C++ library containing the UDT API implementation WWW= http://udt.sourceforge.net/ +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${PATCH_WRKSRC}/LICENSE.txt + +USES= uidfix PATCH_WRKSRC= ${WRKDIR}/udt${PORTVERSION:R} WRKSRC= ${PATCH_WRKSRC}/src MAKEFILE= ${FILESDIR}/BSDmakefile EXTRACT_AFTER_ARGS= --exclude '*md5*' \ --exclude udt${PORTVERSION:R}/win USE_LDCONFIG= yes UDT_APPS= appclient appserver recvfile sendfile test -USES= uidfix OPTIONS_DEFINE= DOCS DOCS_VARS_OFF= EXTRACT_AFTER_ARGS+="--exclude udt${PORTVERSION:R}/doc" post-build: # Building sample applications: .for a in ${UDT_APPS} ${CXX} ${CXXFLAGS} ${WRKSRC:H}/app/$a.cpp -o ${WRKSRC:H}/app/udt-$a \ -I${WRKSRC} -L${WRKSRC} -ludt -pthread .endfor post-install: # Installing sample applications: ${INSTALL_PROGRAM} ${UDT_APPS:S|^|${WRKSRC:H}/app/udt-|} ${STAGEDIR}${PREFIX}/bin/ post-install-DOCS-on: # Installing documentation tree into ${DOCSDIR} ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC:H}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .include diff --git a/net/udt/files/BSDmakefile b/net/udt/files/BSDmakefile index 3abf7c5cad31..ca735d55e127 100644 --- a/net/udt/files/BSDmakefile +++ b/net/udt/files/BSDmakefile @@ -1,20 +1,24 @@ LIB= udt SHLIB_MAJOR=4 SHLIB_MINOR=10 MK_PROFILE= no # Ports don't install profile-libraries LIBDIR= ${PREFIX}/lib INCLUDEDIR= ${PREFIX}/include INCS= udt.h LDADD= -lmd -pthread SRCS= common.cpp window.cpp list.cpp buffer.cpp packet.cpp channel.cpp \ queue.cpp ccc.cpp cache.cpp core.cpp epoll.cpp api.cpp CXXFLAGS+= -D${MACHINE_ARCH:tu:S/I386/IA32/:S/SPARC64/SPARC/} -DBSD CXXFLAGS+= -Wno-system-headers -Wall -W \ -Wpointer-arith -Wreturn-type \ -Wwrite-strings -Wswitch -Wno-cast-align \ - -Wunused-parameter + -Wunused-parameter -Werror + +.if ${OSVERSION} >= 1401000 +CXXFLAGS+= -Wno-vla-cxx-extension +.endif .include