blob: 8b5aec5dc98608a3611c3e53da3f216b6502668e (
plain)
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
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hedgewars
PORTVERSION= 0.9.23
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.hedgewars.org/download/releases/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free Worms-like turn based strategy game
LICENSE= GPLv2 GFDL
LICENSE_COMB= multi
LIB_DEPENDS= libphysfs.so:devel/physfs \
libpng.so:graphics/png
USES= cmake:noninja desktop-file-utils fpc lua:51 tar:bzip2
USE_SDL= sdl2 mixer2 image2 ttf2 net2
USE_FPC= opengl libpng rtl-objpas
USE_QT4= corelib gui moc_build network \
qmake_build rcc_build svg xml \
uic_build linguisttools_build
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/\.[0-9]$//}
PLIST_FILES= bin/${PORTNAME} bin/hwengine \
share/appdata/hedgewars.appdata.xml \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png \
share/pixmaps/${PORTNAME}.xpm \
lib/libphyslayer.so \
lib/libphyslayer.so.1.0
PORTDATA= *
OPTIONS_DEFINE= SERVER VIDEOREC
OPTIONS_DEFAULT=SERVER VIDEOREC
SERVER_DESC= Build server (requires haskell)
VIDEOREC_DESC= Enable video recording (requires ffmpeg)
VIDEOREC_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
VIDEOREC_PLIST_FILES= lib/libavwrapper.so \
lib/libavwrapper.so.1.0
VIDEOREC_CMAKE_OFF= -DNOVIDEOREC=1
SERVER_BUILD_DEPENDS= ghc:lang/ghc \
hs-vector>=0:devel/hs-vector \
hs-network>=0:net/hs-network \
hs-utf8-string>=0:devel/hs-utf8-string \
hs-random>=0:devel/hs-random \
hs-hslogger>=0:devel/hs-hslogger \
hs-SHA>=0:security/hs-SHA \
hs-entropy>=0:security/hs-entropy \
hs-zlib>=0:archivers/hs-zlib \
hs-regex-tdfa>=0:textproc/hs-regex-tdfa \
hs-mtl>=0:devel/hs-mtl \
hs-sandi>=0:converters/hs-sandi
SERVER_CMAKE_OFF= -DNOSERVER=1
SERVER_PLIST_FILES= bin/${PORTNAME}-server
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${INSTALL_DATA} ${WRKSRC}/share/hedgewars/Data/misc/hedgewars.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/misc/hedgewars.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
|