blob: b6c4e47b24479e121358ad0dac1241e2f322573c (
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
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hedgewars
PORTVERSION= 0.9.19.3
CATEGORIES= games
MASTER_SITES= http://download.gna.org/hedgewars/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free Worms-like turn based strategy game
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= depends on fpc which is only available for i386 and amd64
USE_BZIP2= yes
USES= cmake
USE_SDL= sdl mixer image ttf net
USE_FPC= opengl libpng
USE_LUA= 5.1+
USE_QT4= corelib gui moc_build network \
qmake_build rcc_build svg xml \
uic_build linguist_build
WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]$//}
PLIST_FILES= bin/hedgewars bin/hwengine \
share/applications/hedgewars.desktop \
share/pixmaps/hedgewars.png
PORTDATA= *
OPTIONS_DEFINE= VIDEOREC SERVER
OPTIONS_DEFAULT=VIDEOREC SERVER
VIDEOREC_DESC= Enable video recording (requires ffmpeg)
SERVER_DESC= Build server (requires haskell)
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVIDEOREC}
LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
.else
CMAKE_ARGS+= -DNOVIDEOREC=1
.endif
.if ${PORT_OPTIONS:MSERVER}
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
hs-vector>=0:${PORTSDIR}/devel/hs-vector \
hs-network>=0:${PORTSDIR}/net/hs-network \
hs-utf8-string>=0:${PORTSDIR}/devel/hs-utf8-string \
hs-bytestring-show>=0:${PORTSDIR}/devel/hs-bytestring-show \
hs-dataenc>=0:${PORTSDIR}/converters/hs-dataenc \
hs-random>=0:${PORTSDIR}/devel/hs-random \
hs-hslogger>=0:${PORTSDIR}/devel/hs-hslogger
PLIST_FILES+= bin/hedgewars-server
.else
CMAKE_ARGS+= -DNOSERVER=1
.endif
post-patch:
.if defined(NOPORTDATA)
@${REINPLACE_CMD} -e '/add_subdirectory.*Data/I d' \
${WRKSRC}/share/hedgewars/CMakeLists.txt
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/share/hedgewars/Data/misc/hedgewars.desktop \
${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/misc/hedgewars.png \
${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
|