diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-fps/industri |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-fps/industri')
-rw-r--r-- | games-fps/industri/Manifest | 10 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-exec-stack.patch | 36 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-glext.patch | 18 | ||||
-rw-r--r-- | games-fps/industri/files/industri-1.01-ldflags.patch | 20 | ||||
-rw-r--r-- | games-fps/industri/files/industri.pretty | 2 | ||||
-rw-r--r-- | games-fps/industri/industri-1.01.ebuild | 80 | ||||
-rw-r--r-- | games-fps/industri/metadata.xml | 20 |
7 files changed, 186 insertions, 0 deletions
diff --git a/games-fps/industri/Manifest b/games-fps/industri/Manifest new file mode 100644 index 000000000000..ce4559d49dee --- /dev/null +++ b/games-fps/industri/Manifest @@ -0,0 +1,10 @@ +AUX industri-1.01-exec-stack.patch 642 SHA256 d04cbf31f16929b27040ea9f4e599db2ea4e14b696708034ae523ff406de011c SHA512 c23b38be46b3b692f7b04415b2893c9884d76e627910f9e93579c286e2142fd36bff0c335beffd541226920ce22dfbdb6ffc51537b42afe6d660466905c7be3e WHIRLPOOL 520532b61452d2ab910fc7a43bd485fa46b920a38abc1f1368be877182a2b4e0ab6e29d9bb4528a535ad20a88f2353cd14c525f93c48d3e2930ce216cd88c936 +AUX industri-1.01-glext.patch 983 SHA256 d7d877c58d4a77db421e21a12447ae38b208cfa201663a91355515e48f9843d9 SHA512 0d17e3c54fdce139a25b9c51892cf7d9c9b04b0fe2d4f543cabdce141cfe321892dbc630f40ba3e75ffb1612f6c1df5d4108f95d3a06bce3b7f49601cbb2282a WHIRLPOOL 76fa339f233afb70e58e2449649234ccfd12991e48a1266ea07a4d70f158c8bdb423f2169c961bc2aa1ac58104ecb5d82f402d0b1df94755081b1635e64693b0 +AUX industri-1.01-ldflags.patch 840 SHA256 a637626ff4d60619d9dc4751af0ce35dcecbc64c68779efc7e826b76f2a2988c SHA512 fc45f5edb2dfabf8815186c66cf071f119cb0c83cd785fa3be083bbcb1be11c1c898f73f7b1b3d3af83c95daddbc0fe226cfaa0ed9c0b9776d718a10562b496e WHIRLPOOL ae0eee8b55a30802f56f0f99b33e5b053feaae1bd3d290a2993a9f0fd6cfa734733fd7954989160418c6c694d48a25ad2bf23d987b28626646594084f9be6eef +AUX industri.pretty 42 SHA256 127a00f5ce37b1502a09d049d9ad32e468c398ba0a98fbf66142d1408c382ba3 SHA512 4cd0732b3a9cc3a48a759b68b03c249c854ce90234984ca770f8e3fc61e7bd01651012d64320d9114eb4567ccab254b183af15bdce51dee25a71c35613013df1 WHIRLPOOL 26d52e207a2bc52febf5c8b722e97da7d287492f97025150e4e1db5ca0e84d76d4aa947d57ecf8eb978ae7d67ce905ba428f264d2dc14364f67275d9352c4483 +DIST industri-1.00.zip 30339989 SHA256 6c0761c6eacb501fffe37f9be4b9e2ae62074f8714c4ef36251241aba6b90652 SHA512 e0eea9d881819fbcc039d91ed613bb4603e76302c892ed315bf1535b023173b742f4b881dc345f9eaca255a5531e3afc5584c2da948a9c6127c9a815a6bfcae9 WHIRLPOOL ccdff4e5323bfb0cc94fe8809c7170b2b5f2153084536709114f39ddc4f2b3246a22b9022da3ac9630332987692711304e65c56eeba4632cbfa52f68c26824a8 +DIST industri_BIN-1.01-src.tar.gz 1086838 SHA256 b702b819c0b99cc9a7f8e9ec89c9a58812212826f592e3594904b4cd3cdd09f8 SHA512 023dfcc72faa685a042afcf66b21e040b21c881f3d936af9e4da3e7836320a262c014296ab6fa564d93038c34a106f70f7cc8dd760c6b79e11689df92bff3625 WHIRLPOOL a02883991ceb2980ea1f509202987dd9c3c0d674c03b4d687d0ab3780b0ec58aabf60684fd9b63004b8d0683fe849b06ec2d81a1aa59753041350b89dbd74894 +EBUILD industri-1.01.ebuild 1906 SHA256 73f625c63e255a408d31c74d0ba24099fd2151267335de1294f92d0dac70d385 SHA512 56527881b478f50b7102c0794e136699cdf7d1c13c9e9cd18f0d1f68ed81990eff46bddb2cdbc462b4adc0ddd143f8f0f4b23c3aee75ecfd63331cd9dfac5712 WHIRLPOOL d9226b0ff8fd7ae75823b05cba5b918669a1f57272633430d527f4ab97974b40d6ed7065df22c161117867b22517b964ccdc96c1d53f01db56b377008a8e0302 +MISC ChangeLog 3016 SHA256 d86280042e94b1aaa9ce895142e6bf7650cfbc91e2cb67d4e52e8347806fa560 SHA512 f61e08c584a57dc52c63ba4a9de9280c2450789db8b13944283588d55c408ab477d57ed21a460f5372f25a277e1d52b6d851761c9bddf8e6c998d80a0a3c4c38 WHIRLPOOL a0ba2304daea77a2e48ef8acb3219f51d768521326e06042670fda9af5853e91fe2006bc7f6d00bf7ff6f0e9e1494eda7ce15803181af19f6af3afdd22d388ca +MISC ChangeLog-2015 1764 SHA256 91b8a3e9e94bfa43053ff687686e0fe7f3256d7b025728e89ee6362df7fa0d7f SHA512 0e8cf9d55c35765c6078d5d89689889c84ab0a33865dc2b595e170da1947f483e9a6f50ea411194b158fb466e877d3c04bde57ec616001cb50a981ed52b5ca06 WHIRLPOOL 5742f3bd93bff3a144a6515ba7e8effe7fe99f532a6b78347a81782873ef4bea81619766e7ddf81c354bed8db005f797192c2e0998624eb592016d89c7b05d26 +MISC metadata.xml 753 SHA256 5b0cdf5b998b1ccca847cac4c6efc167f7d12b9e386d2ab452de3e1a679fee8d SHA512 fe652528480dd111ae034805ffe48a75682fef68562e8ad55218f0b41b3ab05fd99d1b33b0959a09ed3fad97fe66d8171efd8e79f5472956aa42ac3263e6f9b0 WHIRLPOOL 56094ca7a7467efe2b31a4dde900e2cf0c83d37c861fc4f9c3363e3dd644663a4e05079c775f5e62318a6d5be8a6ca60a06a5979f5e18b6c9f7976a04628e585 diff --git a/games-fps/industri/files/industri-1.01-exec-stack.patch b/games-fps/industri/files/industri-1.01-exec-stack.patch new file mode 100644 index 000000000000..bc74e951fe6a --- /dev/null +++ b/games-fps/industri/files/industri-1.01-exec-stack.patch @@ -0,0 +1,36 @@ +--- math.s ++++ math.s +@@ -416,3 +416,6 @@ + call C(BOPS_Error) + + #endif // id386 ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- snd_mixa.s ++++ snd_mixa.s +@@ -216,3 +216,6 @@ + + #endif // id386 + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- sys_dosa.s ++++ sys_dosa.s +@@ -93,3 +93,6 @@ + + ret + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- worlda.s ++++ worlda.s +@@ -142,3 +142,6 @@ + + #endif // id386 + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-fps/industri/files/industri-1.01-glext.patch b/games-fps/industri/files/industri-1.01-glext.patch new file mode 100644 index 000000000000..8a5042e431f2 --- /dev/null +++ b/games-fps/industri/files/industri-1.01-glext.patch @@ -0,0 +1,18 @@ +--- glquake.h.old 2011-04-29 12:36:53.000000000 +0200 ++++ glquake.h 2011-04-29 12:44:39.000000000 +0200 +@@ -977,6 +977,7 @@ + #define GL_MAP2_VERTEX_ATTRIB15_4_NV 0x867F + + /* NV_vertex_program */ ++#ifndef GL_NV_vertex_program + typedef GLboolean (APIENTRY * PFNGLAREPROGRAMSRESIDENTNVPROC) (GLsizei n, const GLuint *programs, GLboolean *residences); + typedef void (APIENTRY * PFNGLBINDPROGRAMNVPROC) (GLenum target, GLuint id); + typedef void (APIENTRY * PFNGLDELETEPROGRAMSNVPROC) (GLsizei n, const GLuint *programs); +@@ -1040,6 +1041,7 @@ + typedef void (APIENTRY * PFNGLVERTEXATTRIBS4FVNVPROC) (GLuint index, GLsizei count, const GLfloat *v); + typedef void (APIENTRY * PFNGLVERTEXATTRIBS4SVNVPROC) (GLuint index, GLsizei count, const GLshort *v); + typedef void (APIENTRY * PFNGLVERTEXATTRIBS4UBVNVPROC) (GLuint index, GLsizei count, const GLubyte *v); ++#endif + + extern PFNGLAREPROGRAMSRESIDENTNVPROC qglAreProgramsResidentNV ; + extern PFNGLBINDPROGRAMNVPROC qglBindProgramNV ; diff --git a/games-fps/industri/files/industri-1.01-ldflags.patch b/games-fps/industri/files/industri-1.01-ldflags.patch new file mode 100644 index 000000000000..987d464f6b48 --- /dev/null +++ b/games-fps/industri/files/industri-1.01-ldflags.patch @@ -0,0 +1,20 @@ +--- linux/Makefile.old 2010-10-13 11:37:27.000000000 +0200 ++++ linux/Makefile 2010-10-13 11:38:20.000000000 +0200 +@@ -42,7 +42,7 @@ + RELEASE_CFLAGS = $(BASE_CFLAGS) -O2 -march=pentium4 -pipe -msse -mfpmath=sse \ + -fomit-frame-pointer -fexpensive-optimizations + DEBUG_CFLAGS = $(BASE_CFLAGS) -g +-LDFLAGS = -lm -ldl $(X11_LIBS) $(OPENGL_LIBS) $(PNG_LIBS) $(OPENAL_LIBS) ++LDLIBS = -lm -ldl $(X11_LIBS) $(OPENGL_LIBS) $(PNG_LIBS) $(OPENAL_LIBS) + + DO_GL_CC = $(CC) $(CFLAGS) -o $@ -c $< + DO_GL_AS = $(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $< +@@ -156,7 +156,7 @@ + + + $(BUILDDIR)/bin/industri.run : $(GLQUAKE_OBJS) +- $(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(LDFLAGS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(LDLIBS) + + $(BUILDDIR)/glquake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c + $(DO_GL_CC) diff --git a/games-fps/industri/files/industri.pretty b/games-fps/industri/files/industri.pretty new file mode 100644 index 000000000000..b328c803b9df --- /dev/null +++ b/games-fps/industri/files/industri.pretty @@ -0,0 +1,2 @@ +#!/bin/sh +exec industri +sh_glares 1 "$@" diff --git a/games-fps/industri/industri-1.01.ebuild b/games-fps/industri/industri-1.01.ebuild new file mode 100644 index 000000000000..afffb89d9410 --- /dev/null +++ b/games-fps/industri/industri-1.01.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="Quake/Tenebrae based, single player game" +HOMEPAGE="http://industri.sourceforge.net/" +SRC_URI="mirror://sourceforge/industri/industri_BIN-${PV}-src.tar.gz + mirror://sourceforge/industri/industri-1.00.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="cdinstall" + +RDEPEND="virtual/opengl + x11-libs/libXxf86dga + x11-libs/libXext + x11-libs/libX11 + x11-libs/libXxf86vm + media-libs/libpng:0 + cdinstall? ( games-fps/quake1-data )" +DEPEND="${RDEPEND} + x11-proto/xf86dgaproto + x11-proto/xextproto + x11-proto/xf86vidmodeproto + x11-proto/xproto + app-arch/unzip" + +S=${WORKDIR}/industri_BIN + +src_prepare() { + mv linux/Makefile{.i386linux,} + sed -i -e "s:-mpentiumpro.*:${CFLAGS} \\\\:" linux/Makefile || die + + # Remove duplicated typedefs #71841 + for typ in PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC PFNGLVERTEXARRAYRANGEAPPLEPROC ; do + if echo '#include <GL/gl.h>' | $(tc-getCC) -E - 2>/dev/null | grep -sq ${typ} ; then + sed -i \ + -e "/^typedef.*${typ}/d" \ + glquake.h || die + fi + done + + sed -i \ + -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \ + gl_warp.c || die + + epatch "${FILESDIR}"/${P}-exec-stack.patch \ + "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-glext.patch +} + +src_compile() { + emake \ + -C linux \ + MASTER_DIR="${GAMES_DATADIR}"/quake1 \ + build_release +} + +src_install() { + newgamesbin linux/release*/bin/industri.run industri + dogamesbin "${FILESDIR}"/industri.pretty + insinto /usr/share/icons + doins industri.ico quake.ico + dodoc linux/README + cd "${WORKDIR}"/${PN} + dodoc *.txt + insinto "${GAMES_DATADIR}"/quake1/${PN} + doins *.pak *.cfg + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + if ! use cdinstall ; then + elog "You need to copy pak0.pak to ${GAMES_DATADIR}/quake1 to play." + fi +} diff --git a/games-fps/industri/metadata.xml b/games-fps/industri/metadata.xml new file mode 100644 index 000000000000..4ed41644ffca --- /dev/null +++ b/games-fps/industri/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <longdescription> +industri is a Quake based, single player game using a modified version of the +Tenebrae 1.x engine. The Tenebrae engine is an Open Source (GNU GPL) modification +of Quake that brings per-pixel lighting, stencil shadows, hi-res textures, +bumpmap and normalmaps to the gaming experince. + +The focus of industri is a rich single-player game and engine. There is no +multi-player at all. +</longdescription> + <upstream> + <remote-id type="sourceforge">industri</remote-id> + </upstream> +</pkgmetadata> |