blob: 1d7ee637cb65e8789a8136521bd917c9dacf914a (
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
68
69
70
71
72
73
74
75
76
77
78
|
# New ports collection makefile for: RakNet
# Date created: 11 October 2005
# Whom: Andrew Baznikin <dikiy@scn.ru>
#
# $FreeBSD$
#
PORTNAME= raknet
PORTVERSION= 3.5.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel net
MASTER_SITES= http://www.jenkinssoftware.com/raknet/downloads/ \
SF/${PORTNAME}jenkinsso/${PORTNAME}jenkinsso/3.52
DISTNAME= RakNet-3.52
MAINTAINER= martymac@FreeBSD.org
COMMENT= Networking API that provides reliable UDP primarily for online games
USE_ZIP= yes
NO_WRKSUBDIR= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= aclocal autoheader autoconf automake libtool
AUTOMAKE_ARGS= --add-missing
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} \
-I ${LOCALBASE}/share/aclocal \
-I ${WRKDIR}/autotools/m4
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
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:
@${MKDIR} ${WRKSRC}/autotools/build
pre-configure:
@(cd ${WRKSRC}/ && \
${LIBTOOLIZE} --force --copy --automake)
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>
|