sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
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.
2018-10-24 14:27:57 +00:00

57 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2018/10/24 14:28:03 sthen Exp $
COMMENT-main = free/libre action roleplaying engine
COMMENT-data = free/libre action roleplaying engine data
V = 0.19
DISTNAME = flare.${V}
PKGNAME-main = flare-${V}
PKGNAME-data = flare-data-${V}
REVISION-main = 6
REVISION-data = 0
CATEGORIES = games
HOMEPAGE = http://flarerpg.org
# code GPLv3+, data CC BY-SA 3.0+
PERMIT_PACKAGE_CDROM = Yes
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
WANTLIB-main += SDL SDL_image SDL_mixer SDL_ttf c m pthread ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=flare-game/}
MODULES = devel/cmake
RUN_DEPENDS-main = devel/desktop-file-utils \
games/flare,-data \
x11/gtk+3,-guic
LIB_DEPENDS-main = devel/sdl-image \
devel/sdl-mixer \
devel/sdl-ttf
CONFIGURE_ARGS = -DBINDIR=bin \
-DDATADIR=share/flare \
-DMANDIR=man
MULTI_PACKAGES = -main -data
PKG_ARCH-data = *
NO_TEST = Yes
post-extract:
@sed -i -e "s,\@FLARE_EXECUTABLE_PATH@,flare,g" \
${WRKSRC}/distribution/flare.desktop.in
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps/
${INSTALL_DATA} ${WRKSRC}/distribution/flare.desktop.in \
${PREFIX}/share/applications/flare.desktop
${INSTALL_DATA} ${WRKSRC}/distribution/flare_logo.svg \
${PREFIX}/share/icons/hicolor/scalable/apps/flare.svg
.include <bsd.port.mk>