pkgsrc-WIP-changes archive

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

Add xinvaders3d, a vector-graphics based Space Invaders clone



Module Name:	pkgsrc-wip
Committed By:	Matthew Mondor <mmondor%pulsar-zone.net@localhost>
Pushed By:	mmondor
Date:		Sun Nov 17 22:42:15 2019 +0000
Changeset:	981061565036e5a4ccd563d284dfdafe9bb8ee6b

Added Files:
	xinvaders3d/DESCR
	xinvaders3d/Makefile
	xinvaders3d/PLIST
	xinvaders3d/distinfo
	xinvaders3d/patches/patch-aa

Log Message:
Add xinvaders3d, a vector-graphics based Space Invaders clone

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

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

diffstat:
 xinvaders3d/DESCR            |  2 ++
 xinvaders3d/Makefile         | 26 ++++++++++++++++++++++++++
 xinvaders3d/PLIST            |  5 +++++
 xinvaders3d/distinfo         |  6 ++++++
 xinvaders3d/patches/patch-aa | 26 ++++++++++++++++++++++++++
 5 files changed, 65 insertions(+)

diffs:
diff --git a/xinvaders3d/DESCR b/xinvaders3d/DESCR
new file mode 100644
index 0000000000..14ec77c0a0
--- /dev/null
+++ b/xinvaders3d/DESCR
@@ -0,0 +1,2 @@
+XInvaders 3D is a vector-graphics Space Invaders clone
+for the X Window System.
diff --git a/xinvaders3d/Makefile b/xinvaders3d/Makefile
new file mode 100644
index 0000000000..c60d2b0f63
--- /dev/null
+++ b/xinvaders3d/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.35 2012/10/06 11:55:01 asau Exp $
+
+DISTNAME=		xinvaders3d-1.3.6
+PKGREVISION=		1
+CATEGORIES=		games x11
+MASTER_SITES=		https://www.ibiblio.org/pub/Linux/games/arcade/invaders/
+EXTRACT_SUFX=		.src.tar.gz
+LICENSE=		gnu-gpl-v2
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+COMMENT=		Vector-graphics Space Invaders clone for X11
+
+WRKSRC=			${WRKDIR}/xinvaders3d
+INSTALLATION_DIRS=	bin share/xinvaders3d
+
+do-install:
+	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xinvaders3d
+	${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/xinvaders3d
+	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/xinvaders3d
+	${INSTALL_DATA} ${WRKSRC}/xinvaders3d.lsm ${DESTDIR}${PREFIX}/share/xinvaders3d
+	${INSTALL_PROGRAM} ${WRKSRC}/xinv3d ${DESTDIR}${PREFIX}/bin/xinv3d
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xinvaders3d/PLIST b/xinvaders3d/PLIST
new file mode 100644
index 0000000000..eafe73f060
--- /dev/null
+++ b/xinvaders3d/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/xinv3d
+share/xinvaders3d/COPYING
+share/xinvaders3d/README
+share/xinvaders3d/xinvaders3d.lsm
diff --git a/xinvaders3d/distinfo b/xinvaders3d/distinfo
new file mode 100644
index 0000000000..b61c55005b
--- /dev/null
+++ b/xinvaders3d/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (xinvaders3d-1.3.6.src.tar.gz) = 680c81416f25548e373fdaefa1a8eb71112e049d
+RMD160 (xinvaders3d-1.3.6.src.tar.gz) = df7174f8ca1a74407462e9fe573ab35aa0ef8ca3
+Size (xinvaders3d-1.3.6.src.tar.gz) = 37124 bytes
+SHA1 (patch-aa) = 1503ff3f203f50f4aa8b761deb068eda5fb59afa
diff --git a/xinvaders3d/patches/patch-aa b/xinvaders3d/patches/patch-aa
new file mode 100644
index 0000000000..2e9aa0629f
--- /dev/null
+++ b/xinvaders3d/patches/patch-aa
@@ -0,0 +1,26 @@
+--- Makefile.orig	Wed Oct 11 17:32:13 2000
++++ Makefile	Sun Nov 17 17:08:33 2019
+@@ -1,18 +1,18 @@
+ all: game
+ 
+-CC = gcc
+-XLIB = -L/usr/X11R6/lib -I/usr/X11R6/include
++CC?= gcc
++XLIB = -L$(X11BASE)/lib -I$(X11BASE)/include
+-LIBS = -lm -lX11
++LIBS = -lm -lX11 -Wl,-rpath,$(X11BASE)/lib
+ OBJS = game.o aliens.o player.o effects.o \
+ object.o camera.o main-x11.o vec4x1.o mat4x4.o
+ DEPENDS = 
+ #CFLAGS = -g -Wall -pedantic -ansi
+-CFLAGS = -ansi
++CFLAGS+= -ansi
+ #OPTIONS = -D_GNU_SOURCE -DGAME_LINUX_X11 -DGAME_DEBUG
+ OPTIONS= -DGAME_LINUX_X11
+ 
+ .c.o: $(DEPENDS)
+-	$(CC) -c $(CFLAGS) $(OPTIONS) $< -o $@
++	$(CC) -c $(CFLAGS) $(OPTIONS) $(XLIB) $< -o $@
+ 
+ game: $(OBJS) $(DEPENDS)
+ 	$(CC) -o xinv3d $(OBJS) $(XLIB) $(LIBS) $(OPTIONS)


Home | Main Index | Thread Index | Old Index