diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-fps/prboom | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-fps/prboom')
-rw-r--r-- | games-fps/prboom/Manifest | 2 | ||||
-rw-r--r-- | games-fps/prboom/files/prboom-2.5.0-libpng14.patch | 22 | ||||
-rw-r--r-- | games-fps/prboom/files/prboom-2.5.0-nvidia-test.c | 3 | ||||
-rw-r--r-- | games-fps/prboom/files/prboom-2.5.0-nvidia.patch | 48 | ||||
-rw-r--r-- | games-fps/prboom/metadata.xml | 8 | ||||
-rw-r--r-- | games-fps/prboom/prboom-2.5.0.ebuild | 80 |
6 files changed, 163 insertions, 0 deletions
diff --git a/games-fps/prboom/Manifest b/games-fps/prboom/Manifest new file mode 100644 index 000000000000..f7470daefd9e --- /dev/null +++ b/games-fps/prboom/Manifest @@ -0,0 +1,2 @@ +DIST prboom-2.5.0.tar.gz 1049505 SHA256 226c1c470f8cc983327536404f405a1d026cf0a5188c694a1243cc8630014bae SHA512 9e25b55047c66931ea010751fb64484e466395b04dfb738ed9dc515bd8b78e1124a337da33bf7be6e97280016ed1f01c852d8bc12704bdb82074488d7b5d2894 WHIRLPOOL 1aa458514266c107a5c4883b970cdaac157ded0ef4348e6666647e9426a8f28c4c98ff32de93be20c3d0dc3dd740d725e3c4bd9c767bb0aa3c3f7752a719a5a8 +DIST prboom.png 4254 SHA256 ed79c4712b57b0c5e8ef975412e22d6936fa4b62657707e8f1cda63302008542 SHA512 72631d253c6754484ab1c96c953ed37a734197fa851dc88156fd3d4fb8396a77347805233481470b936a504d08e06d994de1eba613e6bf70a89db8fc7ee9b1ac WHIRLPOOL b7e91c2b43ea57951dfcf0ed2b9916c8053d75d0119965079c2806ba1d9a9c13e36506dd65cd82e01e1e2f64b276dbe0bac2c2eaf2a3f80a26ab777feeeca75e diff --git a/games-fps/prboom/files/prboom-2.5.0-libpng14.patch b/games-fps/prboom/files/prboom-2.5.0-libpng14.patch new file mode 100644 index 000000000000..d0e3c48299f0 --- /dev/null +++ b/games-fps/prboom/files/prboom-2.5.0-libpng14.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/show_bug.cgi?id=308739 + +--- src/SDL/i_sshot.c ++++ src/SDL/i_sshot.c +@@ -231,7 +231,7 @@ + if (fp) + { + png_struct *png_ptr = png_create_write_struct( +- PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn); ++ PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn); + + if (png_ptr) + { +@@ -279,7 +279,7 @@ + break; + } + } +- png_destroy_write_struct(&png_ptr, png_infopp_NULL); ++ png_destroy_write_struct(&png_ptr, NULL); + } + fclose(fp); + } diff --git a/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c b/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c new file mode 100644 index 000000000000..f9e4bd700f8a --- /dev/null +++ b/games-fps/prboom/files/prboom-2.5.0-nvidia-test.c @@ -0,0 +1,3 @@ +#include <SDL/SDL_opengl.h> +PFNGLCOLORTABLEEXTPROC glColorTableEXT; +int main(){return 0;} diff --git a/games-fps/prboom/files/prboom-2.5.0-nvidia.patch b/games-fps/prboom/files/prboom-2.5.0-nvidia.patch new file mode 100644 index 000000000000..2b7aa9b32d46 --- /dev/null +++ b/games-fps/prboom/files/prboom-2.5.0-nvidia.patch @@ -0,0 +1,48 @@ +--- src/gl_intern.h.orig 2003-09-21 16:39:30.247451624 -0400 ++++ src/gl_intern.h 2003-09-21 16:39:41.610724144 -0400 +@@ -84,6 +84,6 @@ + #define min(a,b) ((a)<(b)?(a):(b)) + #endif + +-PFNGLCOLORTABLEEXTPROC gld_ColorTableEXT; ++//PFNGLCOLORTABLEEXTPROC gld_ColorTableEXT; + + #endif // _GL_INTERN_H +--- src/gl_main.c.orig 2003-09-21 16:39:55.436622288 -0400 ++++ src/gl_main.c 2003-09-21 16:43:00.943420968 -0400 +@@ -285,6 +285,7 @@ + + if (strcasecmp(extension, "GL_EXT_texture_filter_anisotropic") == 0) + gl_texture_filter_anisotropic = true; ++/* + else if (strcasecmp(extension, "GL_EXT_paletted_texture") == 0) { + if (gl_use_paletted_texture) { + gl_paletted_texture = true; +@@ -304,6 +305,7 @@ + else + lprintf(LO_INFO,"using GL_EXT_shared_texture_palette\n",glGetString(GL_VENDOR)); + } ++*/ + + extension = p; + } while (*extension != '\0'); +@@ -761,7 +763,7 @@ + pal[transparent_pal_index*4+1]=0; + pal[transparent_pal_index*4+2]=0; + pal[transparent_pal_index*4+3]=0; +- gld_ColorTableEXT(GL_SHARED_TEXTURE_PALETTE_EXT, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal); ++// gld_ColorTableEXT(GL_SHARED_TEXTURE_PALETTE_EXT, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal); + W_UnlockLumpName("PLAYPAL"); + } else { + if (palette>0) +--- src/gl_texture.c.orig 2003-09-21 16:43:18.450759448 -0400 ++++ src/gl_texture.c 2003-09-21 16:43:39.549551944 -0400 +@@ -178,7 +178,7 @@ + pal[transparent_pal_index*4+1]=0; + pal[transparent_pal_index*4+2]=0; + pal[transparent_pal_index*4+3]=0; +- gld_ColorTableEXT(target, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal); ++// gld_ColorTableEXT(target, GL_RGBA, 256, GL_RGBA, GL_UNSIGNED_BYTE, pal); + W_UnlockLumpName("PLAYPAL"); + } + diff --git a/games-fps/prboom/metadata.xml b/games-fps/prboom/metadata.xml new file mode 100644 index 000000000000..e8df2816a78c --- /dev/null +++ b/games-fps/prboom/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">prboom</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-fps/prboom/prboom-2.5.0.ebuild b/games-fps/prboom/prboom-2.5.0.ebuild new file mode 100644 index 000000000000..edba6f253fc4 --- /dev/null +++ b/games-fps/prboom/prboom-2.5.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="Port of ID's doom to SDL and OpenGL" +HOMEPAGE="http://prboom.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm ~ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[joystick,video] + media-libs/sdl-mixer + media-libs/sdl-net + !<games-fps/lsdldoom-1.5 + virtual/opengl + virtual/glu" +RDEPEND="${DEPEND}" + +src_prepare() { + ebegin "Detecting NVidia GL/prboom bug" + $(tc-getCC) "${FILESDIR}"/${P}-nvidia-test.c 2> /dev/null + local ret=$? + eend ${ret} "NVidia GL/prboom bug found ;(" + [ ${ret} -eq 0 ] || epatch "${FILESDIR}"/${P}-nvidia.patch + epatch "${FILESDIR}"/${P}-libpng14.patch + sed -i \ + -e '/^gamesdir/ s/\/games/\/bin/' \ + src/Makefile.in \ + || die "sed failed" + sed -i \ + -e 's/: install-docDATA/:/' \ + -e '/^SUBDIRS/ s/doc//' \ + Makefile.in \ + || die "sed failed" + sed -i \ + -e 's:-ffast-math $CFLAGS_OPT::' \ + configure \ + || die "sed configure failed" +} + +src_configure() { + # leave --disable-cpu-opt in otherwise the configure script + # will append -march=i686 and crap ... let the user's CFLAGS + # handle this ... + egamesconf \ + --enable-gl \ + --disable-i386-asm \ + --disable-cpu-opt \ + --with-waddir="${GAMES_DATADIR}/doom-data" +} + +src_install() { + default + emake DESTDIR="${D}" install + doman doc/*.{5,6} + dodoc doc/README.* doc/*.txt + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} "PrBoom" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "To play the original Doom levels, place doom.wad and/or doom2.wad" + elog "into ${GAMES_DATADIR}/doom-data" + elog "Then run ${PN} accordingly." + elog + elog "doom1.wad is the shareware demo wad consisting of 1 episode," + elog "and doom.wad is the full Doom 1 set of 3 episodes" + elog "(or 4 in the Ultimate Doom wad)." + elog + elog "You can even emerge doom-data and/or freedoom to play for free." +} |