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.
45 lines
964 B
Makefile
45 lines
964 B
Makefile
# $OpenBSD: Makefile,v 1.37 2018/10/24 14:28:02 sthen Exp $
|
|
|
|
COMMENT= Oxyd/Rock'n'Roll clone
|
|
|
|
V= 1.21
|
|
DISTNAME= enigma-${V}
|
|
REVISION= 3
|
|
|
|
CATEGORIES= games x11
|
|
|
|
HOMEPAGE= https://www.nongnu.org/enigma/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} SDL SDL_image SDL_mixer SDL_ttf
|
|
WANTLIB += c curl enet intl m png xerces-c z zipios
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=enigma-game/}
|
|
|
|
WRKDIST= ${WRKDIR}/enigma-${V}
|
|
|
|
BUILD_DEPENDS = graphics/ImageMagick
|
|
RUN_DEPENDS= devel/desktop-file-utils \
|
|
x11/gtk+3,-guic
|
|
LIB_DEPENDS= archivers/zipios \
|
|
devel/sdl-image \
|
|
devel/sdl-mixer \
|
|
devel/sdl-ttf \
|
|
graphics/png \
|
|
net/curl \
|
|
net/enet>=1.3.3 \
|
|
textproc/xerces-c>=3.2.1
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --with-system-enet
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.mk>
|