pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add RunCPM as wip/runcpm



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By:	cfkoch
Date:		Sat Oct 8 20:51:13 2022 -0700
Changeset:	6cfe83592849063286e637bb0cad0406d2a5906f

Modified Files:
	Makefile
Added Files:
	runcpm/DESCR
	runcpm/Makefile
	runcpm/PLIST
	runcpm/distinfo
	runcpm/patches/patch-RunCPM_Makefile.posix

Log Message:
Add RunCPM as wip/runcpm

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6cfe83592849063286e637bb0cad0406d2a5906f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                   |  1 +
 runcpm/DESCR                               | 11 +++++++++++
 runcpm/Makefile                            | 25 +++++++++++++++++++++++++
 runcpm/PLIST                               |  2 ++
 runcpm/distinfo                            |  7 +++++++
 runcpm/patches/patch-RunCPM_Makefile.posix | 25 +++++++++++++++++++++++++
 6 files changed, 71 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ae59feec24..f9a2613c8b 100644
--- a/Makefile
+++ b/Makefile
@@ -5207,6 +5207,7 @@ SUBDIR+=	ruby-versionomy
 SUBDIR+=	ruby-xmpp4r
 SUBDIR+=	ruby-yaml_waml
 SUBDIR+=	runas
+SUBDIR+=	runcpm
 SUBDIR+=	runit
 SUBDIR+=	rust
 SUBDIR+=	rust-bindgen
diff --git a/runcpm/DESCR b/runcpm/DESCR
new file mode 100644
index 0000000000..6f7585ca84
--- /dev/null
+++ b/runcpm/DESCR
@@ -0,0 +1,11 @@
+RunCPM is an application which can execute vintage CP/M 8-bit programs on many
+modern platforms. It can be built both on 32- and 64-bit host environments and
+should be easily portable to other platforms. RunCPM is fully written in C and
+in a modular way, so porting to other platforms should be only a matter of
+writing an abstraction layer file for it. No modification to the main code
+modules should be necessary.
+
+If you miss using powerful programs like Wordstar, dBaseII, mBasic and others,
+then RunCPM is for you. RunCPM emulates CP/M 2.2 from Digital Research as close
+as possible, the only difference being that it uses regular folders on the host
+instead of disk images.
diff --git a/runcpm/Makefile b/runcpm/Makefile
new file mode 100644
index 0000000000..a7efaa0843
--- /dev/null
+++ b/runcpm/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=	runcpm-0
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=MockbaTheBorg/}
+GITHUB_PROJECT=	RunCPM
+GITHUB_TAG=	3a908dfd3b41702cc1c887371464641da7f8b35b
+
+MAINTAINER=	charlotte%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/MockbaTheBorg/RunCPM
+COMMENT=	Z80 CP/M 2.2 emulator
+LICENSE=	mit
+
+NO_CONFIGURE=	yes
+USE_LANGUAGES=	c
+USE_TOOLS+=	gmake unzip
+
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/RunCPM
+MAKE_FILE=	Makefile.posix
+
+do-install:
+	${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/RunCPM ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/runcpm/PLIST b/runcpm/PLIST
new file mode 100644
index 0000000000..c6bcaf6a35
--- /dev/null
+++ b/runcpm/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/RunCPM
diff --git a/runcpm/distinfo b/runcpm/distinfo
new file mode 100644
index 0000000000..38427cf83b
--- /dev/null
+++ b/runcpm/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (runcpm-0-3a908dfd3b41702cc1c887371464641da7f8b35b.tar.gz) = 087c69b29435122e23862aab0aa14625862bea0f
+RMD160 (runcpm-0-3a908dfd3b41702cc1c887371464641da7f8b35b.tar.gz) = ea7f9197faaeb056e3ddc4caab8db4011bbc91f5
+SHA512 (runcpm-0-3a908dfd3b41702cc1c887371464641da7f8b35b.tar.gz) = c8b7f603288ec6471e7a02aeaef637ab8de3456077c8703a0fa6159cb86def54da40b2534d0fb01f19361e7bef5c0a1ec5b804b6b03ac6c56235b14cae9c1365
+Size (runcpm-0-3a908dfd3b41702cc1c887371464641da7f8b35b.tar.gz) = 1117121 bytes
+SHA1 (patch-RunCPM_Makefile.posix) = d2a06d10cc5437e490234587d421931253eceb06
diff --git a/runcpm/patches/patch-RunCPM_Makefile.posix b/runcpm/patches/patch-RunCPM_Makefile.posix
new file mode 100644
index 0000000000..52719fc26d
--- /dev/null
+++ b/runcpm/patches/patch-RunCPM_Makefile.posix
@@ -0,0 +1,25 @@
+$NetBSD$
+
+libdl is not available on all systems.
+--- Makefile.posix.orig	2022-10-08 18:21:42.000000000 -0700
++++ Makefile.posix	2022-10-08 20:45:22.808746284 -0700
+@@ -13,13 +13,17 @@
+ #CFLAGS = -Wall -O0 -fPIC -Wno-unused-variable -g
+ 
+ # Flags to pass to the linker
+-LDFLAGS = -lm -ldl
++LDFLAGS = -lm
++
++ifeq ($(shell uname -s),Linux)
++LDFLAGS += -ldl
++endif
+ 
+ # Objects to build
+ OBJS = main.o lua/liblua.a
+ 
+ # Lua building
+-LUABUILD = $(MAKE) -C lua linux
++LUABUILD = $(MAKE) -C lua
+ LUACLEAN = $(MAKE) -C lua clean
+ 
+ # Clean up program


Home | Main Index | Thread Index | Old Index