aboutsummaryrefslogtreecommitdiff
path: root/devel/rgbds/Makefile
blob: 0f8ef6adf4fe7246e69494c33620084e1cb0d6f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PORTNAME=	rgbds
DISTVERSION=	0.7.0
CATEGORIES=	devel games
MASTER_SITES=	https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Free assembler/linker for the Game Boy and Game Boy Color
WWW=		https://rgbds.gbdev.io/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	bash>0:shells/bash
LIB_DEPENDS=	libpng16.so:graphics/png

USES=		bison compiler:c11 dos2unix pkgconfig shebangfix

SHEBANG_FILES=	src/bison.sh
MAKE_ARGS=	Q= # verbose builds
WRKSRC=		${WRKDIR}/rgbds

do-configure:
# yank _POSIX_C_SOURCE because it breaks the build, see also:
# https://github.com/gbdev/rgbds/issues/1091
# https://github.com/gbdev/rgbds/issues/1111
	${REINPLACE_CMD} 's,-D_POSIX_C_SOURCE=200809L,,' ${WRKSRC}/Makefile

.include <bsd.port.mk>