urbanterror-4.2.018 added

This commit is contained in:
Kolan Sh 2014-01-27 08:15:32 +04:00
parent 993175a7ef
commit 557d76b6b6
3 changed files with 229 additions and 0 deletions

View File

@ -2,6 +2,9 @@ DIST UrbanTerror-4.2.012-to-4.2.013.zip 103786786 SHA256 ea88a4fcba89bff56caaa98
DIST UrbanTerror-4.2.013-to-4.2.014.zip 21228975 SHA256 a389bbd14f3d11f294b7f3af6d543cf7d9001983ea7b71c167e6b5b7954b1db6 SHA512 f31fd4ae95f6270d7400a3e3bbdbf2fcdfb8e61016a1854d598c3d248208dc6a67bb2df8b5e1cc5461fe30caace1a827062030ce4d3e86af7035098590b9664e WHIRLPOOL 919fd5d8884b59398971ead09b60624cbcf73d85c3fe8b3860b12c36ac790ba3e475613b2e9878fc5349ea0a8274ae6554522a43dad20bda69dcb1b87a6b7a07 DIST UrbanTerror-4.2.013-to-4.2.014.zip 21228975 SHA256 a389bbd14f3d11f294b7f3af6d543cf7d9001983ea7b71c167e6b5b7954b1db6 SHA512 f31fd4ae95f6270d7400a3e3bbdbf2fcdfb8e61016a1854d598c3d248208dc6a67bb2df8b5e1cc5461fe30caace1a827062030ce4d3e86af7035098590b9664e WHIRLPOOL 919fd5d8884b59398971ead09b60624cbcf73d85c3fe8b3860b12c36ac790ba3e475613b2e9878fc5349ea0a8274ae6554522a43dad20bda69dcb1b87a6b7a07
DIST UrbanTerror-4.2.014-to-4.2.015.zip 163283262 SHA256 144ad248245dca61debc5d8b0615af99fb165b8c2a293d270dfa2fcd0d969ea1 SHA512 14bca57c8cd9c5f8cc84c3341546955c4e218ccb8cb6008ef20582640e9fbdc3677342a17743e211a7da72929eacfe68843eed4faf665c8e2cc2d13845c8c1fd WHIRLPOOL a0da3c7bb655b687ba27580af239771f1e271e86327a43e41d0d9160cd451a294d377d7377d172f7602585a8c01d58a2790c5130b8d50baaff2997a35e96a993 DIST UrbanTerror-4.2.014-to-4.2.015.zip 163283262 SHA256 144ad248245dca61debc5d8b0615af99fb165b8c2a293d270dfa2fcd0d969ea1 SHA512 14bca57c8cd9c5f8cc84c3341546955c4e218ccb8cb6008ef20582640e9fbdc3677342a17743e211a7da72929eacfe68843eed4faf665c8e2cc2d13845c8c1fd WHIRLPOOL a0da3c7bb655b687ba27580af239771f1e271e86327a43e41d0d9160cd451a294d377d7377d172f7602585a8c01d58a2790c5130b8d50baaff2997a35e96a993
DIST UrbanTerror-4.2.015-to-4.2.016.zip 48877338 SHA256 d56ab7a366c2adf869c750ce2bc0974b4ee749365d93b78d042ae0d24708c230 SHA512 9f58757cb67f39922b799b9a052d6dab6f4c3404d6a2fe7464cff86b37a1dd8fd2717d99afcfaae9e00e30d7462310bba62ee73921aa899de12c6f665f53fd34 WHIRLPOOL 8b7b6dafc56f5c06a894f8e64251cd6e5c98c92c2b177cdfa897cccb8887ba0a1e3a3d9dfc7b043a7cdaa9c292b75560a7d5c44f23bf9ec022031e826563452b DIST UrbanTerror-4.2.015-to-4.2.016.zip 48877338 SHA256 d56ab7a366c2adf869c750ce2bc0974b4ee749365d93b78d042ae0d24708c230 SHA512 9f58757cb67f39922b799b9a052d6dab6f4c3404d6a2fe7464cff86b37a1dd8fd2717d99afcfaae9e00e30d7462310bba62ee73921aa899de12c6f665f53fd34 WHIRLPOOL 8b7b6dafc56f5c06a894f8e64251cd6e5c98c92c2b177cdfa897cccb8887ba0a1e3a3d9dfc7b043a7cdaa9c292b75560a7d5c44f23bf9ec022031e826563452b
DIST UrbanTerror-4.2.017-to-4.2.018.zip 9485349 SHA256 9d8a4cb258a60b2f464daaa998d9d26244f339fac562fb0c3cb4e00683968163 SHA512 a64e996a8538219ecc4300e25a31c14471593588e236ce4585c65d97b7306db7208f31549c08636657f1bd52142d7ba3aa2e72ab60a375d7a46949b6c18dac48 WHIRLPOOL 239595f7f75cc4fb9976c817a08eaa77e9413a913106b581459c84438babfe68c62ebb9775359c3dad460aeea48afaacd136d318ce9d0aa4abc0bd25ab92736c
DIST UrbanTerror42_full012.zip 1529738026 SHA256 5b66e623ae5d065f8fb265e581c3640d3010af30457344874f4970d2d9092e6a SHA512 23d8ac966f6f0fbd52b633b31fc0f333151be0e64b8698b424e9f7a3524034339dd66e95c33ed1e1f451e22baa2522d30fdbc83091a3340b2ed42a55908f31ee WHIRLPOOL b438efe82d621b1800445e30c5eae5df4cfbe8ee02f1c8f58a5e33f0cf3d8261628f2100bb0e7d2782bdba0f578dcd6e626e1d3c775124d304c1c22246bad77a DIST UrbanTerror42_full012.zip 1529738026 SHA256 5b66e623ae5d065f8fb265e581c3640d3010af30457344874f4970d2d9092e6a SHA512 23d8ac966f6f0fbd52b633b31fc0f333151be0e64b8698b424e9f7a3524034339dd66e95c33ed1e1f451e22baa2522d30fdbc83091a3340b2ed42a55908f31ee WHIRLPOOL b438efe82d621b1800445e30c5eae5df4cfbe8ee02f1c8f58a5e33f0cf3d8261628f2100bb0e7d2782bdba0f578dcd6e626e1d3c775124d304c1c22246bad77a
DIST UrbanTerror42_full017.zip 1703717111 SHA256 9916203f84a3e71a6a2fdca8b247bf78a4775d84c3f4472442a13ad157e6d1d3 SHA512 cfcb6c3358f20f9df4cb1da11126b4f3a5e2597f3ab002241be3969e57caeb6767040f78179fb4ccb13e159b12411421cc17f9d19da473c7a9f0dc4fef000c85 WHIRLPOOL 2c2214c78c43e2111cb01cefba37e3cefd6aa262961b8e5872d3ccde87f7f9c264cfc7171bd134fec3aa4546fe22f7e7637a9b59bf1fc3c039a1043e459d0837
DIST urbanterror-4.2.015.tar.gz 9466827 SHA256 c8566beba8fa93c8d0db460445b29b488c69821ec824a68de8007ee1d5467a07 SHA512 7e4d66c06575ecc719978a1a1e51b604abfb1ead77a8d48921384b760d94a614b38929f7d1861b8e3e9bafa882d09f9be228ba35801c993de419c6b8da89daa8 WHIRLPOOL 97e4f723ca3f8fc19a34ac4aa7018b2eab7c489fab355e3d5cdcdfc73dd6d5e0457d85b6635c9624e15d3bf6145e1d73de78143f89730a43c000d7786e5d9171 DIST urbanterror-4.2.015.tar.gz 9466827 SHA256 c8566beba8fa93c8d0db460445b29b488c69821ec824a68de8007ee1d5467a07 SHA512 7e4d66c06575ecc719978a1a1e51b604abfb1ead77a8d48921384b760d94a614b38929f7d1861b8e3e9bafa882d09f9be228ba35801c993de419c6b8da89daa8 WHIRLPOOL 97e4f723ca3f8fc19a34ac4aa7018b2eab7c489fab355e3d5cdcdfc73dd6d5e0457d85b6635c9624e15d3bf6145e1d73de78143f89730a43c000d7786e5d9171
DIST urbanterror-4.2.017.tar.gz 10752638 SHA256 a847428923df26ce39604fc0fc4f30639e471c21fccc55eac1cf1cdfbb25125b SHA512 f4962294e6dd6ee9b9d95c526d5a77ff7f1e17f37ba72f907578f2dedd10eb8090ae9b48d7c07213f283f2bdb8cf235ec8d749d165c157ec90733477db038c3c WHIRLPOOL 366ddd149080f22f644349786e6fc81d232812f601ea9bcda3af1865589454083a54acd815388e9b8c2f9e4a3f4f028a639e9235ccfb5fca7f9b0ff728494456
DIST urbanterror.svg 1592 SHA256 0d7eb12a8fe8380e0d89199621414dd56ecdfe8a8b99eec5b95d925294521de9 SHA512 ff789b35d9b1a2282485495b0d1918c7169906aeac094e7a33c7d77cd51d4787733400e1b9851ce19b38e886508d5fdd09f6cfc96b37a5b41bd0cf403e456b98 WHIRLPOOL 281413cfeb881466c2d8b882d0aa4dcf19013630a462775345c69e78a0cb86c7efed14f5d22b453c89648da682ab5e98e3579a1c975994a8e90b9fb22c37892c DIST urbanterror.svg 1592 SHA256 0d7eb12a8fe8380e0d89199621414dd56ecdfe8a8b99eec5b95d925294521de9 SHA512 ff789b35d9b1a2282485495b0d1918c7169906aeac094e7a33c7d77cd51d4787733400e1b9851ce19b38e886508d5fdd09f6cfc96b37a5b41bd0cf403e456b98 WHIRLPOOL 281413cfeb881466c2d8b882d0aa4dcf19013630a462775345c69e78a0cb86c7efed14f5d22b453c89648da682ab5e98e3579a1c975994a8e90b9fb22c37892c

