blob: 9e0c8b665c89549c1a74537f73ee2426363991c7 (
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
|
# $FreeBSD$
PORTNAME= colobot
DISTVERSIONPREFIX= ${PORTNAME}-gold-
DISTVERSION= 0.1.12
DISTVERSIONSUFFIX= -alpha
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= https://colobot.info/files/music/:music
DISTFILES= colobot-music_ogg_0.1.12-alpha.tar.gz:music
MAINTAINER= fernape@FreeBSD.org
COMMENT= Educational game aiming to teach programming to kids
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libpng.so:graphics/png \
libsndfile.so:audio/libsndfile \
libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg \
libopenal.so:audio/openal-soft \
libphysfs.so:devel/physfs \
libboost_system.so:devel/boost-libs
USES= cmake compiler:c++11-lang gl gettext-runtime \
gettext-tools:build localbase:ldflags openal python:2.7 sdl
USE_SDL= image2 ttf2
USE_GL= gl glew glu
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_TUPLE= colobot:colobot-data:c467bd9:data
LLD_UNSAFE= yes
post-extract:
@${MV} ${WRKDIR}/colobot-data-c467bd9/* ${WRKSRC}/data
@${MV} ${WRKDIR}/*.ogg ${WRKDIR}/LICENSE.txt ${WRKSRC}/data/music/
@${REINPLACE_CMD} 's|$${CMAKE_INSTALL_PREFIX}/games|$${CMAKE_INSTALL_PREFIX}/bin|g' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} 's|PLATFORM_MACOSX|PLATFORM_MACOSX OR PLATFORM_OTHER|g' ${WRKSRC}/src/CMakeLists.txt
post-patch:
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/FindGLEW.cmake
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/FindPhysFS.cmake
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/FindSDL2.cmake
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/FindSDL2_image.cmake
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cmake/FindSDL2_ttf.cmake
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/tools/check-levels.sh
.include <bsd.port.mk>
|