1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/net/udt/Makefile

44 lines
1.1 KiB
Makefile

# Created by: Mikhail Teterin
# $FreeBSD$
PORTNAME= udt
PORTVERSION= 4.11
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF
DISTNAME= udt.sdk.${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= C++ library containing the UDT API implementation
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
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
.endfor
.include <bsd.port.options.mk>
post-install:
# Installing sample applications:
${INSTALL_PROGRAM} ${UDT_APPS:S|^|${WRKSRC:H}/app/udt-|} ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
# Installing documentation tree into ${DOCSDIR}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC:H}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.else
EXTRACT_AFTER_ARGS+= --exclude udt${PORTVERSION:R}/doc
.endif
.include <bsd.port.mk>