pkgsrc-WIP-changes archive

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

Import sQLux 1.0.5 as wip/sqlux



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By:	cfkoch
Date:		Sat Oct 22 23:04:02 2022 -0700
Changeset:	d77dfa685970d619bd79c8bfd30a5f53c440d09c

Modified Files:
	Makefile
Added Files:
	sqlux/DESCR
	sqlux/Makefile
	sqlux/PLIST
	sqlux/distinfo
	sqlux/patches/patch-CMakeLists.txt

Log Message:
Import sQLux 1.0.5 as wip/sqlux

sQLux is a Sinclair QL emulator. It is based on uQlx but it uses SDL2 as its
OS layer. sQLux adds several features over the uQlx base code.

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

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

diffstat:
 Makefile                           |  1 +
 sqlux/DESCR                        |  2 ++
 sqlux/Makefile                     | 21 +++++++++++++++++++++
 sqlux/PLIST                        |  2 ++
 sqlux/distinfo                     |  7 +++++++
 sqlux/patches/patch-CMakeLists.txt | 31 +++++++++++++++++++++++++++++++
 6 files changed, 64 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 4d0a9c0742..fa81742c30 100644
--- a/Makefile
+++ b/Makefile
@@ -5398,6 +5398,7 @@ SUBDIR+=	spotify-tui
 SUBDIR+=	spotifyd
 SUBDIR+=	spread4
 SUBDIR+=	spyder
+SUBDIR+=	sqlux
 SUBDIR+=	squeak5
 SUBDIR+=	squeak5-vm
 SUBDIR+=	squeak6
diff --git a/sqlux/DESCR b/sqlux/DESCR
new file mode 100644
index 0000000000..7f87f73680
--- /dev/null
+++ b/sqlux/DESCR
@@ -0,0 +1,2 @@
+sQLux is a Sinclair QL emulator. It is based on uQlx but it uses SDL2 as its
+OS layer. sQLux adds several features over the uQlx base code.
diff --git a/sqlux/Makefile b/sqlux/Makefile
new file mode 100644
index 0000000000..989c8d2dd6
--- /dev/null
+++ b/sqlux/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	sqlux-1.0.5
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=SinclairQL/}
+GITHUB_PROJECT=	sQLux
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	charlotte%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/SinclairQL/sQLux
+COMMENT=	Sinclair QL emulator
+# XXX this code's license is actually extremely unclear -- they're moving
+# "towards GPL style licensing as far as possible," whatever the heck that
+# means.
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES+=	c c++
+USE_CMAKE=	yes
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sqlux/PLIST b/sqlux/PLIST
new file mode 100644
index 0000000000..c95d86d4c8
--- /dev/null
+++ b/sqlux/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/sqlux
diff --git a/sqlux/distinfo b/sqlux/distinfo
new file mode 100644
index 0000000000..3d9cc5157e
--- /dev/null
+++ b/sqlux/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (sqlux-1.0.5.tar.gz) = 57259f388a3a873475cb1f07d15a2f07e8481e50
+RMD160 (sqlux-1.0.5.tar.gz) = 0ecd01920bcf6a917b9a0c10bc0a210c5a5dcb6a
+SHA512 (sqlux-1.0.5.tar.gz) = ef08ed86163e804e470da19b5f3e45f9fa2a3a4a318e6da3aa0282835c6c877ff89286717805d7c7dbfa8102f5da74d39f1b469b5b2016d75b040e0b7d32c2f6
+Size (sqlux-1.0.5.tar.gz) = 246092 bytes
+SHA1 (patch-CMakeLists.txt) = 0e081bf6c215e83591043d85286319c5af126f0e
diff --git a/sqlux/patches/patch-CMakeLists.txt b/sqlux/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..cfc3a45008
--- /dev/null
+++ b/sqlux/patches/patch-CMakeLists.txt
@@ -0,0 +1,31 @@
+$NetBSD$
+
+* Make common macro defines actually common (beyond Mac/Windows/Linux)
+* Don't unconditionally define _GNU_SOURCE and _XOPEN_SOURCE
+--- CMakeLists.txt.orig	2022-05-02 12:02:01.000000000 -0700
++++ CMakeLists.txt	2022-10-22 22:46:49.797980253 -0700
+@@ -5,19 +5,19 @@
+ message(STATUS "Using toolchain file: ${CMAKE_TOOLCHAIN_FILE}.")
+ 
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLINUX -DUSE_IOSZ -DDO_GRAB \
+-	-DNEWSERIAL -DSH_MEM -DXSCREEN \
+-    -DEVM_SCR -D_GNU_SOURCE -D_XOPEN_SOURCE -DMOUSE -DQVFS")
++	-DNEWSERIAL -DSH_MEM -DXSCREEN -DSOUND -DIPDEV \
++    -DEVM_SCR -DMOUSE -DQVFS")
+ 
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+-	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-implicit-function-declaration -DSOUND -DIPDEV -DSERIAL -DUX_WAIT -DNEWPTY")
++	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-implicit-function-declaration -DSERIAL -DUX_WAIT -DNEWPTY")
+ endif()
+ 
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+-	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSOUND -DIPDEV -DSERIAL -DUX_WAIT -DNEWPTY")
++	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSERIAL -DUX_WAIT -DNEWPTY")
+ endif()
+ 
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+-	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSOUND -DIPDEV -DNO_LOCK -DNO_FORK -D_POSIX -mwindows")
++	set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNO_LOCK -DNO_FORK -D_POSIX -mwindows")
+ endif()
+ 
+ if(${CMAKE_BUILD_TYPE} MATCHES "Debug")


Home | Main Index | Thread Index | Old Index