View File

@ -0,0 +1,75 @@
Author: hasufell <hasufell@gentoo.org>
Date: Wed Jul 10 01:25:27 2013 +0200
respect CFLAGS/LDFLAGS
--- a/Makefile
+++ b/Makefile
@@ -213,7 +213,7 @@
endif
endif
- BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -pipe
+ BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes
ifeq ($(USE_OPENAL),1)
BASE_CFLAGS += -DUSE_OPENAL=1
@@ -239,19 +239,15 @@
BASE_CFLAGS += -I/usr/X11R6/include
endif
- OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer
+ OPTIMIZE =
ifeq ($(ARCH),x86_64)
- OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -funroll-loops \
- -falign-loops=2 -falign-jumps=2 -falign-functions=2 \
- -fstrength-reduce
+ OPTIMIZE =
# experimental x86_64 jit compiler! you need GNU as
HAVE_VM_COMPILED = true
else
ifeq ($(ARCH),i386)
- OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \
- -funroll-loops -falign-loops=2 -falign-jumps=2 \
- -falign-functions=2 -fstrength-reduce
+ OPTIMIZE =
HAVE_VM_COMPILED=true
else
ifeq ($(ARCH),ppc)
@@ -265,7 +261,7 @@
BASE_CFLAGS += -DNO_VM_COMPILED
endif
- DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
+ DEBUG_CFLAGS = $(BASE_CFLAGS) $(OPTIMIZE)
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
@@ -274,7 +270,7 @@
SHLIBLDFLAGS=-shared $(LDFLAGS)
THREAD_LDFLAGS=-lpthread
- LDFLAGS=-ldl -lm
+ LDFLAGS+=-ldl -lm
ifeq ($(USE_SDL),1)
CLIENT_LDFLAGS=$(shell sdl-config --libs)
@@ -1158,13 +1154,13 @@
$(B)/Quake3-UrT.$(ARCH)$(BINEXT): $(Q3OBJ) $(Q3POBJ) $(LIBSDLMAIN)
$(echo_cmd) "LD $@"
- $(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ) $(CLIENT_LDFLAGS) \
- $(LDFLAGS) $(LIBSDLMAIN)
+ $(Q)$(CC) $(CFLAGS) -o $@ $(Q3OBJ) $(Q3POBJ) \
+ $(LDFLAGS) $(CLIENT_LDFLAGS) $(LIBSDLMAIN)
$(B)/Quake3-UrT-smp.$(ARCH)$(BINEXT): $(Q3OBJ) $(Q3POBJ_SMP) $(LIBSDLMAIN)
$(echo_cmd) "LD $@"
- $(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) $(CLIENT_LDFLAGS) \
- $(THREAD_LDFLAGS) $(LDFLAGS) $(LIBSDLMAIN)
+ $(Q)$(CC) $(CFLAGS) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) \
+ $(LDFLAGS) $(THREAD_LDFLAGS) $(CLIENT_LDFLAGS) $(LIBSDLMAIN)
ifneq ($(strip $(LIBSDLMAIN)),)
ifneq ($(strip $(LIBSDLMAINSRC)),)

