kmos 5f3161ff1e Fix the build for sparc64 (and other base-gcc arches) by adding
a COMPILERS line with ports-gcc. Otherwise the build fails with
'cc1: error: unrecognized command line option "-std=c11"'

"I have no objection" bentley@ (maintainer)

ok jca@
2020-04-22 17:50:15 +00:00

40 lines
726 B
Makefile

# $OpenBSD: Makefile,v 1.7 2020/04/22 17:50:15 kmos Exp $
FIX_EXTRACT_PERMISSIONS = Yes
COMMENT = Game Boy development system
V = 0.4.0
DISTNAME = rgbds-$V
CATEGORIES = devel
HOMEPAGE = https://rednex.github.io/rgbds/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
# MIT
PERMIT_PACKAGE = Yes
# uses pledge()
WANTLIB += c m png z
MASTER_SITES = https://github.com/rednex/rgbds/releases/download/v$V/
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
LIB_DEPENDS = graphics/png
MAKE_FLAGS = CFLAGS="${CFLAGS}" \
BINMODE=${BINMODE} \
MANMODE=${MANMODE} \
Q=
# tests require network access, involve building software with unclear license
NO_TEST = Yes
WRKDIST = ${WRKDIR}/rgbds
.include <bsd.port.mk>