blob: 2ff123f769398da9a0bcff667c9c3ec1b6b75ef3 (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# New ports collection makefile for: blinkensisters
# Date created: 26 Mar 2006
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= blinkensisters
PORTVERSION= 0.5.3
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Blinkensisters%20-%20Lost%20Pixels/LostPixels%20${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Parallax-style 2D scrolling platform game
USE_SDL= sdl image ttf
USE_PERL5_BUILD= yes
USE_CMAKE= yes
CFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/blinkensisters/lostpixels/game/software
ADDONS_WRKSRC= ${WRKDIR}/blinkensisters/lostpixels/game/addons
PORTDOCS= *
OPTIONS= ADDONS "Install addons (~200 MB download size)" off \
SDL_MIXER "Build with sound support" on \
SDL_NET "Build with network support" on \
THEORA "Build with theora support" off
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
.if defined(WITH_ADDONS)
DISTNAME= LostPixels-${PORTVERSION}-source-with-addons
PKGNAMESUFFIX= -with-addons
PLIST_SUB+= ADDONS=""
.else
DISTNAME= LostPixels-${PORTVERSION}-source
PLIST_SUB+= ADDONS="@comment "
.endif
.if defined(WITHOUT_SDL_MIXER)
CMAKE_ARGS+= -DUSE_SDL_MIXER:BOOL=OFF
PLIST_SUB+= SDL_MIXER="@comment "
.else
USE_SDL+= mixer
PLIST_SUB+= SDL_MIXER=""
.endif
.if defined(WITHOUT_SDL_NET)
CMAKE_ARGS+= -DUSE_SDL_NET:BOOL=OFF
PLIST_SUB+= SDL_NET="@comment "
.else
USE_SDL+= net
PLIST_SUB+= SDL_NET=""
.endif
.if defined(WITH_THEORA)
CMAKE_ARGS+= -DUSE_THEORA:BOOL=ON
.else
LIB_DEPENDS+= theora.0:${PORTSDIR}/multimedia/libtheora
.endif
post-patch:
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^INSTALL.*doc/ d' ${WRKSRC}/CMakeLists.txt
.endif
@${REINPLACE_CMD} -e 's|share/blinkensisters|${DATADIR:S,${PREFIX}/,,}|; \
s|share/doc/blinkensisters|${DOCSDIR:S,${PREFIX}/,,}|' \
${WRKSRC}/CMakeLists.txt
.if defined(WITH_ADDONS)
@${FIND} ${ADDONS_WRKSRC} -name "Makefile" | ${XARGS} \
${REINPLACE_CMD} -e 's|bmfcompress|${WRKSRC}/&|'
.endif
.if defined(WITH_ADDONS)
post-build:
cd ${ADDONS_WRKSRC} && ${MAKE}
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${ADDONS_WRKSRC}/for_upload/*.bmf ${DATADIR}
.endif
.include <bsd.port.post.mk>
|