View File

@ -0,0 +1,151 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/urbanterror/urbanterror-4.2.018.ebuild,v 1.1 2014/01/27 00:00:21 hasufell Exp $
EAPI=5
inherit check-reqs eutils gnome2-utils games
ENGINE_PV=4.2.017
FULL_P=UrbanTerror42_full017
DESCRIPTION="Hollywood tactical shooter based on the ioquake3 engine"
HOMEPAGE="http://www.urbanterror.info/home/"
SRC_URI="http://cdn.urbanterror.info/urt/42/zips/${FULL_P}.zip
https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${ENGINE_PV}.tar.gz -> ${PN}-${ENGINE_PV}.tar.gz
http://upload.wikimedia.org/wikipedia/en/5/56/Urbanterror.svg -> ${PN}.svg"
# fetch updates
if [[ ${FULL_P#*full} != ${PV##*.} ]] ; then
UPDATE_I=${ENGINE_PV:6:1}
while [[ ${UPDATE_I} -lt ${PV:6:1} ]] ; do
SRC_URI="${SRC_URI} http://cdn.urbanterror.info/urt/42/zips/UrbanTerror-${PV:0:6}${UPDATE_I}-to-${PV:0:6}$(( ${UPDATE_I} + 1)).zip"
UPDATE_I=$(( ${UPDATE_I} + 1))
done
fi
unset UPDATE_I
LICENSE="GPL-2 Q3AEULA-20000111 urbanterror-4.2-maps"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+curl debug dedicated openal +sdl server smp vorbis"
RESTRICT="mirror"
RDEPEND="
!dedicated? (
virtual/opengl
curl? ( net-misc/curl )
openal? ( media-libs/openal )
sdl? ( media-libs/libsdl[X,audio,joystick,opengl,video] )
!sdl? ( x11-libs/libX11
x11-libs/libXext
x11-libs/libXxf86dga
x11-libs/libXxf86vm )
vorbis? ( media-libs/libogg
media-libs/libvorbis )
)"
DEPEND="${RDEPEND}
app-arch/unzip
dedicated? ( curl? ( net-misc/curl ) )"
S=${WORKDIR}/ioq3-for-UrbanTerror-4-release-${ENGINE_PV}
S_DATA=${WORKDIR}/UrbanTerror42
CHECKREQS_DISK_BUILD="3300M"
CHECKREQS_DISK_USR="1550M"
pkg_pretend() {
check-reqs_pkg_pretend
if ! use dedicated ; then
if ! use sdl && ! use openal ; then
ewarn
ewarn "Sound support disabled. Enable 'sdl' or 'openal' useflag."
ewarn
fi
fi
}
src_unpack() {
local UPDATE_I
default
# apply updates
if [[ ${FULL_P#*full} != ${PV##*.} ]] ; then
UPDATE_I=${ENGINE_PV:6:1}
while [[ ${UPDATE_I} -lt ${PV:6:1} ]] ; do
cp -dRpf \
"${WORKDIR}"/UrbanTerror-${PV:0:6}${UPDATE_I}-to-${PV:0:6}$((${UPDATE_I} + 1))/* \
"${S_DATA}"/ || die
UPDATE_I=$(( ${UPDATE_I} + 1))
done
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch
}
src_compile() {
buildit() { use $1 && echo 1 || echo 0 ; }
nobuildit() { use $1 && echo 0 || echo 1 ; }
emake \
ARCH=$(usex amd64 "x86_64" "i386") \
DEFAULT_BASEDIR="${GAMES_DATADIR}/${PN}" \
BUILD_CLIENT=$(nobuildit dedicated) \
BUILD_CLIENT_SMP=$(usex smp "$(nobuildit dedicated)" "0") \
BUILD_SERVER=$(usex dedicated "1" "$(buildit server)") \
USE_SDL=$(buildit sdl) \
USE_OPENAL=$(buildit openal) \
USE_OPENAL_DLOPEN=0 \
USE_CURL=$(buildit curl) \
USE_CURL_DLOPEN=0 \
USE_CODEC_VORBIS=$(buildit vorbis) \
USE_LOCAL_HEADERS=0 \
Q="" \
$(usex debug "debug" "release")
}
src_install() {
local my_arch=$(usex amd64 "x86_64" "i386")
dodoc ChangeLog README md4-readme.txt
dodoc "${S_DATA}"/q3ut4/readme42.txt
insinto "${GAMES_DATADIR}"/${PN}/q3ut4
doins "${S_DATA}"/q3ut4/*.pk3
if use !dedicated ; then
newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT$(usex smp "-smp" "").${my_arch} ${PN}
doicon -s scalable "${DISTDIR}"/${PN}.svg
make_desktop_entry ${PN} "UrbanTerror"
fi
if use dedicated || use server ; then
newgamesbin build/$(usex debug "debug" "release")-linux-${my_arch}/Quake3-UrT-Ded.${my_arch} ${PN}-dedicated
docinto examples
dodoc "${S_DATA}"/q3ut4/{server_example.cfg,mapcycle_example.txt}
fi
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
use dedicated || gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
use dedicated || gnome2_icon_cache_update
if use openal && ! use dedicated ; then
einfo
elog "You might need to set:"
elog " seta s_useopenal \"1\""
elog "in your ~/.q3a/q3ut4/q3config.cfg for openal to work."
einfo
fi
}
pkg_postrm() {
use dedicated || gnome2_icon_cache_update
}