pkgsrc-WIP-changes archive

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

cosmo-engine: import cosmo-engine (git snapshot) as wip/cosmo-engine



Module Name:	pkgsrc-wip
Committed By:	Yorick Hardy <yorickhardy%gmail.com@localhost>
Pushed By:	yhardy
Date:		Wed Jan 29 20:34:18 2020 +0200
Changeset:	55d51b9f5fa6bcfb2dc16d1623cbbf4d402b5d2d

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

Log Message:
cosmo-engine: import cosmo-engine (git snapshot) as wip/cosmo-engine

A new game engine to play the MS-DOS game "Cosmo's Cosmic Adventure"
on modern systems.

A copy of the original Cosmo game (or shareware version) is required
to play.

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

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

diffstat:
 Makefile                                  |  1 +
 cosmo-engine/DESCR                        |  5 +++++
 cosmo-engine/Makefile                     | 29 +++++++++++++++++++++++++++++
 cosmo-engine/PLIST                        |  2 ++
 cosmo-engine/distinfo                     |  7 +++++++
 cosmo-engine/patches/patch-CMakeLists.txt | 25 +++++++++++++++++++++++++
 6 files changed, 69 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index c2e0eae8d3..6edd22ad4d 100644
--- a/Makefile
+++ b/Makefile
@@ -489,6 +489,7 @@ SUBDIR+=	coreclr-git
 SUBDIR+=	corefx-git
 SUBDIR+=	corert-git
 SUBDIR+=	cortex-var
+SUBDIR+=	cosmo-engine
 SUBDIR+=	coturn
 SUBDIR+=	courierpassd
 SUBDIR+=	coverity-analysis-bin
diff --git a/cosmo-engine/DESCR b/cosmo-engine/DESCR
new file mode 100644
index 0000000000..943315ff2c
--- /dev/null
+++ b/cosmo-engine/DESCR
@@ -0,0 +1,5 @@
+A new game engine to play the MS-DOS game "Cosmo's Cosmic Adventure"
+on modern systems.
+
+A copy of the original Cosmo game (or shareware version) is required
+to play.
diff --git a/cosmo-engine/Makefile b/cosmo-engine/Makefile
new file mode 100644
index 0000000000..a1980d58fa
--- /dev/null
+++ b/cosmo-engine/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	cosmo-engine
+GITHUB_TAG=	c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}-0.0
+PKGREVISION=	1
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=yuv422/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/yuv422/cosmo-engine/
+COMMENT=	Game engine to play Cosmo's Cosmic Adventure
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=		${WRKDIR}/cosmo-engine-c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+INSTALLATION_DIRS+=	bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/cosmo_engine ${DESTDIR}${PREFIX}/bin
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cosmo-engine/PLIST b/cosmo-engine/PLIST
new file mode 100644
index 0000000000..6b0bdf4eef
--- /dev/null
+++ b/cosmo-engine/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/cosmo_engine
diff --git a/cosmo-engine/distinfo b/cosmo-engine/distinfo
new file mode 100644
index 0000000000..ee0a2f16f0
--- /dev/null
+++ b/cosmo-engine/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (cosmo-engine/c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44-c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44.zip) = e0b01810659c7766ae06105bb07f6d9c47053c02
+RMD160 (cosmo-engine/c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44-c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44.zip) = 099bcd181732f57e8086a7c9d24eb442c8368767
+SHA512 (cosmo-engine/c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44-c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44.zip) = 2909b472d8d1d48eccb367c164e5f1402f82a5b2bc371ea2a17a67d3d17413968ae6d2eeeefac7ba396f53d85d2099fb178d7c1651f165f74b6fb61c56a4f907
+Size (cosmo-engine/c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44-c9d6aeda06bb88388fda5e4a9e1c93e624a0ea44.zip) = 183736 bytes
+SHA1 (patch-CMakeLists.txt) = 1c5cf8740637fd45baa0853052343bb317cd0966
diff --git a/cosmo-engine/patches/patch-CMakeLists.txt b/cosmo-engine/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..bf71fc0b71
--- /dev/null
+++ b/cosmo-engine/patches/patch-CMakeLists.txt
@@ -0,0 +1,25 @@
+$NetBSD$
+
+Support BSDs.
+
+--- CMakeLists.txt.orig	2020-01-29 14:15:47.010539816 +0000
++++ CMakeLists.txt
+@@ -42,6 +42,18 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+     TARGET_LINK_LIBRARIES(cosmo_engine dl m ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARIES})
+ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+ 
++IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
++    TARGET_LINK_LIBRARIES(cosmo_engine m ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARIES})
++ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++
++IF(${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
++    TARGET_LINK_LIBRARIES(cosmo_engine m ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARIES})
++ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++
++IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
++    TARGET_LINK_LIBRARIES(cosmo_engine m ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARIES})
++ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
++
+ IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
+     TARGET_LINK_LIBRARIES(cosmo_engine ${SDL2_LIBRARY} ${SDL2_MIXER_LIBRARIES})
+ ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")


Home | Main Index | Thread Index | Old Index