blob: 608fa80f4c582c2991495ca12cd1735b71dc97d1 (
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
52
53
54
55
56
57
58
|
# Created by: Travis Poppe <tlp@liquidx.org>
# $FreeBSD$
PORTNAME= wyrmgus
PORTVERSION= 3.5.4
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= games devel
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Modified Stratagus engine for Wyrmsun
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libtolua++-${LUA_VER}.so:lang/tolua++ \
libogg.so:audio/libogg \
liboaml.so:audio/oaml
BUILD_DEPENDS= ${LOCALBASE}/include/boost/tokenizer.hpp:devel/boost-libs
USE_GITHUB= yes
GH_ACCOUNT= Andrettin
GH_PROJECT= Wyrmgus
USES= compiler:c++11-lib cmake lua:51 pkgconfig sqlite
USE_SDL= sdl
CMAKE_ARGS= -DGAMEDIR:STRING="bin" \
-DTOLUA++_APP:STRING="tolua++-${LUA_VER}" \
-DTOLUA++_INCLUDE_DIR:STRING="${LUA_INCDIR}" \
-DTOLUA++_LIBRARY:STRING="${LUA_LIBDIR}/libtolua++.so" \
-DENABLE_USEGAMEDIR:BOOL=OFF \
-DWITH_MIKMOD:BOOL=OFF \
-DWITH_THEORA:BOOL=OFF
PORTDOCS= *
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/wyrmsun.ico
OPTIONS_DEFINE= OPENGL DOCS
OPTIONS_DEFAULT=OPENGL
OPENGL_USES= gl
OPENGL_USE= GL=gl,glu
OPENGL_CMAKE_ON= -DWITH_RENDERER="OpenGL"
OPENGL_CMAKE_OFF= -DWITH_RENDERER="NativeSDL"
post-patch:
# fix debug build
@${REINPLACE_CMD} -e 's|OAML_LIBRARIES_SHARED_DEBUG|OAML_LIBRARIES_SHARED|' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/stratagus-dbg/ d' ${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/stratagus ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/src/win32/wyrmsun.ico ${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>
|