mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
25 lines
770 B
Makefile
25 lines
770 B
Makefile
PORTNAME= rgbds
|
|
DISTVERSION= 0.5.1
|
|
CATEGORIES= devel games
|
|
MASTER_SITES= https://github.com/gbdev/rgbds/releases/download/v${DISTVERSION}/
|
|
|
|
MAINTAINER= tobik@FreeBSD.org
|
|
COMMENT= Free assembler/linker for the Game Boy and Game Boy Color
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
USES= bison compiler:c11 dos2unix pkgconfig
|
|
MAKE_ARGS= Q= # verbose builds
|
|
WRKSRC= ${WRKDIR}/rgbds
|
|
|
|
do-configure:
|
|
# yank _POSIX_C_SOURCE when there is no support for _ISOC11_SOURCE
|
|
@cd ${WRKSRC}; ${PRINTF} '#include <assert.h>\nint main(){static_assert(1, "");}' | \
|
|
${CC} -std=gnu11 -D_POSIX_C_SOURCE=200809L -D_ISOC11_SOURCE -xc - 2>/dev/null || \
|
|
${REINPLACE_CMD} 's,-D_POSIX_C_SOURCE=200809L,,' ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|