pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xemu: The Mega65 (and some others) emulator
Module Name: pkgsrc-wip
Committed By: Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By: rhialto
Date: Mon Nov 8 22:52:54 2021 +0100
Changeset: 93fb12b65cecd112743653783cea54abff9fd517
Modified Files:
Makefile
Added Files:
xemu/DESCR
xemu/Makefile
xemu/PLIST
xemu/distinfo
xemu/patches/patch-targets_cvic20_Makefile
xemu/patches/patch-targets_tvc_Makefile
Log Message:
xemu: The Mega65 (and some others) emulator
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=93fb12b65cecd112743653783cea54abff9fd517
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
xemu/DESCR | 0
xemu/Makefile | 47 ++++++++++++++++++++++++++++++
xemu/PLIST | 8 +++++
xemu/distinfo | 8 +++++
xemu/patches/patch-targets_cvic20_Makefile | 14 +++++++++
xemu/patches/patch-targets_tvc_Makefile | 14 +++++++++
7 files changed, 92 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index e5cf9bb48b..94b9586fed 100644
--- a/Makefile
+++ b/Makefile
@@ -5914,6 +5914,7 @@ SUBDIR+= xchat2-tcl
SUBDIR+= xdiskusage
SUBDIR+= xebece
SUBDIR+= xemacs-hg
+SUBDIR+= xemu
SUBDIR+= xerces-c-2.8.0
SUBDIR+= xesam-glib
SUBDIR+= xf86-input-keyboard-dfbsd
diff --git a/xemu/DESCR b/xemu/DESCR
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/xemu/Makefile b/xemu/Makefile
new file mode 100644
index 0000000000..1a7f643c0c
--- /dev/null
+++ b/xemu/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1 2021/11/06 16:40:06 rhialto Exp $
+
+DISTNAME= xemu-0.0.2021.11.02
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=lgblgblgb/}
+GITHUB_PROJECT= xemu
+GITHUB_TAG= 71f085f15c1761b1bf03e0f215cd742705d196d1
+
+MAINTAINER= rhialto%NetBSD.org@localhost
+HOMEPAGE= https://github.com/lgblgblgb/xemu
+COMMENT= Emulators of various machines, incl the Commodore LCD and Commodore 65 and MEGA65 as well.
+LICENSE= gnu-gpl-v2
+
+USE_TOOLS+= bash gmake
+USE_LANGUAGES+= c
+
+REPLACE_BASH+= build/configure/configure
+
+MAKE_ENV+= DESTDIR=${DESTDIR}
+MAKE_ENV+= SDL2_RPATH=${COMPILER_RPATH_FLAG},${BUILDLINK_PREFIX.SDL2}/lib
+
+# This subst only for NetBSD?
+SUBST_CLASSES+= rl
+SUBST_STAGE.rl= pre-configure
+SUBST_SED.rl= -e 's/-lreadline/-ledit/'
+SUBST_FILES.rl+= build/configure/configure
+SUBST_MESSAGE.rl+= readline
+
+SUBST_CLASSES+= usrlocal
+SUBST_STAGE.usrlocal= pre-configure
+SUBST_SED.usrlocal= -e 's;/usr/local;${PREFIX};'
+SUBST_FILES.usrlocal+= ./xemu/emutools_files.h
+SUBST_MESSAGE.usrlocal+=Replacing /usr/local
+
+SUBST_CLASSES+= destdir
+SUBST_STAGE.destdir= pre-configure
+SUBST_SED.destdir= -e 's;/usr/local;$${DESTDIR}${PREFIX};'
+SUBST_FILES.destdir+= ./build/Makefile.common
+SUBST_MESSAGE.destdir+= Inserting DESTDIR into INSTALL_BINDIR
+
+do-configure:
+ cd ${WRKSRC}/build/configure && bash ./configure --arch=native
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xemu/PLIST b/xemu/PLIST
new file mode 100644
index 0000000000..c43dfc2676
--- /dev/null
+++ b/xemu/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+bin/xemu-xc65
+bin/xemu-xclcd
+bin/xemu-xep128
+bin/xemu-xmega65
+bin/xemu-xprimo
+bin/xemu-xtvc
+bin/xemu-xvic20
diff --git a/xemu/distinfo b/xemu/distinfo
new file mode 100644
index 0000000000..877b2de849
--- /dev/null
+++ b/xemu/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (xemu-0.0.2021.11.02-71f085f15c1761b1bf03e0f215cd742705d196d1.tar.gz) = bfc55bbec07e35893d2d13570e25ff8b508b2228
+RMD160 (xemu-0.0.2021.11.02-71f085f15c1761b1bf03e0f215cd742705d196d1.tar.gz) = 77b86d8b0bf4b2fdcbc2a9ffce9b79c177c1b1f5
+SHA512 (xemu-0.0.2021.11.02-71f085f15c1761b1bf03e0f215cd742705d196d1.tar.gz) = acf44b632cde42e249d6de4cc23076fd42b0ac723ea543dd880926b8edfa3df96e244ef3e2cc255d4c6a369b9fd42c3629afe93ae7fbe83466864961693c121e
+Size (xemu-0.0.2021.11.02-71f085f15c1761b1bf03e0f215cd742705d196d1.tar.gz) = 1073850 bytes
+SHA1 (patch-targets_cvic20_Makefile) = 5f56b6889abca4dba591fa3b7f235233a735cf95
+SHA1 (patch-targets_tvc_Makefile) = a95842003770fb32bb7c6ad344f4a1f989ddb7a8
diff --git a/xemu/patches/patch-targets_cvic20_Makefile b/xemu/patches/patch-targets_cvic20_Makefile
new file mode 100644
index 0000000000..2c352edb17
--- /dev/null
+++ b/xemu/patches/patch-targets_cvic20_Makefile
@@ -0,0 +1,14 @@
+$NetBSD$
+
+/usr/pkg/bin/sdl2-config --libs doesn't include the RPATH.
+
+--- targets/cvic20/Makefile.orig 2021-11-02 17:20:35.000000000 +0000
++++ targets/cvic20/Makefile
+@@ -22,6 +22,6 @@ EMU_DESCRIPTION = Commodore VIC-20
+ SRCS_TARGET_xvic20 = commodore_vic20.c vic6561.c
+ SRCS_COMMON_xvic20 = emutools.c cpu65.c via65c22.c emutools_hid.c emutools_config.c emutools_files.c
+ CFLAGS_TARGET_xvic20 = $(SDL2_CFLAGS)
+-LDFLAGS_TARGET_xvic20 = $(SDL2_LIBS)
++LDFLAGS_TARGET_xvic20 = $(SDL2_LIBS) $(SDL2_RPATH)
+
+ include ../../build/Makefile.common
diff --git a/xemu/patches/patch-targets_tvc_Makefile b/xemu/patches/patch-targets_tvc_Makefile
new file mode 100644
index 0000000000..260232f794
--- /dev/null
+++ b/xemu/patches/patch-targets_tvc_Makefile
@@ -0,0 +1,14 @@
+$NetBSD$
+
+/usr/pkg/bin/sdl2-config --libs doesn't include the RPATH.
+
+--- targets/tvc/Makefile.orig 2021-11-02 17:20:35.000000000 +0000
++++ targets/tvc/Makefile
+@@ -22,6 +22,6 @@ EMU_DESCRIPTION = Videoton TV Computer
+ SRCS_TARGET_xtvc = tvc.c tvc_keymatrix.c sdext.c
+ SRCS_COMMON_xtvc = emutools.c emutools_hid.c emutools_config.c z80.c emutools_files.c
+ CFLAGS_TARGET_xtvc = $(SDL2_CFLAGS)
+-LDFLAGS_TARGET_xtvc = $(SDL2_LIBS)
++LDFLAGS_TARGET_xtvc = $(SDL2_LIBS) $(SDL2_RPATH)
+
+ include ../../build/Makefile.common
Home |
Main Index |
Thread Index |
Old Index