bentley a11def704c Import pioneer-20180203, a game of lonely space and adventure.
Pioneer is a space adventure game set in the Milky Way galaxy at the
turn of the 31st century.

The game is open-ended, and you are free to explore the millions of star
systems in the game. You can land on planets, slingshot past gas giants,
and burn yourself to a crisp flying between binary star systems. You can
try your hand at piracy, make your fortune trading between systems, or
do missions for the various factions fighting for power, freedom or
self-determination.

tweaks + ok kirby@
2018-10-27 07:14:26 +00:00

55 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2018/10/27 07:14:26 bentley Exp $
ONLY_FOR_ARCHS = ${LE_ARCHS}
COMMENT = game of lonely space and adventure
CATEGORIES = games
HOMEPAGE = https://pioneerspacesim.net/
# GPLv3 only
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX}
WANTLIB += GL SDL2 SDL2_image assimp c freetype m png pthread
WANTLIB += sigc-2.0 vorbisfile z
GH_ACCOUNT = pioneerspacesim
GH_PROJECT = pioneer
GH_TAGNAME = 20180203
COMPILER = base-clang ports-gcc
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS = audio/libvorbis \
devel/libsigc++-2 \
devel/sdl2-image \
multimedia/assimp
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
PIONEER_DATA_DIR=${PREFIX}/share/pioneer/
MAKE_FLAGS = V=1
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.15
pre-configure:
cd ${WRKSRC} && env \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
sh bootstrap
post-extract:
# disable profiler to unbreak build on !x86
sed -i -e '/^SUBDIRS/s/ profiler//' ${WRKSRC}/contrib/Makefile.am
sed -i -e '/libprofiler.a/d; $$!N; /libprofiler.a$$/s| \\||; P; D' \
${WRKSRC}/src/Makefile.am
sed -i -e '/contrib\/profiler/d' ${WRKSRC}/configure.ac
.include <bsd.port.mk>