diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-11 08:57:39 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-10-11 08:57:39 +0800 |
commit | c0ad330d7c549da825456a205c290dd22410eaa6 (patch) | |
tree | 09c83b0fe8646f5fcdedb29b96625b3890e63a19 /games | |
parent | ad955b9f57a10f6fbe6a36736dd62de104d755fa (diff) | |
download | freebsd-ports-gnome-c0ad330d7c549da825456a205c290dd22410eaa6.tar.gz freebsd-ports-gnome-c0ad330d7c549da825456a205c290dd22410eaa6.tar.zst freebsd-ports-gnome-c0ad330d7c549da825456a205c290dd22410eaa6.zip |
- Add games/wordwarvi
Word War vi is your basic side-scrolling shoot 'em up '80s style
arcade game. You pilot your "vi"per craft through core memory,
rescuing lost .swp files, avoiding OS defenses, and wiping out those
memory hogging emacs processes. When all the lost .swp files are
rescued, head for the socket which will take you to the next node
in the cluster.
WWW: http://smcameron.github.io/wordwarvi/
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/wordwarvi/Makefile | 43 | ||||
-rw-r--r-- | games/wordwarvi/distinfo | 3 | ||||
-rw-r--r-- | games/wordwarvi/files/patch-Makefile | 43 | ||||
-rw-r--r-- | games/wordwarvi/files/patch-wordwarvi.c | 17 | ||||
-rw-r--r-- | games/wordwarvi/pkg-descr | 8 |
6 files changed, 115 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index cb9e09de33bb..25c0b328d265 100644 --- a/games/Makefile +++ b/games/Makefile @@ -1038,6 +1038,7 @@ SUBDIR += wolfpack SUBDIR += wop SUBDIR += wordplay + SUBDIR += wordwarvi SUBDIR += worldofpadman SUBDIR += wtf SUBDIR += wxlauncher diff --git a/games/wordwarvi/Makefile b/games/wordwarvi/Makefile new file mode 100644 index 000000000000..a1178b9afe96 --- /dev/null +++ b/games/wordwarvi/Makefile @@ -0,0 +1,43 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= wordwarvi +PORTVERSION= 1.0.2 +DISTVERSIONPREFIX= v +CATEGORIES= games + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Side-scrolling shoot'em up '80s style arcade game + +LICENSE= GPLv2+ CC-BY-2.0 CC-BY-SA-3.0 +LICENSE_COMB= multi +LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING + +USE_GITHUB= yes +GH_ACCOUNT= smcameron + +USES= gmake pkgconfig +USE_GNOME= gtk20 + +PORTDOCS= AAA_HOW_TO_MAKE_NEW_LEVELS.txt AUTHORS README changelog.txt +PORTDATA= * +PLIST_FILES= bin/${PORTNAME} \ + man/man6/${PORTNAME}.6.gz + +OPTIONS_DEFINE= SOUND DOCS +OPTIONS_DEFAULT=SOUND + +SOUND_LIB_DEPENDS= libportaudio.so:audio/portaudio \ + libvorbisfile.so:audio/libvorbis +SOUND_MAKE_ARGS_OFF= WITHAUDIO=no + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include <bsd.port.mk> diff --git a/games/wordwarvi/distinfo b/games/wordwarvi/distinfo new file mode 100644 index 000000000000..408101dfe9ce --- /dev/null +++ b/games/wordwarvi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1475776055 +SHA256 (smcameron-wordwarvi-v1.0.2_GH0.tar.gz) = 361d15af6edbe6db032db24de54e8f489a05b230572a8793b9889e2b8308a7ad +SIZE (smcameron-wordwarvi-v1.0.2_GH0.tar.gz) = 8814650 diff --git a/games/wordwarvi/files/patch-Makefile b/games/wordwarvi/files/patch-Makefile new file mode 100644 index 000000000000..8b7dac0f8bd3 --- /dev/null +++ b/games/wordwarvi/files/patch-Makefile @@ -0,0 +1,43 @@ +--- Makefile.orig 2016-03-11 15:16:11 UTC ++++ Makefile +@@ -1,6 +1,6 @@ +-PREFIX=/usr ++PREFIX?=/usr + DATADIR=${PREFIX}/share/wordwarvi +-MANDIR?=${PREFIX}/share/man ++MANDIR?=${PREFIX}/man + MANPAGEDIR=${MANDIR}/man6 + + SCREENSAVERFLAG= +@@ -45,7 +45,7 @@ OPENLASELIBDIR= + endif + + CC ?= gcc +-BUILD_CC ?= gcc ++BUILD_CC ?= ${CC} + + # DEBUG=-g + # DEBUG= +@@ -54,7 +54,8 @@ BUILD_CC ?= gcc + #OPTIMIZE_FLAG= + # OPTIMIZE_FLAG=-O3 + #OPTIMIZE_FLAG=-O3 -pedantic -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security +-CFLAGS ?= -O3 -pedantic ++CFLAGS ?= -O3 ++CFLAGS += -pedantic + OPTIMIZE_FLAG = ${CFLAGS} ${CPPFLAGS} + WARNFLAG=-pedantic -W -Wall + +@@ -116,10 +117,10 @@ wordwarvi.6.gz: wordwarvi.6 + gzip -c wordwarvi.6 > wordwarvi.6.gz + + install: wordwarvi wordwarvi.6.gz +- mkdir -p $(DESTDIR)$(PREFIX)/games ++ mkdir -p $(DESTDIR)$(PREFIX)/bin + mkdir -p $(DESTDIR)$(DATADIR)/sounds + mkdir -p $(DESTDIR)$(MANPAGEDIR) +- install -p -m 755 wordwarvi $(DESTDIR)$(PREFIX)/games ++ install -p -m 755 wordwarvi $(DESTDIR)$(PREFIX)/bin + install -p -m 644 sounds/*.ogg $(DESTDIR)$(DATADIR)/sounds + install -p -m 644 wordwarvi.6.gz $(DESTDIR)$(MANPAGEDIR) + diff --git a/games/wordwarvi/files/patch-wordwarvi.c b/games/wordwarvi/files/patch-wordwarvi.c new file mode 100644 index 000000000000..2fbcc69903f7 --- /dev/null +++ b/games/wordwarvi/files/patch-wordwarvi.c @@ -0,0 +1,17 @@ +--- wordwarvi.c.orig 2016-03-11 15:16:11 UTC ++++ wordwarvi.c +@@ -11559,12 +11559,14 @@ void start_level() + srandom(level.random_seed); + generate_terrain(&terrain); + ++#if 0 + add_buildings(&terrain);/* Some FreeBSD users report that */ + /*add_buildings() causes crashes. */ + /* Commenting this out on FreeBSD */ + /* may help, but, no buildings. */ + /* I've looked at the code, but */ + /* don't see anything wrong with it. */ ++#endif + add_humanoids(&terrain); + add_bridges(&terrain); + add_socket(&terrain); diff --git a/games/wordwarvi/pkg-descr b/games/wordwarvi/pkg-descr new file mode 100644 index 000000000000..805ee2ff5771 --- /dev/null +++ b/games/wordwarvi/pkg-descr @@ -0,0 +1,8 @@ +Word War vi is your basic side-scrolling shoot 'em up '80s style +arcade game. You pilot your "vi"per craft through core memory, +rescuing lost .swp files, avoiding OS defenses, and wiping out those +memory hogging emacs processes. When all the lost .swp files are +rescued, head for the socket which will take you to the next node +in the cluster. + +WWW: http://smcameron.github.io/wordwarvi/ |