summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-06-28 00:07:25 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-06-28 00:07:25 +0000
commit1f4ee667fbc8782b127f719f3de66af9d1d194f0 (patch)
tree272c050cdc485e0f7a98c701324dcd5e876ff2e6 /games-fps
parentFix library paths when not cross-compiling. Should resolve bug 474882. Thanks... (diff)
downloadhistorical-1f4ee667fbc8782b127f719f3de66af9d1d194f0.tar.gz
historical-1f4ee667fbc8782b127f719f3de66af9d1d194f0.tar.bz2
historical-1f4ee667fbc8782b127f719f3de66af9d1d194f0.zip
version bump
Package-Manager: portage-2.2.0_alpha185/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/eduke32/ChangeLog8
-rw-r--r--games-fps/eduke32/Manifest21
-rw-r--r--games-fps/eduke32/eduke32-20130627.3905.ebuild216
-rw-r--r--games-fps/eduke32/files/eduke32-20130627.3905-QA.patch160
4 files changed, 395 insertions, 10 deletions
diff --git a/games-fps/eduke32/ChangeLog b/games-fps/eduke32/ChangeLog
index c3fd726a8070..305fa22f792d 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.7 2013/04/11 14:16:54 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/eduke32/ChangeLog,v 1.8 2013/06/28 00:07:21 hasufell Exp $
+
+*eduke32-20130627.3905 (28 Jun 2013)
+
+ 28 Jun 2013; Julian Ospald <hasufell@gentoo.org>
+ +eduke32-20130627.3905.ebuild, +files/eduke32-20130627.3905-QA.patch:
+ version bump
11 Apr 2013; Julian Ospald <hasufell@gentoo.org>
eduke32-20130317.3572-r1.ebuild,
diff --git a/games-fps/eduke32/Manifest b/games-fps/eduke32/Manifest
index 9118692769df..a970580f107f 100644
--- a/games-fps/eduke32/Manifest
+++ b/games-fps/eduke32/Manifest
@@ -4,6 +4,7 @@ Hash: SHA256
AUX eduke32-20130207.3467-QA.patch 4354 SHA256 a2f774e625284db8f2cbd1c366e3df0e16597bf948c8b0cff86ee6a65899cce4 SHA512 542c8ed8b79ae86aef74efcabf53834c41c348e7327418b392245b4d5d0ec8cb836d378f324c5d6787fcfe989c22df8d99f73016a67280c97191884e1fa482ab WHIRLPOOL f6879bb4d745227d812ecdfe09d625e1d3b38f3ac22a99ec9c080e9b8484eb797179a244a954600d93749a16781003f0d5762600a137a52be1cb2e2360b22afd
AUX eduke32-20130317.3572-QA.patch 4584 SHA256 539891e0b87cc1da985e5fa2ef0f0bbf7d96a45218008d757700a279f63d0a44 SHA512 6d7909685edbabd2351d3d1cc7a0ede43d52ff8c7b4723bd12d1e6bc8f35d955a96d397b3a60fb7b40fd4166f6f88a02c66147d89dc2956c17d84abcb78ec343 WHIRLPOOL 979e5fbe6da328402725a2e8d2bc4e46fecdb12c2526352f8c9f453fc5bfa43cca49c756a7c99b1ae05ee09fa31daa0413b982755013283c9d36a77abe20b484
AUX eduke32-20130317.3572-libpng-1.6.patch 1346 SHA256 8bbf0cdd185371318f7867b185499498d6f38f0ecdcaff1fed7cd5f0c2ab8045 SHA512 7a9d2c199efaddc9bab3308a6f96020b009dfdd13066e09637bf6ff24b4a036bd639d3f6c215f2692f26fddacc8069c62c245942e7f7c31de205832ca4879053 WHIRLPOOL 8ec08e7201d8c2a5438dd0e9219e45b9f64e29e4f49ddaaf85c0a70e454efd30685c241c8264e4625c16289f267e09b547f2e9ace324d2719a04ec29637a2464
+AUX eduke32-20130627.3905-QA.patch 4456 SHA256 6d6b952a07b53e03eadd4a75f06a5b8ee501e1530945f5398a4a68aa56835697 SHA512 ab2a9706229ce6a1c2b3aa31a39ef9464fe432c15e23d1758c8e13bb5380719298432f6096d474ee6a4e8f30ac64e5c4c5c181018670622c22145a49f9c3ac9e WHIRLPOOL 020338f875f4fd685b848375d7a4fd87928b959f7b4367e4152ad384f3bc3af2b8e0b0d318d9b22de4f472fd505aea9357ff6caeacc5d5a388003c56ebdfa3a5
DIST duke3d_hrp_5.2.zip 709961560 SHA256 d5dc9ef4be517de1464e8ed886f2a6352402fdec2b9cf271d292a5aee82fae27 SHA512 6b80739082d01e879ee77c85d3702269a605bc5f5b9393ce2f391d50c2a14e8fd0cd274a7e3010636646c3b7725591f45f107503c04a84655621a197f5f3c69e WHIRLPOOL 03cbc7fe0b8f3f7d4eaf7e5df4d8c9537ffaa0e7a49d938f0138bf0a6c87a72ecfa30666a94ec228dc66da6e55a6632d08340edcb2c49d9c4aaa4031ab5f231c
DIST duke3d_mus_3.0.zip 129992841 SHA256 6dc9eb70ee1850519b55e547a399e3f7f03ddf60a6b16b0e205edd8a05bdda4a SHA512 9b782a2b6bb006a01e7ca2a8c395fcbe0884cc7648fce03f7760d67e67e4b03d73e31fff5964a604270ffddf09df69f306147dffd115efcd738de416939060cf WHIRLPOOL dec7613bf321a8392361ed414c3cba1909adf6106ae16fe04858549d8574d696f677ac90b0a8a7ab7cf6fb31b6263223b03434536f528c7f50c8b77fd7c059d2
DIST duke3d_musopl_2.0.zip 266444907 SHA256 4f0afc46bfb5f38b1a1417a6145c0c548355cf4c4438e0330a9de704b139f1c3 SHA512 e9ae69727f84ff71bf9abffa283fda1fcaf56fd6ae6b865d12f138d64b0fca0d36fd9695b1e60a64716154055373eecd6499ebd8801a4ecb55ddc4722208eff7 WHIRLPOOL b69b76050f97785b54a1693b3f9eeb124b208cb785719c9c37a499a7af8f9cdd2362a7ce0cab81b17a3ab7f80744eadd0a286b45844dee6bf37e0f320d61148a
@@ -11,19 +12,21 @@ DIST duke3d_xxx_1.33.zip 26586453 SHA256 c31713e6400a175a1bfa3bd369d132f8a8abce8
DIST eduke32-icons.tar 102400 SHA256 efce5cddd9a55f07824f5739831b79cff2ea6e508f0b17b996316533af925842 SHA512 797f76cfc0e253ce3364e80f70b616fc004811c08519020727871addc90c7780b475ee7769398e13859f93893ccbb916bd4229a39f4c119169a69231e6fd411c WHIRLPOOL 9815abce63dcf8e865c61610f1b04915ced9b29c65cd831022f5b6f261bd55efc700b6fd5ee2741332023b85682b08d3a327998c57be33846dffdcb60eb1339b
DIST eduke32_src_20130207-3467.tar.bz2 5707852 SHA256 95bd278a3d0e88dd202ee93616bbc55a64e88f9947efb80e058f7174cd66d021 SHA512 84b2effa4b5a6b60d60096dc216cb217e0b6a5998ecb76460ccb93cf903dfe24b464b4b99d142ebc4f7c0999761106f4a7d10b42d61575a93a7b1c43ead44d51 WHIRLPOOL 4892a3dee06a86ccb2d4ef05f1f01069e088d01445872e81703c21b28e12c5d002f09471e6f52c698609186c38d947ce5f01df27812d3077dd96f5a7a44b2435
DIST eduke32_src_20130317-3572.tar.bz2 10591673 SHA256 082b0676f184ad6fe574925f9be95e31318b9eff38a7117c9d094fb64b57967d SHA512 911c282918ae6173ced1bca3461da69ecb7c5893023dfe9a4d1261fd47b64aba1fcde9514746ae38daabf8ece7739f8e1c9257e68d929ef607bbcff030179e60 WHIRLPOOL 1642facdedd1a8824ac1d453278b3ac6d61d0dfd72210511cf1855bede570bc3111b972f7f6fe984f9aba039f28967e4e546d7e8f53be7e592ce1a8b1f19cef5
+DIST eduke32_src_20130627-3905.tar.bz2 11047453 SHA256 de177c7f064c8fb44b78d31cc4ba35c35b29525bfecee628fe3b171fe7b104c4 SHA512 16ceaf3c6949078a3fcbd66d1e0d5bf9be4ef1c1595fe93b00b7fc7de8c2f329e7f2981976aad8f417d1d6977b30f6176d5f399714771499aeae229db390f483 WHIRLPOOL b83504536ad6dfc70588116b7b91102a0623d149d47b7747dcd5b8b15aa0782a7f28fd757bb63a7a4dd5f2a9468f631b8242f9ec41b637d098aba24019a52a23
EBUILD eduke32-20130207.3467.ebuild 4281 SHA256 608c1a6c9f1d6f639cccb0f04f002ee23006feea0571e15fd00700ae635951d0 SHA512 8f6b5fb2c5496ca42e771c893325f4c981aecddc9ba666af7db08531624dcf92a2a6c98fbadf79cf7ef08874ce71495dbda96bba612afc4610fb73c251756f2e WHIRLPOOL 9e56add07d73b587a6c98a1a47abaa9135ccfae90d17f7229574b061c3d12227a36c009299c944b3ffac56a696acb6ac62ae468deafc91b24e29a9d1cee5f02c
EBUILD eduke32-20130317.3572-r1.ebuild 6465 SHA256 61296578601dbc0beea59cbd67ef57360f19db91318f88479a1635688739011e SHA512 adfc89ecc91ebd4fc149d8f9788744a18a0788b345b7bc657bd52cb7edf2e264313a38bbd4b2a2864f35d286d5cdaf2c4be5c5722c615cd7502e0088db4d21fa WHIRLPOOL 91a38c3daddba853d4a4f2fee67b7765f4c301d2a6df75b2a634601f431ec92a1737b2555bd3194593e39aa9e7225f4fe66d49b22d76e203f9face6f3ccec722
EBUILD eduke32-20130317.3572.ebuild 4281 SHA256 b2382001a625a6907629d9440b93ae891ad8794a45283be4eb92f80d7393cb71 SHA512 5075f0bbba780adfd2812f22e8692cda260f6b76f2e7adeb6364d658720619822b002367d7f98d53ade6a6d3b877b80b58167fa9bfd42b75597c5c46288535a9 WHIRLPOOL 9d8fe2514293efc324cd28563e6398ce2523494a2de2f0fa304a0612c967a41ac36daca5f43df64a78f6c918ce1a5446c3c1e4b3133e231b49ffc14335dd5aa3
-MISC ChangeLog 1506 SHA256 6dd872eb5c84be62e4b8b6c59e942432aa1e385d1f6a107947b1bf423526b08d SHA512 f7b9ae201f920cdcadd8863c69a6aab5c368d67fcd286e5fb155f04025faa01488254f6947bb7439b8f93a4e0feb63492519f4858626c02f8bba8433f2564265 WHIRLPOOL b1f7b876a1044f3416ffa278584a4b90b3a04147af0a3d4dcc426ec7867bee738e09b7d31b115785b0f6ddc313053d243c57c0b5380dff8a730a7ea0e1b31912
+EBUILD eduke32-20130627.3905.ebuild 6458 SHA256 8d98136327ca9095f63094df09ef066f9eef871238e43419db8bd606a2cf3c2e SHA512 67f96ff03443136f53576d1dfb1f4179257838cd28d9413b2d3944f3ea29e2ca8396e12fb279a84e521819ab9e0fbbf1cd553ebf9a882eaa082fbdd961c3a1db WHIRLPOOL bbc87a799b6095e028268bd5764f28741f1ee100021ef9fb674fa4c559195317138ec42af49c095a11f3876e0beb1ab79877db89a6af8c5fcc5bded18a8354f4
+MISC ChangeLog 1683 SHA256 f87657bfac0fc2ba4370b1a36894cc975fd5db7a62f71cfd54c65a1b8bfe89bf SHA512 ff372f9ae44ba28ca1c0c81bc03b8d303629b5098174cc13b514119ee0759306bed9653d55e87b1368611df043855c0bc0c66195af04aabcb241251714bf354b WHIRLPOOL 931c995ee591bc161cb93c27f48544bf78b354dc4f312e73a1e69e2a2121a81583fdfacbdd1fa63e1e7498baca149f0ac38e92be7879f58e4c656ea6973d7291
MISC metadata.xml 935 SHA256 8a0d14f365b505bd844e29a4a6d78105dd85ac7f006d54e725c5ddb39b430ec3 SHA512 a73aed4971a38b46c906c69a7cc052e2faafa40766207befdc3fea99ff6278729b867c0757000216542db6902eef3398491338dc56b7dfc3459c66bb8ae34898 WHIRLPOOL e049c978f5f7ebdc6aafa1a2f9f11664b6c3d8e03e0f75fc483e18b3ff7e7dc6f5360cede02290ec8b70cdfa6fdbe94b5d7d1f9bfce7c4efcbdef8198fd271a9
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJRZsXZAAoJEFpvPKfnPDWzrh8H+wV2DeBKosNAO8ZP1Ppi0Syi
-2RRHcu35rF6rDGwoKHRS7cUxBRED/1GzJ+CGGfieoxfn2LC/HzWhWg1fvmQhJNxE
-NchYGrtiUPehc6Oj5N6uogIjQ8yle+eAnyDjl2Gh4zrDi0osANafT54Hkxek4OyN
-zDdFXKf42EoRlpyrcioKO+JAjLdGFud5RC7XvIfn6bkXzR6NERUn0XmxDkqCZGG1
-46fmM9YcBLXJr+ayKl0HUWCCjrBd0ImEkETGpZyUf0QX39RWMnGYvRO7N7gL9kJM
-WWzXiUsKf3Q+ie7Qc2u6Z2Y3AJlWTNIzvft0D/PHqaVXLjxRu3Bh/1JyryO3hCY=
-=tJF/
+iQEcBAEBCAAGBQJRzNO8AAoJEFpvPKfnPDWzFA4H/0WIO3dwwWm4Q/oBRSXI78xe
+tBvAK4GDitiL2XvtnVcpu4wroVnZ+vmshE1ky7DW8OGw1tXixoQjoBG2Mpi0xlzq
+CPfO1Qfjyaa30TNM+xZAW+I8vqH9T138XdYgg2LMh/ZfABCGlS8aHw1VMZAJVlvG
+YI0Jexy/E4TgkSWvN5vTIK2uIWf2ySGM8nYr0ObtvB530pqATpgwkszH24QRx/vf
+5g7txcCMlbqLw+4YgY/nj4HJbS6ihXOVnbxkqqZ/UlzDupa+F5B/k82csftWUe8a
+uBDRBeKsy+DAbjNA3BMhpVx0tmE1WeDWrccDUaFvVbtRJ0O90A8l4W1OmdFz8IM=
+=bmXc
-----END PGP SIGNATURE-----
diff --git a/games-fps/eduke32/eduke32-20130627.3905.ebuild b/games-fps/eduke32/eduke32-20130627.3905.ebuild
new file mode 100644
index 000000000000..25645339d2d0
--- /dev/null
+++ b/games-fps/eduke32/eduke32-20130627.3905.ebuild
@@ -0,0 +1,216 @@
+# 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-20130627.3905.ebuild,v 1.1 2013/06/28 00:07:21 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#*.}
+
+# extensions
+MY_HRP=5.2
+MY_SC55=3.0
+MY_OPL=2.0
+MY_XXX=1.33
+
+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
+ textures? ( http://www.duke4.org/files/nightfright/duke3d_hrp.zip -> duke3d_hrp_${MY_HRP}.zip )
+ sc55-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_mus.zip -> duke3d_mus_${MY_SC55}.zip )
+ opl-musicpack? ( http://www.duke4.org/files/nightfright/music/duke3d_musopl.zip -> duke3d_musopl_${MY_OPL}.zip )
+ offensive? ( http://www.duke4.org/files/nightfright/duke3d_xxx.zip -> duke3d_xxx_${MY_XXX}.zip )"
+
+LICENSE="GPL-2 BUILDLIC textures? ( hrp_art )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cdinstall debug demo gtk offensive +opengl opl-musicpack +png samples sc55-musicpack +server textures tools +vpx"
+REQUIRED_USE="vpx? ( opengl )
+ textures? ( opengl )
+ offensive? ( textures )
+ ?? ( opl-musicpack sc55-musicpack )"
+
+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
+ gtk? ( x11-libs/gtk+:2 )
+ opengl? ( virtual/glu
+ virtual/opengl )
+ png? ( media-libs/libpng:0=
+ sys-libs/zlib )
+ vpx? ( media-libs/libvpx )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ x86? ( dev-lang/nasm )"
+PDEPEND="cdinstall? ( games-fps/duke3d-data )
+ demo? ( games-fps/duke3d-demodata )"
+
+S=${WORKDIR}/${PN}_${MY_PV}-${MY_BUILD}
+
+src_unpack() {
+ unpack ${PN}_src_${MY_PV}-${MY_BUILD}.tar.bz2 eduke32-icons.tar
+
+ if use textures; then
+ unzip -q "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip "hrp_readme.txt" \
+ || die "unzip hrp readme"
+ if use offensive; then
+ unzip -q "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip "xxx_readme.txt" \
+ || die "unzip xxx readme"
+ fi
+ fi
+ if use opl-musicpack; then
+ unzip -q "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip "readme.txt" \
+ || die "unzip musopl readme"
+ mv readme.txt musopl_readme.txt || die "mv musopl_readme"
+ elif use sc55-musicpack; then
+ unzip -q "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip "music_readme.txt" \
+ || die "unzip mus readme"
+ fi
+}
+
+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;" \
+ source/common.c || die "sed common.c path update failed"
+ sed -i \
+ -e "/OSD_SetLogFile/s;mapster32.log;${GAMES_LOGDIR}/mapster32.log;" \
+ source/astub.c || die "sed astub.c path update failed"
+ sed -i \
+ -e "/OSD_SetLogFile/s;${PN}.log;${GAMES_LOGDIR}/${PN}.log;" \
+ source/game.c || die "sed game.c path update failed"
+}
+
+src_compile() {
+ local MY_OPTS=(
+ AS=$(type -P nasm)
+ ARCH=
+ SYSARCH=
+ LTO=0
+ PRETTY_OUTPUT=0
+ RELEASE=1
+ LUNATIC=0
+ STRIP=touch
+ LINKED_GTK=1
+ CPLUSPLUS=0
+ $(usex gtk "WITHOUT_GTK=0" "WITHOUT_GTK=1")
+ $(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() {
+ local ARGS
+
+ newgamesbin ${PN} ${PN}.bin
+ dogamesbin 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
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ # Install optional components
+ if use textures; then
+ newins "${DISTDIR}"/duke3d_hrp_${MY_HRP}.zip duke3d_hrp.zip
+ dodoc "${WORKDIR}"/hrp_readme.txt
+ ARGS+=" -g duke3d_hrp.zip"
+
+ if use offensive; then
+ newins "${DISTDIR}"/duke3d_xxx_${MY_XXX}.zip duke3d_xxx.zip
+ dodoc "${WORKDIR}"/xxx_readme.txt
+ ARGS+=" -g duke3d_xxx.zip"
+ fi
+ fi
+
+ if use opl-musicpack; then
+ newins "${DISTDIR}"/duke3d_musopl_${MY_OPL}.zip duke3d_musopl.zip
+ dodoc "${WORKDIR}"/musopl_readme.txt
+ ARGS+=" -g duke3d_musopl.zip"
+ elif use sc55-musicpack; then
+ newins "${DISTDIR}"/duke3d_mus_${MY_SC55}.zip duke3d_mus.zip
+ dodoc "${WORKDIR}"/music_readme.txt
+ ARGS+=" -g duke3d_mus.zip"
+ fi
+
+ # Install game data
+ doins package/{SEHELP.HLP,STHELP.HLP,m32help.hlp,names.h,tiles.cfg}
+ use samples && 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
+
+ games_make_wrapper "${PN}" "${GAMES_BINDIR}/${PN}.bin ${ARGS}"
+ make_desktop_entry ${PN} EDuke32 ${PN}
+ make_desktop_entry mapster32 Mapster32 mapster32
+
+ 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-20130627.3905-QA.patch b/games-fps/eduke32/files/eduke32-20130627.3905-QA.patch
new file mode 100644
index 000000000000..1c73fb63b33a
--- /dev/null
+++ b/games-fps/eduke32/files/eduke32-20130627.3905-QA.patch
@@ -0,0 +1,160 @@
+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
+@@ -311,10 +311,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
+@@ -166,13 +166,6 @@
+ PROFILER?=0
+ MUDFLAP?=0
+
+-# Select the default optimization level for release and debug builds.
+-ifeq ($(RELEASE),0)
+- OPTLEVEL?=0
+-else
+- OPTLEVEL?=2
+-endif
+-
+ ifeq ($(RELEASE),0)
+ override STRIP=
+ endif
+@@ -275,11 +268,9 @@
+
+ # compiler flags etc.
+ BASECFLAGS=
+-BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
+-BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings
+-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)))
+ ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 1)))
+@@ -305,20 +296,6 @@
+ BASELIBS+= -lvpx
+ endif
+
+-
+-ifneq ($(RELEASE)$(DEBUGANYWAY),10)
+- # debug build or DEBUGANYWAY=1 --> -g flag
+- ifneq (0,$(CLANG))
+- debug=-g
+- else ifeq ($(PLATFORM), WII)
+- debug=-g
+- else
+- debug=-ggdb
+- endif
+-endif
+-
+-debug+= -O$(OPTLEVEL)
+-
+ ifneq (0,$(RELEASE))
+ # Debugging disabled
+ ifeq (0,$(CLANG))
+@@ -424,7 +401,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/src
+@@ -437,7 +414,7 @@
+ 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
+
+@@ -453,7 +430,7 @@
+ 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
+@@ -167,13 +167,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
+
+-.SILENT:
++ifeq ($(PRETTY_OUTPUT),1)
++ .SILENT:
++endif
+ .PHONY: clean cleanutils veryclean all utils dxutils sdlutils printutils printsdlutils printdxutils enginelib editorlib
+
+ # TARGETS
+@@ -266,7 +268,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