blob: e2ea8a2a5fdebf026004a29b08159a5e66ca0798 (
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
|
# New ports collection makefile for: blinkensisters
# Date created: 26 Mar 2006
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= blinkensisters
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF
DISTNAME= LostPixels-${PORTVERSION}-source
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Parallax-style 2D scrolling platform game
BUILD_DEPENDS= ${CMAKE}:${PORTSDIR}/devel/cmake
CMAKE?= ${LOCALBASE}/bin/cmake
USE_SDL= sdl image ttf
WRKSRC= ${WRKDIR}//blinkensisters/lostpixels/game/software
CMAKE_DEFS= -DCMAKE_C_COMPILER:STRING="${CC}" \
-DCMAKE_C_FLAGS:STRING="${CFLAGS} -I${LOCALBASE}/include" \
-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} -I${LOCALBASE}/include" \
-DCMAKE_INSTALL_PREFIX:PATH=${PREFIX}
OPTIONS= SOUND "Build with souns support" on \
NETWORK "Build with network support" on
.include <bsd.port.pre.mk>
post-patch:
.if defined(WITHOUT_SOUND)
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*SDL_mixer/ d' \
${WRKSRC}/CMakeLists.txt
.endif
.if defined(WITHOUT_NETWORK)
@${REINPLACE_CMD} -e '/FIND_PACKAGE.*SDL_net/ d' \
${WRKSRC}/CMakeLists.txt
.endif
.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
do-configure:
cd ${WRKSRC} && ${CMAKE} . ${CMAKE_DEFS}
.include <bsd.port.post.mk>
|