svn commit: r529251 - in head/emulators: . x16-emulator x16-emulator/files x16-rom
Max Brazhnikov
makc at FreeBSD.org
Fri Mar 27 14:20:59 UTC 2020
Author: makc
Date: Fri Mar 27 14:10:30 2020
New Revision: 529251
URL: https://svnweb.freebsd.org/changeset/ports/529251
Log:
Add new ports, emulators/x16-emulator and emulators/x16-rom:
Emulator and rom for Commander X16 - modern 8-bit computer inspired
by Commodore 64.
WWW: https://github.com/commanderx16
Added:
head/emulators/x16-emulator/
head/emulators/x16-emulator/Makefile (contents, props changed)
head/emulators/x16-emulator/distinfo (contents, props changed)
head/emulators/x16-emulator/files/
head/emulators/x16-emulator/files/patch-Makefile (contents, props changed)
head/emulators/x16-emulator/files/patch-main.c (contents, props changed)
head/emulators/x16-emulator/pkg-descr (contents, props changed)
head/emulators/x16-rom/
head/emulators/x16-rom/Makefile (contents, props changed)
head/emulators/x16-rom/distinfo (contents, props changed)
head/emulators/x16-rom/pkg-descr (contents, props changed)
Modified:
head/emulators/Makefile
Modified: head/emulators/Makefile
==============================================================================
--- head/emulators/Makefile Fri Mar 27 14:09:24 2020 (r529250)
+++ head/emulators/Makefile Fri Mar 27 14:10:30 2020 (r529251)
@@ -163,6 +163,8 @@
SUBDIR += wine-mono-devel
SUBDIR += winetricks
SUBDIR += wxmupen64plus
+ SUBDIR += x16-emulator
+ SUBDIR += x16-rom
SUBDIR += x48
SUBDIR += x49gp
SUBDIR += xbraitenberg
Added: head/emulators/x16-emulator/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-emulator/Makefile Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= x16-emulator
+DISTVERSION= r37
+CATEGORIES= emulators
+
+MAINTAINER= makc at FreeBSD.org
+COMMENT= Emulator for the Commander X16 8-bit computer
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${DATADIR}/rom.bin:emulators/x16-rom
+
+USES= gmake sdl
+
+USE_SDL= sdl2
+USE_GITHUB= yes
+GH_ACCOUNT= commanderx16
+
+DESKTOP_ENTRIES= "Commander X16" \
+ "" \
+ "" \
+ "x16emu" \
+ "" \
+ true
+
+PLIST_FILES= bin/x16emu
+
+post-patch:
+ ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/main.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/x16emu ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
Added: head/emulators/x16-emulator/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-emulator/distinfo Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1585317045
+SHA256 (commanderx16-x16-emulator-r37_GH0.tar.gz) = 0c9dbf76ceb5668c32d3b9f04538cdfe891826eaac6bf57c68b13a0152ce15d2
+SIZE (commanderx16-x16-emulator-r37_GH0.tar.gz) = 130968
Added: head/emulators/x16-emulator/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-emulator/files/patch-Makefile Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,13 @@
+--- Makefile.orig 2020-01-03 23:42:34 UTC
++++ Makefile
+@@ -10,8 +10,8 @@ else
+ SDL2CONFIG=sdl2-config
+ endif
+
+-CFLAGS=-std=c99 -O3 -Wall -Werror -g $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src
+-LDFLAGS=$(shell $(SDL2CONFIG) --libs) -lm
++CFLAGS += $(shell $(SDL2CONFIG) --cflags) -Iextern/include -Iextern/src
++LDFLAGS += $(shell $(SDL2CONFIG) --libs) -lm
+
+ OUTPUT=x16emu
+
Added: head/emulators/x16-emulator/files/patch-main.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-emulator/files/patch-main.c Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,11 @@
+--- main.c.orig 2020-01-22 19:56:11 UTC
++++ main.c
+@@ -442,7 +442,7 @@ main(int argc, char **argv)
+
+ run_after_load = false;
+
+- char *base_path = SDL_GetBasePath();
++ char *base_path = "%%PREFIX%%/share/x16-emulator/";
+
+ // This causes the emulator to load ROM data from the executable's directory when
+ // no ROM file is specified on the command line.
Added: head/emulators/x16-emulator/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-emulator/pkg-descr Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,3 @@
+This is an emulator for the Commander X16 - modern 8-bit computer.
+
+WWW: https://github.com/commanderx16
Added: head/emulators/x16-rom/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-rom/Makefile Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= x16-rom
+DISTVERSION= r37
+CATEGORIES= emulators
+
+MAINTAINER= makc at FreeBSD.org
+COMMENT= Commander X16 ROM
+
+BUILD_DEPENDS= cc65:devel/cc65
+
+USES= gmake
+
+USE_GITHUB= yes
+GH_ACCOUNT= commanderx16
+
+DATADIR= ${PREFIX}/share/x16-emulator
+PORTDATA= rom.bin
+
+post-patch:
+ ${REINPLACE_CMD} '1s,bash,sh,' ${WRKSRC}/scripts/symbolize.sh
+
+do-install:
+ ${MKDIR} ${STAGEDIR}/${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/build/x16/rom.bin ${STAGEDIR}/${DATADIR}
+
+.include <bsd.port.mk>
Added: head/emulators/x16-rom/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-rom/distinfo Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1585316000
+SHA256 (commanderx16-x16-rom-r37_GH0.tar.gz) = 6d33326ac95c12f09efa328bbee4e8a4c285a42599199d8d5a93d28b5801deef
+SIZE (commanderx16-x16-rom-r37_GH0.tar.gz) = 468369
Added: head/emulators/x16-rom/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/x16-rom/pkg-descr Fri Mar 27 14:10:30 2020 (r529251)
@@ -0,0 +1,3 @@
+ROM containing BASIC, KERNAL, DOS and GEOS for the Commander X16 emulator.
+
+WWW: https://github.com/commanderx16
More information about the svn-ports-all
mailing list