blob: e4b1313266ca024fc2b88bef210b9c54409d9313 (
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
|
# Ports collection makefile for: widelands
# Date created: 8 April 2007
# Whom: Bartosz Fabianowski <freebsd@chillt.de>
#
# $FreeBSD$
#
PORTNAME= widelands
DISTVERSION= build13
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/build-13
DISTNAME= ${PORTNAME:C/^w/W/}-${DISTVERSION:C/^b/B/}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Realtime strategy game inspired by Settlers II
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
boost_thread.4:${PORTSDIR}/devel/boost-libs
USE_BZIP2= yes
USE_GETTEXT= yes
USE_PYTHON_BUILD=2.4+
USE_SDL= sdl mixer image net ttf gfx
USE_GCC= 4.2+
PLIST_FILES= bin/widelands
WRKSRC= ${WRKDIR}/widelands-${DISTVERSION:C/build/b/}
USE_SCONS= yes
SCONS_ARGS= install_prefix=${PREFIX} bindir=bin datadir=share/widelands \
localedir=share/widelands/locale build=release \
sdlconfig=${SDL_CONFIG}
MAKE_JOBS_SAFE= yes
DESKTOP_ENTRIES="Widelands" \
"Realtime strategy game inspired by Settlers II" \
"${DATADIR}/pics/wl-ico-32.png" \
"widelands" \
"Game;StrategyGame;" \
false
post-patch:
@${REINPLACE_CMD} -e '/prefer_localdata/ s|True|False|' \
${WRKSRC}/worlds/SConscript
@${REINPLACE_CMD} -e '/ifndef/ s|__APPLE__|__FreeBSD__|' \
${WRKSRC}/src/backtrace.cc
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/utils/buildlocale.py
@${REINPLACE_CMD} -e 's|revstring=.*|return "${DISTVERSION}-FreeBSD"|' \
${WRKSRC}/build/scons-tools/detect_revision.py
post-install:
@${FIND} ${DATADIR} -type f | \
${SED} -e 's|^${PREFIX}/||' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} -e 's|^${PREFIX}/|@dirrm |' >> ${TMPPLIST}
.include <bsd.port.mk>
|