blob: ddedadf297d5339711e68fd73339e4958ac3f2e7 (
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
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hedgewars
PORTVERSION= 0.9.21.1
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
LICENSE= GPLv2 GFDL
LICENSE_COMB= multi
LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= depends on fpc which is only available for i386 and amd64
USES= cmake desktop-file-utils lua:51 tar:bzip2
USE_SDL= sdl mixer image ttf net
USE_FPC= opengl libpng
USE_QT4= corelib gui moc_build network \
qmake_build rcc_build svg xml \
uic_build linguisttools_build
CMAKE_ARGS= -DNOVIDEOREC=1
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
PORTDATA= *
# VIDEOREC - broken with recent ffmpeg
OPTIONS_DEFINE= SERVER # VIDEOREC
OPTIONS_DEFAULT=SERVER
SERVER_DESC= Build server (requires haskell)
#VIDEOREC_DESC= Enable video recording (requires ffmpeg)
#VIDEOREC_LIB_DEPENDS=libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0
#VIDEOREC_CMAKE_OFF=-DNOVIDEOREC=1
SERVER_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 \
hs-SHA>=0:${PORTSDIR}/security/hs-SHA \
hs-entropy>=0:${PORTSDIR}/security/hs-entropy \
hs-zlib>=0:${PORTSDIR}/archivers/hs-zlib
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>
|