blob: a3092e92d03a9c67cfe455b29ecc40d5b4a9b9bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: RakNet
# Date created: 11 October 2005
# Whom: Andrew Baznikin <dikiy@scn.ru>
#
# $FreeBSD$
#
PORTNAME= raknet
PORTVERSION= 3.10
CATEGORIES= devel net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= raknetjenkinsso
DISTNAME= ${PORTNAME}-3.1
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Networking API that provides reliable UDP primarily for online games
USE_LDCONFIG= yes
USE_FORTRAN= yes
USE_AUTOTOOLS= libltdl:15 libtool:15 autoconf:262
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
F77="${F77}" FFLAGS="${FFLAGS}"
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(cpp|h)
OPTIONS= RAKVOICE "Build Rakvoice" off \
AUTOPATCHER "Build autopatcher" off
.include <bsd.port.pre.mk>
.if defined(WITH_RAKVOICE)
CONFIGURE_ARGS+= --enable-rakvoice
BUILD_DEPENDS+= ${LOCALBASE}/lib/libspeex.so:${PORTSDIR}/audio/speex
RUN_DEPENDS+= ${LOCALBASE}/lib/libspeex.so:${PORTSDIR}/audio/speex
PLIST_SUB+= PL_RAKVOICE=""
.else
CONFIGURE_ARGS+= --disable-rakvoice
PLIST_SUB+= PL_RAKVOICE="@comment "
.endif
.if defined(WITH_AUTOPATCHER)
CONFIGURE_ARGS+= --enable-autopatcher
USE_PGSQL= yes
PLIST_SUB+= PL_AUTOPATCHER=""
.else
CONFIGURE_ARGS+= --disable-autopatcher
PLIST_SUB+= PL_AUTOPATCHER="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|2.61|2.62|g' ${WRKSRC}/aclocal.m4
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/Help
(cd ${WRKSRC}/Help/ && ${COPYTREE_SHARE} \* ${DOCSDIR}/Help)
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/Samples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>
|