1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/emulators/x16-emulator/Makefile
2023-11-08 20:37:00 +03:00

43 lines
924 B
Makefile

PORTNAME= x16-emulator
DISTVERSION= r46
CATEGORIES= emulators
MAINTAINER= makc@FreeBSD.org
COMMENT= Emulator for the Commander X16 8-bit computer
WWW= https://github.com/X16Community
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${DATADIR}/rom.bin:emulators/x16-rom
USES= compiler:c++17-lang gmake sdl
USE_SDL= sdl2
USE_GITHUB= yes
GH_ACCOUNT= X16Community
DESKTOP_ENTRIES= "Commander X16" \
"" \
"" \
"x16emu" \
"" \
true
PLIST_FILES= bin/x16emu
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/src/main.c
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=-Wno-error=deprecated-non-prototype |g' \
${WRKSRC}/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/x16emu ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>