1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/games/aquaria/Makefile
Po-Chuan Hsieh 17cbcc47bd
textproc/tinyxml2: Update to 9.0.0
- Bump PORTREVISION of dependent ports for shlib change

Changes:	https://github.com/leethomason/tinyxml2/commits/master
2021-06-15 01:38:57 +08:00

66 lines
1.7 KiB
Makefile

PORTNAME= aquaria
DISTVERSIONPREFIX= OSE-v
DISTVERSION= 1.002-22
DISTVERSIONSUFFIX= -g84366ad
PORTREVISION= 9
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:insource compiler:c++11-lang lua:51 openal pkgconfig sdl
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)
LDFLAGS_i386= -Wl,-z,notext
SUB_FILES= pkg-message
PLIST_FILES= bin/aquaria
PORTDATA= *
DESKTOP_ENTRIES="${GH_PROJECT}" \
"" \
"${DATADIR}/${PORTNAME}.png" \
"${PORTNAME}" \
"Game;ArcadeGame;" \
""
OPTIONS_DEFINE= 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>