freebsd-ports/net/udt/Makefile
Baptiste Daroussin 5271da855f Rely on bsdtar to autodetermine the format of the distfiles when possible
For a while now bsdtar is able to autotermine compression and archive format.
Let's then use tar directly instead of piping to tar.

Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
2013-04-29 08:57:12 +00:00

40 lines
1 KiB
Makefile

# Created by: Mikhail Teterin
# $FreeBSD$
PORTNAME= udt
PORTVERSION= 4.11
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
MAKE_JOBS_SAFE= yes
EXTRACT_AFTER_ARGS= --exclude '*md5*' \
--exclude udt${PORTVERSION:R}/win
USE_LDCONFIG= yes
UDT_APPS= appclient appserver recvfile sendfile test
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
post-install:
# Installing sample applications:
${INSTALL_PROGRAM} ${UDT_APPS:S|^|${WRKSRC:H}/app/udt-|} ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
# Installing documentation tree into ${DOCSDIR}
${MKDIR} ${DOCSDIR}
cd ${WRKSRC:H}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
.else
EXTRACT_AFTER_ARGS+= --exclude udt${PORTVERSION:R}/doc
.endif
.include <bsd.port.mk>