1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/raknet/Makefile
Max Brazhnikov ffd97a0193 - convert USE_CMAKE to USES
- while here clean up some ports from CMAKE_VERBOSE, which is intended
  for users

Approved by:	portmgr (miwi)
2013-03-22 20:06:14 +00:00

79 lines
2.6 KiB
Makefile

# New ports collection makefile for: RakNet
# Date created: 11 October 2005
# Whom: Andrew Baznikin <dikiy@scn.ru>
#
# $FreeBSD$
#
PORTNAME= raknet
PORTVERSION= 3.9.2
PORTEPOCH= 1
CATEGORIES= devel net
MASTER_SITES= http://www.jenkinssoftware.com/raknet/downloads/ \
LOCAL/martymac
DISTNAME= RakNet-3.902
MAINTAINER= martymac@FreeBSD.org
COMMENT= Networking API that provides reliable UDP primarily for online games
# Original license is Indy license, but FreeBSD has been granted special
# authorization to provide RakNet 3.x (*only*, not 4.x) under the terms of
# the GPL v3 license. This agreement has been received by the MAINTAINER
# through a private mail exchange on 2012-03-20 (see files/SpecialAuth.mbox).
LICENSE= GPLv3 SpecialAuth
LICENSE_COMB= dual
LICENSE_NAME_SpecialAuth= Special authorization from developer
LICENSE_FILE_SpecialAuth= ${FILESDIR}/SpecialAuth.mbox
LICENSE_PERMS_SpecialAuth= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USE_ZIP= yes
NO_WRKSUBDIR= yes
USE_LDCONFIG= yes
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(cpp|h|txt)
USE_GMAKE= yes
USES= cmake
# XXX Do not provide Samples for the following reason :
# - potential licensing problems
# XXX Disable build of DependentExtensions for the following reasons :
# - potential licensing problems
# - only static libraries are built (shared libraries are no more provided, e.g.
# for autopatcher or rakvoice)
# - no install target is provided, which prevents us to determine what files
# have to be provided by the port to have working extensions
CMAKE_ARGS+= -DDISABLEDEPENDENCIES:BOOL=ON
.if ${CC} == "clang" || ${CXX} == "clang++"
BROKEN= does not build with clang
.endif
.include <bsd.port.pre.mk>
post-patch:
@${FIND} ${WRKSRC} -type f -a '(' -name '*.cpp' -o -name '*.h' ')' -print0 \
| ${XARGS} -0 -x -n10 \
${REINPLACE_CMD} -e 's|Usage of RakNet is subject to the appropriate license agreement|Raknet is available under the terms of the GPLv3 license, see ${_LICENSE_DIR}/GPLv3|'
pre-install:
@${FIND} ${WRKSRC} -type f -name '*.bak' -print0 \
| ${XARGS} -0 -x -n10 ${RM}
do-install:
@${MKDIR} ${PREFIX}/include/raknet
@(cd ${WRKSRC}/Source/ && ${COPYTREE_SHARE} \*.h ${PREFIX}/include/raknet)
@${MKDIR} ${PREFIX}/lib
@${INSTALL_LIB} ${WRKSRC}/Lib/DLL/libRakNetDynamic.so \
${PREFIX}/lib/libraknet.so.0
@${LN} ${PREFIX}/lib/libraknet.so.0 ${PREFIX}/lib/libraknet.so
@${INSTALL_LIB} ${WRKSRC}/Lib/LibStatic/libRakNetStatic.a \
${PREFIX}/lib/libraknet.a
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/Help
@(cd ${WRKSRC}/Help/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/Help)
@${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>