diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-02-09 23:03:09 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-02-09 23:03:09 +0000 |
commit | c74cff389faeedd0a0f4931019456202baf871a6 (patch) | |
tree | b04842936f3017bd5369eb72ced50d2fa9af61b9 /games-fps/eduke32 | |
parent | arm/ppc64 stable wrt #452556 (diff) | |
download | historical-c74cff389faeedd0a0f4931019456202baf871a6.tar.gz historical-c74cff389faeedd0a0f4931019456202baf871a6.tar.bz2 historical-c74cff389faeedd0a0f4931019456202baf871a6.zip |
version bump
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-fps/eduke32')
-rw-r--r-- | games-fps/eduke32/ChangeLog | 8 | ||||
-rw-r--r-- | games-fps/eduke32/Manifest | 19 | ||||
-rw-r--r-- | games-fps/eduke32/eduke32-20130207.3467.ebuild | 150 | ||||
-rw-r--r-- | games-fps/eduke32/files/eduke32-20130207.3467-QA.patch | 153 |
4 files changed, 321 insertions, 9 deletions
diff --git a/games-fps/eduke32/ChangeLog b/games-fps/eduke32/ChangeLog index 4f79f96a6c9b..ed34b3955826 100644 --- a/games-fps/eduke32/ChangeLog +++ b/games-fps/eduke32/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-fps/eduke32 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/eduke32/ChangeLog,v 1.2 2013/02/09 14:05:48 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/eduke32/ChangeLog,v 1.3 2013/02/09 23:03:05 hasufell Exp $ + +*eduke32-20130207.3467 (09 Feb 2013) + + 09 Feb 2013; Julian Ospald <hasufell@gentoo.org> + +eduke32-20130207.3467.ebuild, +files/eduke32-20130207.3467-QA.patch: + version bump 09 Feb 2013; Julian Ospald <hasufell@gentoo.org> files/eduke32-20130201.3453-QA.patch: diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest index 00f8ad5a6071..4f3d072a10d2 100644 --- a/games-fps/eduke32/Manifest +++ b/games-fps/eduke32/Manifest @@ -2,19 +2,22 @@ Hash: SHA256 AUX eduke32-20130201.3453-QA.patch 4354 SHA256 a2f774e625284db8f2cbd1c366e3df0e16597bf948c8b0cff86ee6a65899cce4 SHA512 542c8ed8b79ae86aef74efcabf53834c41c348e7327418b392245b4d5d0ec8cb836d378f324c5d6787fcfe989c22df8d99f73016a67280c97191884e1fa482ab WHIRLPOOL f6879bb4d745227d812ecdfe09d625e1d3b38f3ac22a99ec9c080e9b8484eb797179a244a954600d93749a16781003f0d5762600a137a52be1cb2e2360b22afd +AUX eduke32-20130207.3467-QA.patch 4354 SHA256 a2f774e625284db8f2cbd1c366e3df0e16597bf948c8b0cff86ee6a65899cce4 SHA512 542c8ed8b79ae86aef74efcabf53834c41c348e7327418b392245b4d5d0ec8cb836d378f324c5d6787fcfe989c22df8d99f73016a67280c97191884e1fa482ab WHIRLPOOL f6879bb4d745227d812ecdfe09d625e1d3b38f3ac22a99ec9c080e9b8484eb797179a244a954600d93749a16781003f0d5762600a137a52be1cb2e2360b22afd DIST eduke32-icons.tar 102400 SHA256 efce5cddd9a55f07824f5739831b79cff2ea6e508f0b17b996316533af925842 SHA512 797f76cfc0e253ce3364e80f70b616fc004811c08519020727871addc90c7780b475ee7769398e13859f93893ccbb916bd4229a39f4c119169a69231e6fd411c WHIRLPOOL 9815abce63dcf8e865c61610f1b04915ced9b29c65cd831022f5b6f261bd55efc700b6fd5ee2741332023b85682b08d3a327998c57be33846dffdcb60eb1339b DIST eduke32_src_20130201-3453.tar.bz2 5699039 SHA256 464d5b8151a5f18b2679cd9f382ec00bc320a35135599d483604777997dd0137 SHA512 3fe901ab8e46ae246899b5ad6d7b9334a8c4574cded35c79620261cdf5e70fd3b4cc7a19d19b0eb3667ebf2a8fb243f931168b0663e44f7b0477da5628e472de WHIRLPOOL 7c9b53e45dca78b442c92073f6dcb65c962dba4fe6509830e928538a5fe913b425224dfb14d986ef6b848c5449001e2fc4ba065d378e5b91f92dd9e9074e4e0f +DIST eduke32_src_20130207-3467.tar.bz2 5707852 SHA256 95bd278a3d0e88dd202ee93616bbc55a64e88f9947efb80e058f7174cd66d021 SHA512 84b2effa4b5a6b60d60096dc216cb217e0b6a5998ecb76460ccb93cf903dfe24b464b4b99d142ebc4f7c0999761106f4a7d10b42d61575a93a7b1c43ead44d51 WHIRLPOOL 4892a3dee06a86ccb2d4ef05f1f01069e088d01445872e81703c21b28e12c5d002f09471e6f52c698609186c38d947ce5f01df27812d3077dd96f5a7a44b2435 EBUILD eduke32-20130201.3453.ebuild 4224 SHA256 7b9abd8d3a3b83926cf820278c831c3ccd0bb741af19507060bcf6e8b62197c1 SHA512 c3f8213a50f7e897f27cf2fcacc3eedfb1a14881aa5287f31939ab3db8a17b693bb556889f9f82c883e378335e5e7987fbcfe16805c7be14ec5c9e69a0051034 WHIRLPOOL d7b2d39837abaee286ee0d03bd664096632dce6844e41f2b024368d60f3073f8ccef6073285b1080bbff751ff5a19d95c427b4832a7e109c9045e80b1173aca0 -MISC ChangeLog 530 SHA256 971b9e2f04b1b62988d1e06d958269070f02b26d82c7c632c08dda9bf373f5a0 SHA512 b6727d5234e6e19e56b2689187251c3d671ac46b58d10baf7474116df9a5c220f4a7c8571f55857114a51ec60b4dc88953e17b1773e1b9613f95b1ee23a2c1e8 WHIRLPOOL ba469ea6584195302a18719a21717ac3b0ac4735786950c9a2e72e6a3800ca3438d2d00119361f0babf889dcf741ab1c2536db2315d31f68cf6277dafee46dda +EBUILD eduke32-20130207.3467.ebuild 4199 SHA256 cb0c3498ad3acab0bb2b5fc782f0f67e40674139a52db603333bb7cf61fce694 SHA512 7999d021856cb16b1cbde52a05d1d368568d38000b02dfe449169b1814f2d9634c95ec6ec8fce383b844fb57ac36fee0c1edbb3ca466197facd4b0847353c6e7 WHIRLPOOL eb6f6a80375cdd8e7ba896aae783ad18cb8018d33d86fa6127969a607e6b4c43c86e821c53067ee63dfffb6540131389c79e2b4a038504b1f95b60ae43abb8a2 +MISC ChangeLog 707 SHA256 8857feb6afeac8205bf48219a830189cade3beba176599d1bfc50a7441f30f39 SHA512 6b0c2149f49c7a0e286ff6ce605e7320afef4ef5f40ab46b2ee885f7e85b1241afda4b81aec8f75febadf7784a0138164b3c0979f479334f7115121dfd244142 WHIRLPOOL 18f47c1bf08551a00995d308699c9301cabbadf22a54544ce469c6f1d36934db564efdc0b66bcc432fa5cbe6094c2b2de99cdb33eb6235de47b4863255c9b27c MISC metadata.xml 544 SHA256 85413e51bead854667e02cc21b6776331df4c5e4fcd107cdd28a5743eae078f9 SHA512 5e6850d9b2b7a32e7bbf0a6f06d4baad9df566d19531995679ff00ce6d36fb17ca8bd289029a03fc5ba1547aed1b22c607a124c395f1957afddd1f7a669f3806 WHIRLPOOL 6f8999b18320493d4b2dfd28d632667dc133e60f2725322b680e7302c6854519a0489e840ff4fccc187fffea8c3eb536eeb8c0d72f0c598c2e0f0fec2c5fecfe -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJRFlfAAAoJEFpvPKfnPDWz9McH/2r/JzILqmLu2K3M/sUmrJcd -9YWDfhnEsLrqXUdWR8ictxpfYfbxGYzghwEbVOS54RRQvlTTR54Hk4G3g468byza -YZEuKVSiedHGZDTHNGrZTx2Mhe5vvn3fPGWeMggARzIcLdNfnQowJJJG0ThadPDW -oDh3nS/E887cj/ywdN37Wh47eVTX6IKyU+FzgU/R4GvmgYfNY+H+YjDQQCnzfhky -nR5iUYXv1eGxMZxsCG5zsZqUe78fZYsQrxzUkslkDq0bZ39dx3fr4PGsq6AqhZgz -qek83qt/3qvvSWIeXQM5PJN5go/ZgIy/4DtcDTKbQPwdGajR/awk7U7Q7EM/GE8= -=nG/V +iQEcBAEBCAAGBQJRFtWsAAoJEFpvPKfnPDWz76MH/0Ozw1DjnL4R30uMUHZCgeF1 +F3xvlVM22o6bc6mVxFd9dInlb3I1//8ac/t5DrLqdiUC23dWZlm+YlGyKi1CVLFF +7vRj1gXxjh3U1UEHb1ioCWe2wKPWYGFY0f47TJxAEum/FBeeLZvXBMKx41LEEe9y +qS0mxOIIG7EiEAGGk1u0mPsg1HcFQPE4/7JwuUQyxQCOZVyOeHS0+h7EL2UB493E +tqtkpQyaAwvmuR5UKaQctjuiignF2N8JNN5eNK4wHydMOBjgl2mraFoXzHl+dG5c +XnIUwSjBthrZqS68c3qOdtOqbVdizPMPw6v1rKj6nnd7N1WIesmpM8xtPtHNIgw= +=OynA -----END PGP SIGNATURE----- diff --git a/games-fps/eduke32/eduke32-20130207.3467.ebuild b/games-fps/eduke32/eduke32-20130207.3467.ebuild new file mode 100644 index 000000000000..4b43cfcbc19d --- /dev/null +++ b/games-fps/eduke32/eduke32-20130207.3467.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/eduke32/eduke32-20130207.3467.ebuild,v 1.1 2013/02/09 23:03:05 hasufell Exp $ + +# TODO/FIXME: +# lunatic broken +# lunatic? ( >=dev-lang/luajit-2.0.0_beta10:2 ) +# $(usex lunatic "LUNATIC=1" "LUNATIC=0") +# +# extras? ( games-fps/${PN}-extras ) + +EAPI=5 + +inherit eutils gnome2-utils games + +MY_PV=${PV%.*} +MY_BUILD=${PV#*.} + +DESCRIPTION="Port of Duke Nukem 3D for SDL" +HOMEPAGE="http://www.eduke32.com/ http://hrp.duke4.net/" +SRC_URI="http://dukeworld.duke4.net/eduke32/synthesis/${MY_PV}-${MY_BUILD}/${PN}_src_${MY_PV}-${MY_BUILD}.tar.bz2 + http://dev.gentoo.org/~hasufell/distfiles/eduke32-icons.tar" + +LICENSE="GPL-2 BUILDLIC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cdinstall debug demo +opengl +png +server tools +vpx" +REQUIRED_USE="vpx? ( opengl )" + +RDEPEND="media-libs/flac + media-libs/libogg + media-libs/libsdl[X,joystick,opengl?,video] + media-libs/libvorbis + media-libs/sdl-mixer[timidity] + sys-libs/zlib + x11-libs/gtk+:2 + opengl? ( virtual/glu + virtual/opengl ) + png? ( media-libs/libpng:0 + sys-libs/zlib ) + vpx? ( media-libs/libvpx )" +DEPEND="${RDEPEND} + x86? ( dev-lang/nasm )" +PDEPEND="cdinstall? ( games-fps/duke3d-data ) + demo? ( games-fps/duke3d-demodata )" + +S=${WORKDIR}/${PN}_${MY_PV}-${MY_BUILD} + +src_prepare() { + epatch "${FILESDIR}"/${P}-QA.patch + + # Point eduke32 to data files in shared duke3d folder. + # Multiple search paths can be defined, so that with the default configuration as of + # the 20130128 release, this adds /usr/share/games/duke3d in ADDITION to + # /usr/share/games/eduke32 so that eduke32 and duke3d's base data can be kept separate. + # also redirect log file so it's not always written in $PWD + sed -i \ + -e "s;/usr/local/share/games/${PN};${GAMES_DATADIR}/duke3d;" \ + -e "s;mapster32.log;${GAMES_LOGDIR}/mapster32.log;" \ + source/astub.c || die "sed astub.c path update failed" + sed -i \ + -e "s;/usr/local/share/games/${PN};${GAMES_DATADIR}/duke3d;" \ + -e "s;${PN}.log;${GAMES_LOGDIR}/${PN}.log;" \ + source/game.c || die "sed game.c path update failed" +} + +src_compile() { + local MY_OPTS=( + ARCH= + LTO=0 + PRETTY_OUTPUT=0 + RELEASE=1 + LUNATIC=0 + STRIP=touch + LINKED_GTK=1 + CPLUSPLUS=0 + $(usex debug "DEBUGANYWAY=1" "DEBUGANYWAY=0") + $(usex x86 "NOASM=0" "NOASM=1") + $(usex server "NETCODE=1" "NETCODE=0") + $(usex opengl "USE_OPENGL=1 POLYMER=1" "USE_OPENGL=0 POLYMER=0") + $(usex png "USE_LIBPNG=1" "USE_LIBPNG=0") + $(usex vpx "USE_LIBVPX=1" "USE_LIBVPX=0") + ) + + emake ${MY_OPTS[@]} + + if use tools; then + emake -C build ${MY_OPTS[@]} + fi +} + +src_install() { + dogamesbin ${PN} mapster32 + + insinto "${GAMES_DATADIR}/${PN}" + doins package/{SEHELP.HLP,STHELP.HLP,m32help.hlp,names.h,tiles.cfg} + doins -r package/samples + + local i + for i in 16 32 128 256 ; do + newicon -s ${i} "${WORKDIR}"/${PN}_${i}x${i}x32.png ${PN}.png + newicon -s ${i} "${WORKDIR}"/mapster32_${i}x${i}x32.png mapster32.png + done + + make_desktop_entry ${PN} EDuke32 ${PN} + make_desktop_entry mapster32 Mapster32 mapster32 + + if use tools; then + dobin build/{arttool,bsuite,cacheinfo,generateicon,givedepth,kextract,kgroup,kmd2tool,md2tool,mkpalette,transpal,unpackssi,wad2art,wad2map} + dodoc build/doc/*.txt + fi + + dodoc build/buildlic.txt + + dodir "${GAMES_LOGDIR}" + + prepgamesdirs + +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + + use cdinstall || use demo || { + elog "Note: You must also install the game data files, either manually or with" + elog "games-fps/duke3d-demodata or games-fps/duke3d-data before playing." + } + + einfo + elog "${PN} reads data files from ${GAMES_DATADIR}/duke3d" + einfo + + [[ -e ${ROOT}/${GAMES_LOGDIR} ]] || mkdir -p "${ROOT}/${GAMES_LOGDIR}" + touch "${ROOT}/${GAMES_LOGDIR}"/${PN}.log + touch "${ROOT}/${GAMES_LOGDIR}"/mapster32.log + chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/${PN}.log + chown ${GAMES_USER}:${GAMES_GROUP} "${ROOT}/${GAMES_LOGDIR}"/mapster32.log + chmod g+w "${ROOT}/${GAMES_LOGDIR}"/${PN}.log + chmod g+w "${ROOT}/${GAMES_LOGDIR}"/mapster32.log +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-fps/eduke32/files/eduke32-20130207.3467-QA.patch b/games-fps/eduke32/files/eduke32-20130207.3467-QA.patch new file mode 100644 index 000000000000..534c507e0a4a --- /dev/null +++ b/games-fps/eduke32/files/eduke32-20130207.3467-QA.patch @@ -0,0 +1,153 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat Feb 2 01:16:21 UTC 2013 +Subject: build system + + respect CC/CXX etc and CFLAGS/CXXFLAGS/LDFLAGS + +--- eduke32_20130201-3453/Makefile ++++ eduke32_20130201-3453/Makefile +@@ -308,10 +308,10 @@ + endif + + COMPILER=$(CC) $(OURCONLYFLAGS) +-LINKER=$(L_CC) ++LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS) + ifneq ($(CPLUSPLUS),0) + COMPILER=$(CXX) $(OURCXXFLAGS) +- LINKER=$(L_CXX) ++ LINKER=$(L_CXX) $(OURCXXFLAGS) + endif + + ifeq ($(PRETTY_OUTPUT),1) +--- eduke32_20130201-3453/Makefile.common ++++ eduke32_20130201-3453/Makefile.common +@@ -8,13 +8,14 @@ + PRETTY_OUTPUT ?= 1 + + # Tools +-CC=gcc +-CXX=g++ +-AS=nasm +-AR=ar +-RC=windres +-RANLIB=ranlib +-STRIP=strip ++CC ?= gcc ++CXX ?= g++ ++AS ?= nasm ++AR ?= ar ++RC ?= windres ++RANLIB ?= ranlib ++STRIP ?= strip ++PKG_CONFIG ?= pkgconfig + + L_CC=$(CC) + L_CXX=$(CXX) +@@ -152,7 +153,6 @@ + # FORCEWARNINGS - 1 = do not disable any compiler warnings within the source + # KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system + # EFENCE - 1 = compile with Electric Fence for malloc() debugging +-# OPTLEVEL - 0..3 = GCC optimization strategy + # LTO - 1 = enable link-time optimization, for GCC 4.5 and up + # + CPLUSPLUS?=0 +@@ -163,7 +163,6 @@ + FORCEWARNINGS?=0 + EFENCE?=0 + DMALLOC?=0 +-OPTLEVEL?=2 + PROFILER?=0 + MUDFLAP?=0 + +@@ -269,10 +268,9 @@ + + # compiler flags etc. + BASECFLAGS= +-BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement +-BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing +-BASEASFLAGS=-s #-g +-BASELDFLAGS= ++BASECONLYFLAGS = $(CFLAGS) -std=gnu89 -Wimplicit -Wdeclaration-after-statement ++BASECXXFLAGS = $(CXXFLAGS) -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings -Wno-narrowing ++BASELDFLAGS = $(LDFLAGS) + + + ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4))) +@@ -300,14 +298,11 @@ + debug=-g + else ifeq ($(PLATFORM), WII) + debug=-g +- else +- debug=-ggdb + endif + endif + + ifneq (0,$(RELEASE)) + # Debugging disabled +- debug+= -O$(OPTLEVEL) + ifeq (0,$(CLANG)) + debug+= -funswitch-loops + ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \< 4))) +@@ -330,7 +325,6 @@ + endif + else + # Debugging enabled +- debug+= -O0 + + ifeq (0,$(DEBUGANYWAY)) + debug+= -DDEBUGGINGAIDS +@@ -411,7 +405,7 @@ + + #### Lunatic development, do not touch! + LUNATIC=0 +-LUAJIT=luajit ++LUAJIT=$(shell command -v luajit || command -v luajit-2 || command -v luajit-2.0) + + # for LJ headers: + LUAJIT_WIN_SRC:= g:/mod/LuaJIT-2.0.0-beta8/src +@@ -424,14 +418,14 @@ + ifeq ($(PLATFORM),WINDOWS) + BASECOMMONFLAGS+= -I$(LUAJIT_WIN_SRC) + else +- BASECOMMONFLAGS+= -I/usr/local/include/luajit-2.0 ++ BASECOMMONFLAGS+= $(shell $(PKG_CONFIG) --cflags luajit 2>/dev/null || $(PKG_CONFIG) --cflags luajit-2.0) + endif + BASECOMMONFLAGS+= -I$(SRC)/lunatic -DLUNATIC + + ifeq ($(PLATFORM),WINDOWS) + BASELIBS+= -lluajit + else +- BASELIBS+= -lluajit-5.1 ++ BASELIBS+= $(shell $(PKG_CONFIG) --libs luajit 2>/dev/null || $(PKG_CONFIG) --libs luajit-2.0) + endif + endif + +--- eduke32_20130201-3453/build/Makefile ++++ eduke32_20130201-3453/build/Makefile +@@ -166,13 +166,15 @@ + OURCOMMONFLAGS+= $(BUILDCOMMONFLAGS) + + COMPILER=$(CC) $(OURCONLYFLAGS) +-LINKER=$(L_CC) ++LINKER=$(L_CC) $(OURCFLAGS) $(OURCONLYFLAGS) + ifneq ($(CPLUSPLUS),0) + COMPILER=$(CXX) $(OURCXXFLAGS) +- LINKER=$(L_CXX) ++ LINKER=$(L_CXX) $(OURCXXFLAGS) + endif + ++ifeq ($(PRETTY_OUTPUT),1) + .SILENT: ++endif + .PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib + + # TARGETS +@@ -265,7 +267,7 @@ + if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS) -I$(SDLROOT)/include -I$(SDLROOT)/include/SDL; then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi + arttool$(EXESUFFIX): $(OBJ)/arttool.$o $(UTILADDOBJS) + $(ONESTEP_STATUS) +- if $(L_CXX) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi ++ if $(L_CXX) $(OURCXXFLAGS) -o $@ $^ $(OURLDFLAGS) $(STATICSTDCPP) $(STDCPPLIB) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi + givedepth$(EXESUFFIX): $(OBJ)/givedepth.$o $(UTILADDOBJS) + $(ONESTEP_STATUS) + if $(LINKER) -o $@ $^ $(OURLDFLAGS) $(UTILLIBS); then $(ONESTEP_OK); else $(ONESTEP_FAILED); fi |