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/warsow | |
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/warsow')
-rw-r--r-- | games-fps/warsow/Manifest | 4 | ||||
-rw-r--r-- | games-fps/warsow/files/warsow-1.5.1-openal.patch | 12 | ||||
-rw-r--r-- | games-fps/warsow/files/warsow-1.5.1-pic.patch | 11 | ||||
-rw-r--r-- | games-fps/warsow/metadata.xml | 9 | ||||
-rw-r--r-- | games-fps/warsow/warsow-1.5.1-r1.ebuild | 182 |
5 files changed, 218 insertions, 0 deletions
diff --git a/games-fps/warsow/Manifest b/games-fps/warsow/Manifest new file mode 100644 index 000000000000..07d6affe3471 --- /dev/null +++ b/games-fps/warsow/Manifest @@ -0,0 +1,4 @@ +DIST warsow-1.5.1-build.patch.gz 4008 SHA256 7b1796cdc49a449772696fb4db96a654456c5f3514a82a966d98f8d72dae2b36 SHA512 3fb9eb00c1a5e28cfd3aa258a70b4c0cf4ca2618c13ff8ed1559c046e33cbd1842b836973b97eac8f90c5640c7045a34e2a6104e241f492fe794149ae4c6aac1 WHIRLPOOL 721d9a3e1ba535a52f00e45fae3aa2e9b0b741f05b81c5c171927f8de652ac4a81eb5f521abb6f9e8cd76fbda4f629a84731ddaea50fc80144e996f55e26283c +DIST warsow.png 1692 SHA256 086968e72271b248ef32609ed1818ff9f5c355297b1eee3cbee9e41f4e18a954 SHA512 76476fd6f624b4043405fbddeaa0fa46338b96bf46a9b64434940d9a84738a20c25243ef1316048159698b6a70b3e0f26218da3332203a93944312e77ba22c8f WHIRLPOOL 94b7c77641d5a8f581de4eb0e4e91b71f25347248a6aa6c1160e8fefda92951daa3fbbf04aee4920fc9b53fb07872d3fb7d870d4207d13844e07afa51c93e85b +DIST warsow_1.51_sdk.tar.gz 89191554 SHA256 ac635c654e088566d30d53e8fab21abd2d40762d7f4ab0e09faa827aac5c4f97 SHA512 64de961de91eee781b90442b275d24e13239dc2b594ece665c24c1d8da75e206a00ab43a2a6f193a953e9b0173b4a93dd18fa94b9b33d92eebcb776493a8b158 WHIRLPOOL 0a1db561eedfb4cafa2bb8f91e4de121adbbb171405828936788c9fa537a821855d89dd7c5b8a9ec186ece0655f1c821b38fa07fc0c2477c61681cf354d3d657 +DIST warsow_1.51_unified.tar.gz 601553865 SHA256 94510d85e4a245b5f8c0c715ae41b1d162c96e06dbfe75ccd99fffb9a76426b5 SHA512 a6c3392010de192d9984655193cb2c4359e9e3959bb39176416936c0227e3f6060bb19149688b89e36285572045c2ab19c6ef8de71ace7cd514e30196da83da9 WHIRLPOOL 1f0bf896dd0aad18e3bf3090d856a6ecbfabfa1873d62f9f5c0ccb1fa8dd0e34f0a22e8c095030c309adf32c85894bbadc77496916bddc6302f7646f500aa6ac diff --git a/games-fps/warsow/files/warsow-1.5.1-openal.patch b/games-fps/warsow/files/warsow-1.5.1-openal.patch new file mode 100644 index 000000000000..1bce87730556 --- /dev/null +++ b/games-fps/warsow/files/warsow-1.5.1-openal.patch @@ -0,0 +1,12 @@ +diff -rup warsow_1.51_sdk-upstream/source/source/Makefile warsow_1.51_sdk/source/source/Makefile +--- warsow_1.51_sdk-upstream/source/source/Makefile 2014-07-23 16:59:16.819811217 +0300 ++++ warsow_1.51_sdk/source/source/Makefile 2014-07-23 16:37:40.069824137 +0300 +@@ -285,7 +285,7 @@ endif + ifeq ($(BUILD_SND_QF),YES) + SDL_CONFIG?=sdl-config + +-CFLAGS_QF=$(shell $(SDL_CONFIG) --cflags) -I./snd_openal -I./snd_common ++CFLAGS_QF=$(shell $(SDL_CONFIG) --cflags) -I./snd_qf -I./snd_common + LDFLAGS_QF=$(shell $(SDL_CONFIG) --libs) -lvorbisfile + endif # BUILD_SND_QF + diff --git a/games-fps/warsow/files/warsow-1.5.1-pic.patch b/games-fps/warsow/files/warsow-1.5.1-pic.patch new file mode 100644 index 000000000000..71c4d8eed690 --- /dev/null +++ b/games-fps/warsow/files/warsow-1.5.1-pic.patch @@ -0,0 +1,11 @@ +--- source/snd_qf/snd_mix.c ++++ source/snd_qf/snd_mix.c +@@ -27,7 +27,7 @@ + int *snd_p, snd_linear_count, snd_vol, music_vol; + short *snd_out; + +-#if !defined ( id386 ) || defined ( __MACOSX__ ) ++#if defined ( PIC ) || !defined ( id386 ) || defined ( __MACOSX__ ) + #ifdef _WIN32 + #pragma warning( push ) + #pragma warning( disable : 4310 ) // cast truncates constant value diff --git a/games-fps/warsow/metadata.xml b/games-fps/warsow/metadata.xml new file mode 100644 index 000000000000..faba8100746c --- /dev/null +++ b/games-fps/warsow/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="irc">Enable IRC support</flag> + <flag name="server">Build server binaries additionally</flag> + </use> +</pkgmetadata> diff --git a/games-fps/warsow/warsow-1.5.1-r1.ebuild b/games-fps/warsow/warsow-1.5.1-r1.ebuild new file mode 100644 index 000000000000..b36b9e39ab3f --- /dev/null +++ b/games-fps/warsow/warsow-1.5.1-r1.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils check-reqs gnome2-utils flag-o-matic games + +# BASE_DATA_PV=1.0 +# BASE_DATA_P=${PN}_${BASE_DATA_PV}_unified +DATA_PV=1.51 +UPDATE_P=${PN}_${DATA_PV}_update +ENGINE_PV=1.51 +ENGINE_P=${PN}_${ENGINE_PV}_sdk + +DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)" +HOMEPAGE="http://www.warsow.net/" +SRC_URI="http://www.warsow.eu/${ENGINE_P}.tar.gz + http://www.warsow.eu/warsow_${DATA_PV}_unified.tar.gz + mirror://gentoo/warsow.png + mirror://gentoo/${P}-build.patch.gz" + +# ZLIB: bundled angelscript +LICENSE="GPL-2 ZLIB warsow" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug dedicated irc openal server" + +RDEPEND=">=dev-libs/libRocket-1.2.1_p20130110 + <dev-libs/libRocket-1.3.0.0 + media-libs/freetype + net-misc/curl + sys-libs/zlib + !dedicated? ( + media-libs/libpng:0 + media-libs/libsdl + media-libs/libtheora + media-libs/libvorbis + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXxf86dga + x11-libs/libXxf86vm + virtual/jpeg + virtual/opengl + openal? ( media-libs/openal ) + )" +DEPEND="${RDEPEND} + app-arch/unzip + x11-misc/makedepend + !dedicated? ( + x11-proto/xineramaproto + x11-proto/xf86dgaproto + x11-proto/xf86vidmodeproto + ) + openal? ( virtual/pkgconfig )" + +S=${WORKDIR}/source/source + +CHECKREQS_DISK_BUILD="1G" +CHECKREQS_DISK_USR="500M" + +src_prepare() { + if [[ $(tc-getCC) =~ clang ]]; then + einfo "disabling -ffast-math due to clang bug" + einfo "http://llvm.org/bugs/show_bug.cgi?id=13745" + append-cflags -fno-fast-math + append-cxxflags -fno-fast-math + fi + + sed -i \ + -e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \ + qcommon/files.c \ + || die "sed files.c failed" + + # edos2unix breaks whitespace files + einfo "removing dos line breaks" + find . -type f -exec sed -i 's/\r$//' '{}' + || die + + cd "${S}"/.. || die + epatch "${WORKDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-pic.patch \ + "${FILESDIR}"/${P}-openal.patch + epatch_user +} + +src_compile() { + emake -C ../libsrcs/angelscript/sdk/angelscript/projects/gnuc + + local arch + if use amd64 ; then + arch=x86_64 + elif use x86 ; then + arch=i386 + fi + + local myconf + if use dedicated ; then + myconf=( + BUILD_CLIENT=NO + BUILD_IRC=NO + BUILD_SND_OPENAL=NO + BUILD_SND_QF=NO + BUILD_CIN=NO + BUILD_SERVER=YES + BUILD_TV_SERVER=YES + BUILD_REF_GL=NO + ) + else + myconf=( + BUILD_CLIENT=YES + BUILD_IRC=$(usex irc YES NO) + BUILD_SND_OPENAL=$(usex openal YES NO) + BUILD_SND_QF=YES + BUILD_CIN=YES + BUILD_SERVER=$(usex server YES NO) + BUILD_TV_SERVER=$(usex server YES NO) + BUILD_REF_GL=YES + ) + fi + + emake \ + V=YES \ + SYSTEM_LIBS=YES \ + BASE_ARCH=${arch} \ + BINDIR=lib \ + BUILD_ANGELWRAP=YES \ + DEBUG_BUILD=$(usex debug YES NO) \ + ${myconf[@]} +} + +src_install() { + cd lib + + if ! use dedicated ; then + newgamesbin ${PN}.* ${PN} + doicon -s 48 "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Warsow + fi + + if use dedicated || use server ; then + newgamesbin wsw_server.* ${PN}-ded + newgamesbin wswtv_server.* ${PN}-tv + fi + + exeinto "$(games_get_libdir)"/${PN} + doexe */*.so + + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${PN}_15/basewsw + + local so + for so in basewsw/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} + done + + if [[ -e libs ]] ; then + dodir "${GAMES_DATADIR}"/${PN}/libs + for so in libs/*.so ; do + dosym "$(games_get_libdir)"/${PN}/${so##*/} \ + "${GAMES_DATADIR}"/${PN}/${so} + done + fi + + dodoc "${WORKDIR}"/${PN}_15/docs/* + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |