From owner-svn-ports-head@freebsd.org Fri Mar 27 14:20:59 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 430C427722A; Fri, 27 Mar 2020 14:20:59 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48pkY66dlyz3NK3; Fri, 27 Mar 2020 14:20:58 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A6B292240A; Fri, 27 Mar 2020 14:10:32 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 02REAWhk052814; Fri, 27 Mar 2020 14:10:32 GMT (envelope-from makc@FreeBSD.org) Received: (from makc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 02REAU2Y052803; Fri, 27 Mar 2020 14:10:30 GMT (envelope-from makc@FreeBSD.org) Message-Id: <202003271410.02REAU2Y052803@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: makc set sender to makc@FreeBSD.org using -f From: Max Brazhnikov Date: Fri, 27 Mar 2020 14:10:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r529251 - in head/emulators: . x16-emulator x16-emulator/files x16-rom X-SVN-Group: ports-head X-SVN-Commit-Author: makc X-SVN-Commit-Paths: in head/emulators: . x16-emulator x16-emulator/files x16-rom X-SVN-Commit-Revision: 529251 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 14:20:59 -0000 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@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 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@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 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