pkgsrc-WIP-changes archive

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

Add opendune.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Sat Sep 21 14:18:16 2019 +0100
Changeset:	739684a46c2b35fb16741f53988e392178ae4830

Modified Files:
	Makefile
Added Files:
	opendune/DESCR
	opendune/Makefile
	opendune/PLIST
	opendune/TODO
	opendune/distinfo
	opendune/options.mk

Log Message:
Add opendune.

OpenDUNE is an open source re-creation of the popular game "Dune II",
originally made by Westwood Studios, and released by Virgin Entertainment.

It attempts to re-create the original game and apply modern technology to
it to allow it to be run natively on most operating systems.

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

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

diffstat:
 Makefile            |  1 +
 opendune/DESCR      |  5 +++++
 opendune/Makefile   | 41 +++++++++++++++++++++++++++++++++++++++++
 opendune/PLIST      |  6 ++++++
 opendune/TODO       |  4 ++++
 opendune/distinfo   |  6 ++++++
 opendune/options.mk | 21 +++++++++++++++++++++
 7 files changed, 84 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 270657eafb..f44e24c5f8 100644
--- a/Makefile
+++ b/Makefile
@@ -2498,6 +2498,7 @@ SUBDIR+=	openca
 SUBDIR+=	opencascade
 SUBDIR+=	openclonk
 SUBDIR+=	opendchub
+SUBDIR+=	opendune
 SUBDIR+=	openerp-server
 SUBDIR+=	openfodder
 SUBDIR+=	openfodder-data
diff --git a/opendune/DESCR b/opendune/DESCR
new file mode 100644
index 0000000000..8ef00948ca
--- /dev/null
+++ b/opendune/DESCR
@@ -0,0 +1,5 @@
+OpenDUNE is an open source re-creation of the popular game "Dune II",
+originally made by Westwood Studios, and released by Virgin Entertainment.
+
+It attempts to re-create the original game and apply modern technology to
+it to allow it to be run natively on most operating systems.
diff --git a/opendune/Makefile b/opendune/Makefile
new file mode 100644
index 0000000000..9f84f30a2b
--- /dev/null
+++ b/opendune/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD$
+
+DISTNAME=	opendune-0.9
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=OpenDUNE/}
+GITHUB_PROJECT=	OpenDUNE
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/OpenDUNE
+COMMENT=	Open source recreation of Dune II
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+USE_TOOLS+=	gmake pkg-config
+HAS_CONFIGURE=	yes
+
+CONFIGURE_ARGS+=	--install-dir=${DESTDIR}
+CONFIGURE_ARGS+=	--prefix-dir=${PREFIX}
+CONFIGURE_ARGS+=	--binary-dir=bin
+CONFIGURE_ARGS+=	--data-dir=share/opendune
+CONFIGURE_ARGS+=	--icon-dir=share/pixmaps
+
+.include "../../mk/oss.buildlink3.mk"
+.if ${OSS_TYPE} != "none"
+CONFIGURE_ARGS+=	--with-oss
+.else
+CONFIGURE_ARGS+=	--without-oss
+.endif
+
+.if ${OSS_TYPE} != "none"
+SUBST_CLASSES+=		oss
+SUBST_STAGE.oss=	pre-configure
+SUBST_MESSAGE.oss=	Correct path to OSS device.
+SUBST_FILES.oss+=	src/audio/dsp_oss.c
+SUBST_SED.oss+=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
+.endif
+
+.include "options.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../graphics/SDL2_image/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/opendune/PLIST b/opendune/PLIST
new file mode 100644
index 0000000000..d5fe21f211
--- /dev/null
+++ b/opendune/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/opendune
+share/doc/opendune/COPYING
+share/doc/opendune/README.txt
+share/doc/opendune/enhancement.txt
+@pkgdir share/opendune
diff --git a/opendune/TODO b/opendune/TODO
new file mode 100644
index 0000000000..a28251c66c
--- /dev/null
+++ b/opendune/TODO
@@ -0,0 +1,4 @@
+Runs.
+Its handling of the data directory is strange (it seems to need a folder called "data" in the current dir - not ideal).
+There's no way to skip the intro and selecting a game mode with the mouse doesn't seem to work.
+Needs a .desktop file, etc.
diff --git a/opendune/distinfo b/opendune/distinfo
new file mode 100644
index 0000000000..6d8f8d652a
--- /dev/null
+++ b/opendune/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (opendune-0.9.tar.gz) = 11d60f850cbcba678e5454c14b77e4baf797703e
+RMD160 (opendune-0.9.tar.gz) = e5b8877609f03f96aaf6ac6b706566f78d23a192
+SHA512 (opendune-0.9.tar.gz) = 29aad45ee1a12a152044a0db769b4ee959e52a6cb2ef84e01669d31c336ccc59e98580996bed63b7f09395ebaca0a29b5665e21519e01bf65b6e4fbb2bad4731
+Size (opendune-0.9.tar.gz) = 490231 bytes
diff --git a/opendune/options.mk b/opendune/options.mk
new file mode 100644
index 0000000000..bc7ceb3016
--- /dev/null
+++ b/opendune/options.mk
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.3 2019/09/16 22:46:20 nia Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.mumble
+PKG_SUPPORTED_OPTIONS=		alsa pulseaudio
+PKG_SUGGESTED_OPTIONS.Linux=	alsa
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Malsa)
+CONFIGURE_ARGS+=	--with-asound
+.include "../../audio/alsa-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--without-asound
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+CONFIGURE_ARGS+=	--with-pulse
+.include "../../audio/pulseaudio/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--without-pulse
+.endif


Home | Main Index | Thread Index | Old Index