blob: d5f01ad4459b1815b62d4f87784f2fb6c508f0ce (
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
|
# $FreeBSD$
PORTNAME= aquaria
DISTVERSIONPREFIX= OSE-v
DISTVERSION= 1.002-22
DISTVERSIONSUFFIX= -g84366ad
PORTREVISION= 5
CATEGORIES= games
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Underwater 2D fantasy action-adventure (game engine)
LICENSE= GPLv2+
BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libftgl.so:graphics/ftgl \
libpng.so:graphics/png \
libtinyxml2.so:textproc/tinyxml2
USE_GITHUB= yes
GH_ACCOUNT= AquariaOSE
GH_PROJECT= Aquaria
USES= cmake lua:51 openal pkgconfig
EXCLUDE= AL FTGL GL SDL* freetype2 glm glpng/png glpng/zlib \
libogg-* libvorbis-* lua-* tinyxml2*
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ExternalLibs/,}
CMAKE_ARGS= -DAQUARIA_DEFAULT_DATA_DIR:PATH="${DATADIR}"
CMAKE_OFF= AQUARIA_INTERNAL_FREETYPE \
AQUARIA_INTERNAL_FTGL \
AQUARIA_INTERNAL_LUA \
AQUARIA_INTERNAL_OGGVORBIS \
AQUARIA_INTERNAL_OPENAL \
AQUARIA_INTERNAL_PNG \
AQUARIA_INTERNAL_SDL \
AQUARIA_INTERNAL_TINYXML2 \
AQUARIA_INTERNAL_ZLIB
LDFLAGS+= -Wl,--as-needed # avoid overlinking (vorbis deps)
LLD_UNSAFE= yes # XXX ports/219089
SUB_FILES= pkg-message
PLIST_FILES= bin/aquaria
PORTDATA= *
DESKTOP_ENTRIES="${GH_PROJECT}" \
"" \
"${DATADIR}/${PORTNAME}.png" \
"${PORTNAME}" \
"Game;ArcadeGame;" \
""
OPTIONS_DEFINE= DEBUG SDL2
OPTIONS_DEFAULT=SDL2
SDL2_DESC= Use SDL 2.x instead of SDL 1.2.x
SDL2_CMAKE_BOOL=AQUARIA_USE_SDL2
SDL2_USE= SDL=sdl2
SDL2_USE_OFF= SDL=sdl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.for d in game_scripts files
(cd ${WRKSRC}/${d} && ${COPYTREE_SHARE} \
"." ${STAGEDIR}${DATADIR}/override)
.endfor
.include <bsd.port.mk>
|