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

58 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2018/10/24 14:28:03 sthen Exp $
ONLY_FOR_ARCHS= i386 amd64
COMMENT-main= redeclipse client
COMMENT-data= redeclipse data
CATEGORIES= games x11
MASTER_SITES= https://github.com/red-eclipse/
HOMEPAGE= http://www.redeclipse.net/
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
MULTI_PACKAGES= -main -data
N= redeclipse
V= 1.6.0
PKGNAME= ${N}-${V}
PKGNAME-main= ${N}-${V}
PKGNAME-data= ${N}-data-${V}
MASTER_SITES= https://github.com/red-eclipse/base/releases/download/v${V}/
DISTNAME= redeclipse_${V}_combined
EXTRACT_SUFX= .tar.bz2
REVISION-main= 2
REVISION-data= 0
PKG_ARCH-data= *
# zlib (code) + CC-BY-SA-3.0+ (data)
PERMIT_PACKAGE_CDROM= Yes
COMPILER = base-clang ports-gcc base-gcc
RUN_DEPENDS-main += ${BASE_PKGPATH},-data>=${V} \
devel/desktop-file-utils \
x11/gtk+3,-guic
BUILD_DEPENDS= graphics/GraphicsMagick
LIB_DEPENDS-main= devel/sdl2-mixer \
devel/sdl2-image \
net/enet>=1.3.12
WANTLIB-main+= GL X11 SDL2 SDL2_image SDL2_mixer c enet m pthread \
${COMPILER_LIBCXX} z
WRKDIST= ${WRKDIR}/redeclipse-${V}/src
USE_GMAKE= Yes
MAKE_ENV+= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
TRUEPREFIX="${TRUEPREFIX}"
NO_TEST= Yes
INSTALL_TARGET= system-install
post-extract:
find ${WRKDIR} \( -name .gitattributes -or \
-name .github -or -name .gitignore -or -name \
.gitmodules \) -exec rm -r {} +
.include <bsd.port.mk>