summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-12-12 21:34:49 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-12-12 21:34:49 +0000
commit8e643fd7a008fca0a267a61df89fd8b42e4c054f (patch)
tree85e54187b1e3a8f902d54eb2712153a7b76596a4 /games-action
parentVersion bump (diff)
downloadhistorical-8e643fd7a008fca0a267a61df89fd8b42e4c054f.tar.gz
historical-8e643fd7a008fca0a267a61df89fd8b42e4c054f.tar.bz2
historical-8e643fd7a008fca0a267a61df89fd8b42e4c054f.zip
version bump wrt #376855
Package-Manager: portage-2.2.0_alpha145/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-action')
-rw-r--r--games-action/supertuxkart/ChangeLog9
-rw-r--r--games-action/supertuxkart/Manifest21
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.8-fribidi.patch48
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.8-gentoo.patch17
-rw-r--r--games-action/supertuxkart/files/supertuxkart-0.8-irrlicht.patch69
-rw-r--r--games-action/supertuxkart/supertuxkart-0.8.ebuild75
6 files changed, 230 insertions, 9 deletions
diff --git a/games-action/supertuxkart/ChangeLog b/games-action/supertuxkart/ChangeLog
index dd00386fda04..253462c9a7ee 100644
--- a/games-action/supertuxkart/ChangeLog
+++ b/games-action/supertuxkart/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-action/supertuxkart
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/supertuxkart/ChangeLog,v 1.28 2012/12/07 23:36:34 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/supertuxkart/ChangeLog,v 1.29 2012/12/12 21:34:43 hasufell Exp $
+
+*supertuxkart-0.8 (12 Dec 2012)
+
+ 12 Dec 2012; Julian Ospald <hasufell@gentoo.org> +supertuxkart-0.8.ebuild,
+ +files/supertuxkart-0.8-fribidi.patch, +files/supertuxkart-0.8-gentoo.patch,
+ +files/supertuxkart-0.8-irrlicht.patch:
+ version bump wrt #376855
07 Dec 2012; Julian Ospald <hasufell@gentoo.org> supertuxkart-0.7.ebuild:
prepare deps for irrlicht-1.8 import, fix as-is license to ZLIB
diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest
index b25fc8b278ec..0bb588fd454d 100644
--- a/games-action/supertuxkart/Manifest
+++ b/games-action/supertuxkart/Manifest
@@ -3,19 +3,24 @@ Hash: SHA256
AUX supertuxkart-0.7-build.patch 6759 SHA256 03e81146a1b2dda8b4382abf8258a319d4b9057f5a06e661ea8cef18c4dd5550 SHA512 a886150a016f3deeafa779685de6039e81289e2241003f174e2865ac5c1a1eac5d91db07c7bf3f20f887928e384a2856dde518ff3f2d5c23600c2158a590b587 WHIRLPOOL 65acff78d23171faae5ce9db52bc0cc4ce2ae75467fb46bec181db256c2780464ece41ecec3ad32e14abb8af6eaccefaf26a68d1bc58492fb7c5c84b02fd3770
AUX supertuxkart-0.7-underlink.patch 819 SHA256 2e4b3a83bcb7e747b0f24fde7f955e2a972f70014d47124d8d93559e896269e1 SHA512 4def49ba56fc1ddeea75e60cd059017a50f1259bcf512501ab2c772fe398003351f2560d60e0b526e60f67553548a01703811e6f43d86b67b96bf0b69510d567 WHIRLPOOL ad7180950cf6c041bbf236f5f6e1f5c8941c3b3441f382f8b24dbc7322062a04c3ed2095bdca47145487362cb0a609026a0b00a626662d40d50864a356557f7c
+AUX supertuxkart-0.8-fribidi.patch 1766 SHA256 ef11ccc0e759778184f686d9e3637f863ceda9defe4355da0128ecd20963fe51 SHA512 0998db03662402781b00f0792e365046dbc1157cf0278eaeb8da38a8f8992274320ba887eb4f9365d3c98272199020116ea3ac867f0841a8817e7f5096618a93 WHIRLPOOL 8369f96bf8f6c389d9582a3fd617653b23f4fe50a7c9cb5ff19933a594a06aa979b5839f66b507b7a5a3edd46a3eab4622a6970d67d360f38ccd2b676c6c2fbd
+AUX supertuxkart-0.8-gentoo.patch 377 SHA256 a574c514490744cb98dc97460d33acfd26336d41d6fbc84145be7ea052b7c3f8 SHA512 07a49a03f943fb14543a01c705f69dbf7fc5238510d6ad615243c51cb142e856af3e3bb4cc2134b28652acf2944fdf9075311947c2afdb9d6dd62033222a016e WHIRLPOOL 2e0086cdbc34a278707254cde7239ac38549212baecea608b56f014aed9431910e28b6504e532ac8992b4ecac01001a8878557fdf9703167e8ddc767c2e5a555
+AUX supertuxkart-0.8-irrlicht.patch 4824 SHA256 0388d3e5f5519039208069e0ff88edb7936ccf8038e3082c4ed432ab46deb09d SHA512 1ac949874baf83ae501bbf01b0678fe91a9d019b9939f7f1383c182a0ff0ace0b9154c23d14fc2bca8b4e7d8708d81b4f3a58e0019032c2a8738f887ad7990ce WHIRLPOOL 06b719b6136841baff4c9d81f386f4d56bda04ab224c21522c54369af1259f01a1e85e372a675aa5d78b6c1e8221fc45012d869dfe5c034bb4de25df1acc7add
DIST supertuxkart-0.7-src.tar.bz2 110770427 SHA256 18543c4b0c48c4952efe076cf9cdb13bdfc381bc2f249eb9b41b611970350006 SHA512 0c948c4adbac07fbe2048f4f96083dd5e07b754b5130cd766dcd08acc793a46a484c68fdf3b74e8fe410b6c1ed83cd8c575f659502e9ed816c03ad889ecd6089 WHIRLPOOL c161e7e38033d6becc0a481821c083a1a22e0054c8f29fa9fe15a3cacace301fb08505cce9e9459b867954e2199c3b990ae75f2a38eb720e1d6796b6d5f8e798
+DIST supertuxkart-0.8-src.tar.bz2 171184279 SHA256 b99f3d2311457a34db3c42ba2195662f2993a48eae4f6b1f175dbcce09ad4b8b SHA512 1936ff85ab896ad46633e53423a55c74aebe7a49d55024ed9bd76baf735e2e3c1ada0e83e3cc29dc7b9ff257484f2a9edb0bf5cf61b0b78fa5757f2e702a6f72 WHIRLPOOL f196b1faa13e6e7282df3ca88597a8dcaf1a0ef122274faef8b9ec123eb249ff93cf1b902b31376083cf02c1a267ed80a5b3e2c7a59b6526effefff260d742bf
DIST supertuxkart.png 4435 SHA256 99bc1801cb0514946cb0171d6d5a84484b6dc881edfa7f096b6eb5fea2f28828 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda WHIRLPOOL eef651802a927b451226fc06a682d7dea68b65b05195130ccfc7544165f26f65bda4fc9565e09d6487d02be3cf57880b0c6c257f26587c6bc6d30afc6aa5d3c2
EBUILD supertuxkart-0.7.ebuild 1437 SHA256 8b97e588feafb1e5ddae49d2d6dd9374719573094d85a0dc75336164e2a5b76f SHA512 0302146be7eaca4caf18842233e08fe0c998a111242499ae35e5487869dcba9ed7516578d602eac84cac16b3ef4b9e17c6179ba0f646bc352a301808095ad8fe WHIRLPOOL 2ddb3cdc5d18c5d83055df15602492a2bd07c9a077883048855825ba4715e37e9b018cc3521f58f24972831ebc78ac7a5546276980868399dd8b02a8d54459e9
-MISC ChangeLog 3830 SHA256 6516bde767cc7af29f5ad585fb2315f5205543386dc9cab0e61fc44b452ec64c SHA512 df78b11fbfcc4e08a4bb29d3831ae36e83d2b40ef7ed67889f8a433e34f209df6d9a19b87b7c741f1ced25139af149ad9e1c86f6b58f81a0eefee849e2cea1ac WHIRLPOOL 9059f893fceb5425fe39354914d6e90de105b6ccc6e38994664bd0756504c47fc421b3ebc26dc2c2d55656bc10c54b8b3cbbcf460edb2298e2c48be75d4dbedd
+EBUILD supertuxkart-0.8.ebuild 1973 SHA256 23e8338cc6fd19e6d367feab1af5bddcff1afb704443a9101e391e387bcaaebd SHA512 75dfc5c4aca9ce56ab7d450842f8bf278e4881bac3bcad6415ca43ead75f7f7966889ba89995986c83e842b12dd599b2399a94374c70eacd360d5ce1a924b7db WHIRLPOOL dd957353d27f674ac043d32a9720a439c79cb675c3d0db1d5250bc1e081e4e100376a469be800ab6c45524e90715b7fde799316172ff12eb4461ae8100413874
+MISC ChangeLog 4089 SHA256 6137d250a95ec881e1c1323a4fa5402e170889c4f73c16aaade7b09f848c278e SHA512 d40bacb622e6636f5b080f3436c042ffaa0edad2720af2967ca616eda25e13e180d0ece6dcbfa2b3735cb89528e2ca139a9ab1b0f7e4060e73ebda7d6ab286cc WHIRLPOOL 7f37eec33d73169e7589402c14603f7f0ec09a142a0c35b03e0b975d982a0189ae50903deb1e41aac7dbb13e2d1b3c4f833845a3cf80fc26c5e952c9970aa81e
MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQwn2HAAoJEFpvPKfnPDWzh+cH/ipkyfeYGTPUl8tFd5hnJ1XI
-Cuk+7C4UlqsqadRczVPk9a47e/zJdcKWUkLbiWDVfulOlULQx2lNVqpJuV6gAHqq
-vpfuYTD9ShDTeMSiK4Wg0aujfIYquuml8n674Ppow0QeUbQLwI8ZeHhasxK0dcm+
-v3aeLjUHBRrP4qTTaRGL0W8muAStj3Rm2qD+ZYPhl6BpEDY0XpLq9LAWkob1zzlY
-DD9vAsEBn7kcgoy7KhIhZzwgK7VpNaxdWo33xbCH8s6GmOR7chq1vBlffNUdgAYk
-XdX0+LCh93VCZ+6KUs6R/AkGOohdaBZDByswddnO8g1lEARVXqOlBg2Xu3X61Jg=
-=Z2we
+iQEcBAEBCAAGBQJQyPh5AAoJEFpvPKfnPDWzqQUIALA0yJiOO7JavApj9ckt5GXr
+fuGjUA54KqWKLSoKaxUxkjjKGAYKXhciYnG5pQu4/nss/iWmW6kPe2T30/203qnP
+Iw1JTd2WtOtcKdYu9b9KFzvRFCpW1uYn2/H5Ee911pk0YSvwbLCHJlDfUskVeUe7
+6G+RLIMGNUCw6PniS3sKZfw26cNcOIXjl/BBJ37GUefj0h0o4Dv8I00sanBUeEt2
+Ed2Pcvo/tY8CRgDZ03lx6vz825seHYLppIx+sbXHNSqsd8P1edhe9QZm6PyWR3O5
+HDFFMQ59RTNhQ7TXzWeTWbiaBUm80Q98djMSQX6WpeSXO/D9ULYyHfw6N+JW0LI=
+=9UBX
-----END PGP SIGNATURE-----
diff --git a/games-action/supertuxkart/files/supertuxkart-0.8-fribidi.patch b/games-action/supertuxkart/files/supertuxkart-0.8-fribidi.patch
new file mode 100644
index 000000000000..026471afca59
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.8-fribidi.patch
@@ -0,0 +1,48 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Dec 12 18:33:26 UTC 2012
+Subject: use pkgconfig to locate fribidi
+
+https://sourceforge.net/apps/trac/supertuxkart/ticket/840
+
+--- cmake/FindFribidi.cmake
++++ cmake/FindFribidi.cmake
+@@ -9,19 +9,27 @@
+ # FRIBIDI_LIBRARIES
+ # Fribidi library list
+
++if(UNIX)
++ include(FindPkgConfig)
++ pkg_check_modules(FRIBIDI fribidi)
++else()
++ set(FRIBIDI_FOUND 0)
++endif()
+
+-find_path(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h PATHS /Library/Frameworks/fribidi.framework/Headers "${PROJECT_SOURCE_DIR}/dependencies/include")
+-find_library(FRIBIDI_LIBRARY NAMES fribidi PATHS /Library/Frameworks/fribidi.framework "${PROJECT_SOURCE_DIR}/dependencies/lib")
+-
+-include(FindPackageHandleStandardArgs)
+-find_package_handle_standard_args(Fribidi DEFAULT_MSG FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
+-
+-
+-if(APPLE)
+-set(FRIBIDI_INCLUDE_DIR "/Library/Frameworks/fribidi.framework/Headers")
++if(NOT FRIBIDI_FOUND)
++ find_path(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h PATHS /Library/Frameworks/fribidi.framework/Headers "${PROJECT_SOURCE_DIR}/dependencies/include")
++ find_library(FRIBIDI_LIBRARY NAMES fribidi PATHS /Library/Frameworks/fribidi.framework "${PROJECT_SOURCE_DIR}/dependencies/lib")
++
++ include(FindPackageHandleStandardArgs)
++ find_package_handle_standard_args(Fribidi DEFAULT_MSG FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
++
++ if(APPLE)
++ set(FRIBIDI_INCLUDE_DIR "/Library/Frameworks/fribidi.framework/Headers")
++ endif()
++
++ # Publish variables
++ set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
++ set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
+ endif()
+
+-# Publish variables
+-set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
+-set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
+ mark_as_advanced(FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
diff --git a/games-action/supertuxkart/files/supertuxkart-0.8-gentoo.patch b/games-action/supertuxkart/files/supertuxkart-0.8-gentoo.patch
new file mode 100644
index 000000000000..14a9d7f59ddc
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.8-gentoo.patch
@@ -0,0 +1,17 @@
+this is gentoo specific, because of unbundling Irrlicht dependencies
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -196,7 +196,11 @@
+ ${IRRLICHT_LIBRARY}
+ ${IRRLICHT_XF86VM_LIBRARY}
+ ${OPENAL_LIBRARY}
+- ${OPENGL_LIBRARIES})
++ ${OPENGL_LIBRARIES}
++ png
++ jpeg
++ bz2
++ z)
+
+ if(USE_FRIBIDI)
+ target_link_libraries(supertuxkart ${FRIBIDI_LIBRARIES})
diff --git a/games-action/supertuxkart/files/supertuxkart-0.8-irrlicht.patch b/games-action/supertuxkart/files/supertuxkart-0.8-irrlicht.patch
new file mode 100644
index 000000000000..43130d14a09a
--- /dev/null
+++ b/games-action/supertuxkart/files/supertuxkart-0.8-irrlicht.patch
@@ -0,0 +1,69 @@
+unbundle Irrlicht dependencies
+and respect CFLAGS
+
+--- lib/irrlicht/include/IrrCompileConfig.h
++++ lib/irrlicht/include/IrrCompileConfig.h
+@@ -245,7 +245,7 @@
+ //! Define _IRR_USE_NON_SYSTEM_JPEG_LIB_ to let irrlicht use the jpeglib which comes with irrlicht.
+ /** If this is commented out, Irrlicht will try to compile using the jpeg lib installed in the system.
+ This is only used when _IRR_COMPILE_WITH_LIBJPEG_ is defined. */
+-#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
++//#define _IRR_USE_NON_SYSTEM_JPEG_LIB_
+ #ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
+ #undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
+ #endif
+@@ -261,7 +261,7 @@
+ //! Define _IRR_USE_NON_SYSTEM_LIBPNG_ to let irrlicht use the libpng which comes with irrlicht.
+ /** If this is commented out, Irrlicht will try to compile using the libpng installed in the system.
+ This is only used when _IRR_COMPILE_WITH_LIBPNG_ is defined. */
+-#define _IRR_USE_NON_SYSTEM_LIB_PNG_
++//#define _IRR_USE_NON_SYSTEM_LIB_PNG_
+ #ifdef NO_IRR_USE_NON_SYSTEM_LIB_PNG_
+ #undef _IRR_USE_NON_SYSTEM_LIB_PNG_
+ #endif
+@@ -598,7 +598,7 @@
+ /** If this is commented out, Irrlicht will try to compile using the zlib
+ installed on the system. This is only used when _IRR_COMPILE_WITH_ZLIB_ is
+ defined. */
+-#define _IRR_USE_NON_SYSTEM_ZLIB_
++//#define _IRR_USE_NON_SYSTEM_ZLIB_
+ #ifdef NO_IRR_USE_NON_SYSTEM_ZLIB_
+ #undef _IRR_USE_NON_SYSTEM_ZLIB_
+ #endif
+--- lib/irrlicht/source/Irrlicht/Makefile
++++ lib/irrlicht/source/Irrlicht/Makefile
+@@ -46,11 +46,7 @@
+ IRRIOOBJ = CFileList.o CFileSystem.o CLimitReadFile.o CMemoryFile.o CReadFile.o CWriteFile.o CXMLReader.o CXMLWriter.o CWADReader.o CZipReader.o CPakReader.o CNPKReader.o CTarReader.o CMountPointReader.o irrXML.o CAttributes.o lzma/LzmaDec.o
+ IRROTHEROBJ = CIrrDeviceSDL.o CIrrDeviceLinux.o CIrrDeviceConsole.o CIrrDeviceStub.o CIrrDeviceWin32.o CIrrDeviceFB.o CLogger.o COSOperator.o Irrlicht.o os.o
+ IRRGUIOBJ = CGUIButton.o CGUICheckBox.o CGUIComboBox.o CGUIContextMenu.o CGUIEditBox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIInOutFader.o CGUIListBox.o CGUIMenu.o CGUIMeshViewer.o CGUIMessageBox.o CGUIModalScreen.o CGUIScrollBar.o CGUISpinBox.o CGUISkin.o CGUIStaticText.o CGUITabControl.o CGUITable.o CGUIToolBar.o CGUIWindow.o CGUIColorSelectDialog.o CDefaultGUIElementFactory.o CGUISpriteBank.o CGUIImageList.o CGUITreeView.o
+-ZLIBOBJ = zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o
+-JPEGLIBOBJ = jpeglib/jcapimin.o jpeglib/jcapistd.o jpeglib/jccoefct.o jpeglib/jccolor.o jpeglib/jcdctmgr.o jpeglib/jchuff.o jpeglib/jcinit.o jpeglib/jcmainct.o jpeglib/jcmarker.o jpeglib/jcmaster.o jpeglib/jcomapi.o jpeglib/jcparam.o jpeglib/jcprepct.o jpeglib/jcsample.o jpeglib/jctrans.o jpeglib/jdapimin.o jpeglib/jdapistd.o jpeglib/jdatadst.o jpeglib/jdatasrc.o jpeglib/jdcoefct.o jpeglib/jdcolor.o jpeglib/jddctmgr.o jpeglib/jdhuff.o jpeglib/jdinput.o jpeglib/jdmainct.o jpeglib/jdmarker.o jpeglib/jdmaster.o jpeglib/jdmerge.o jpeglib/jdpostct.o jpeglib/jdsample.o jpeglib/jdtrans.o jpeglib/jerror.o jpeglib/jfdctflt.o jpeglib/jfdctfst.o jpeglib/jfdctint.o jpeglib/jidctflt.o jpeglib/jidctfst.o jpeglib/jidctint.o jpeglib/jmemmgr.o jpeglib/jmemnobs.o jpeglib/jquant1.o jpeglib/jquant2.o jpeglib/jutils.o jpeglib/jcarith.o jpeglib/jdarith.o jpeglib/jaricom.o
+-LIBPNGOBJ = libpng/png.o libpng/pngerror.o libpng/pngget.o libpng/pngmem.o libpng/pngpread.o libpng/pngread.o libpng/pngrio.o libpng/pngrtran.o libpng/pngrutil.o libpng/pngset.o libpng/pngtrans.o libpng/pngwio.o libpng/pngwrite.o libpng/pngwtran.o libpng/pngwutil.o
+ LIBAESGM = aesGladman/aescrypt.o aesGladman/aeskey.o aesGladman/aestab.o aesGladman/fileenc.o aesGladman/hmac.o aesGladman/prng.o aesGladman/pwd2key.o aesGladman/sha1.o aesGladman/sha2.o
+-BZIP2OBJ = bzip2/blocksort.o bzip2/huffman.o bzip2/crctable.o bzip2/randtable.o bzip2/bzcompress.o bzip2/decompress.o bzip2/bzlib.o
+
+ # Next variable is for additional scene nodes etc. of customized Irrlicht versions
+ EXTRAOBJ =
+@@ -61,18 +57,16 @@
+
+ ###############
+ #Compiler flags
+-CXXINCS = -I../../include -Izlib -Ijpeglib -Ilibpng
++CXXINCS = -I../../include
+ CPPFLAGS += $(CXXINCS) -DIRRLICHT_EXPORTS=1
+-CXXFLAGS += -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
++CXXFLAGS += -Wall -fno-exceptions -fno-rtti
+ ifndef NDEBUG
+-CXXFLAGS += -g -D_DEBUG
+-else
+-CXXFLAGS += -fexpensive-optimizations -O3
++CXXFLAGS += -D_DEBUG
+ endif
+ ifdef PROFILE
+ CXXFLAGS += -pg
+ endif
+-CFLAGS := -O3 -fexpensive-optimizations -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
++CFLAGS += -DPNG_THREAD_UNSAFE_OK -DPNG_NO_MMX_CODE -DPNG_NO_MNG_FEATURES
+
+ sharedlib sharedlib_osx: CXXFLAGS += -fPIC
+ sharedlib sharedlib_osx: CFLAGS += -fPIC
diff --git a/games-action/supertuxkart/supertuxkart-0.8.ebuild b/games-action/supertuxkart/supertuxkart-0.8.ebuild
new file mode 100644
index 000000000000..8c2028dde817
--- /dev/null
+++ b/games-action/supertuxkart/supertuxkart-0.8.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/supertuxkart/supertuxkart-0.8.ebuild,v 1.1 2012/12/12 21:34:43 hasufell Exp $
+
+EAPI=2
+inherit cmake-utils eutils games
+
+DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
+HOMEPAGE="http://supertuxkart.sourceforge.net/"
+SRC_URI="mirror://sourceforge/supertuxkart/SuperTuxKart/${PV}/${P}-src.tar.bz2
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-3 CCPL-Attribution-ShareAlike-3.0 CCPL-Attribution-2.0 CCPL-Sampling-Plus-1.0 public-domain ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug"
+
+# don't unbundle irrlicht and bullet
+# both are modified and system versions will break the game
+# http://sourceforge.net/tracker/?func=detail&aid=3454889&group_id=74339&atid=540679
+
+# VERSION BUMP NOTICE: enet might be needed for supertuxkart-0.9
+RDEPEND="dev-libs/fribidi
+ media-libs/freeglut
+ media-libs/libpng:0
+ media-libs/libvorbis
+ media-libs/openal
+ net-misc/curl
+ sys-libs/zlib
+ virtual/glu
+ virtual/jpeg
+ virtual/libintl
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXxf86vm"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+S=${WORKDIR}/SuperTuxKart-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{gentoo,fribidi,irrlicht}.patch
+
+ # inconsistent handling of debug definition
+ # avoid using Debug build type
+ use debug &&
+ sed -i \
+ -e 's/add_definitions(-DNDEBUG)/add_definitions(-DDEBUG)/' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSTK_INSTALL_BINARY_DIR="${GAMES_BINDIR}"
+ -DSTK_INSTALL_DATA_DIR="${GAMES_DATADIR}"/${PN}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # build bundled irrlicht
+ NDEBUG=1 emake -C lib/irrlicht/source/Irrlicht
+
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry ${PN} SuperTuxKart
+ dodoc AUTHORS ChangeLog README TODO
+ prepgamesdirs
+}