some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.19 2018/10/24 14:28:03 sthen Exp $
|
|
|
|
BROKEN-sparc64 = Illegal operands error building SDL_gfxPrimitives.cpp
|
|
|
|
COMMENT = blinkensisters - hunt for the lost pixels
|
|
|
|
V = 0.5.3
|
|
DISTNAME = LostPixels-${V}-source-with-addons
|
|
PKGNAME = lostpixels-${V}
|
|
REVISION = 6
|
|
HOMEPAGE = http://www.blinkensisters.org
|
|
|
|
CATEGORIES = games
|
|
|
|
# GPL v2 only
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=blinkensisters/}
|
|
|
|
LIB_DEPENDS = devel/sdl-net \
|
|
devel/sdl-image \
|
|
devel/sdl-mixer \
|
|
devel/sdl-ttf
|
|
|
|
WANTLIB += SDL SDL_image SDL_mixer SDL_net SDL_ttf X11 Xau
|
|
WANTLIB += Xdmcp Xext Xrandr Xrender c freetype m pthread ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MODULES += devel/cmake \
|
|
lang/lua
|
|
MODLUA_BUILDDEP = No
|
|
WRKDIST = ${WRKDIR}/blinkensisters/lostpixels/game/software
|
|
|
|
SEPARATE_BUILD = No
|
|
|
|
NO_TEST = Yes
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKDIST}/CMakeLists.txt
|
|
@perl -pi -e 's,make,${MAKE_PROGRAM},g ; s,/usr/local,\$$\{PREFIX},g' \
|
|
${WRKDIST}/../addons/Makefile
|
|
@find ${WRKDIST}/../addons/ -name Makefile -exec \
|
|
perl -pi -e 's,bmfcompress,${WRKDIST}/bmfcompress,g' {} \;
|
|
|
|
post-build:
|
|
cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} all
|
|
|
|
post-install:
|
|
mv ${PREFIX}/bin/LostPixels ${PREFIX}/bin/lostpixels
|
|
cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} install
|
|
|
|
.include <bsd.port.mk>
|