49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2019/07/12 20:46:14 sthen Exp $
|
|
|
|
V = 3.2.2
|
|
COMMENT = 3D, first person roguelike
|
|
PKGNAME = ${DISTNAME:L}
|
|
CATEGORIES = games x11
|
|
|
|
GH_ACCOUNT = TurningWheel
|
|
GH_PROJECT = Barony
|
|
GH_TAGNAME = v${V}
|
|
|
|
HOMEPAGE = http://www.baronygame.com/
|
|
MAINTAINER = David Carlier <devnexen@gmail.com>
|
|
|
|
# GPLv3 only
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLU SDL2 SDL2_image SDL2_net
|
|
WANTLIB += SDL2_ttf c execinfo m ogg openal png vorbisfile physfs
|
|
|
|
# C++11
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
MODULES = devel/cmake
|
|
|
|
LIB_DEPENDS = audio/libvorbis \
|
|
audio/openal \
|
|
devel/libexecinfo \
|
|
devel/physfs \
|
|
devel/sdl2 \
|
|
devel/sdl2-image \
|
|
devel/sdl2-net \
|
|
devel/sdl2-ttf \
|
|
graphics/png
|
|
|
|
CONFIGURE_ARGS = -DCMAKE_C_FLAGS="${CFLAGS}" \
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
|
|
-DOPENAL_ENABLED=ON \
|
|
-DEDITOR_EXE_NAME="barony-editor" \
|
|
-DDATA_DIR=ON \
|
|
-DCMAKE_INSTALL_BINDIR="${LOCALBASE}/bin"
|
|
|
|
NO_TEST = Yes
|
|
|
|
post-install:
|
|
${SUBST_CMD} -m 555 -c ${FILESDIR}/barony.sh ${PREFIX}/bin/barony
|
|
|
|
.include <bsd.port.mk>
|