diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-games/clanlib |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-games/clanlib')
-rw-r--r-- | dev-games/clanlib/Manifest | 17 | ||||
-rw-r--r-- | dev-games/clanlib/clanlib-0.8.1.ebuild | 76 | ||||
-rw-r--r-- | dev-games/clanlib/clanlib-2.3.7.ebuild | 97 | ||||
-rw-r--r-- | dev-games/clanlib/clanlib-4.0.0.ebuild | 76 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch | 28 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch | 33 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch | 10 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch | 11 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch | 21 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-autotools.patch | 45 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-doc.patch | 14 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-4.0.0-fix-build-system.patch | 25 | ||||
-rw-r--r-- | dev-games/clanlib/metadata.xml | 61 |
13 files changed, 514 insertions, 0 deletions
diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest new file mode 100644 index 000000000000..a730e7e6fe29 --- /dev/null +++ b/dev-games/clanlib/Manifest @@ -0,0 +1,17 @@ +AUX clanlib-0.8.1-gcc43.patch 605 SHA256 97420cdbef4a3f09b61ddf54881a907616b8c73337928fcdc6e11d783f584320 SHA512 c1269c01852fd2912e895af82f2b109e7d81120a18dc3a7e2542a7bdc80e1da151c5e8a82914eb1fece2e51db17b7f1b99198dde6a36fa437dad3e9b4d6a8b83 WHIRLPOOL 8ac30a9eb0fff42711af134ca4f1f6559c902c76cbdc4584723b40bf48da47df40531205556cddc95bcb6efe022311e890c1a15474ee19c371f15a8faea39bff +AUX clanlib-0.8.1-gcc44.patch 1523 SHA256 e6b8dc302fc3587fae86d1ecf4ac5fbaf2a0563996887b38ea3f55d84b79e979 SHA512 7c3b154affede758a0ac93f5c142144e8a26c65b7c50a443b49633e0c2835fdfab90c6363d4b1997bfb53b0112bc16ca12abc44aacf7af927329e102fc1424b7 WHIRLPOOL 9551cfd00c00711127a51f1680b148b0b93ccd3bfa22d60150a73e1d45d7e7df949c3571f932bbd695e229bccf4a5fc2463d9e5bb4d152838db52553a1b9b26a +AUX clanlib-0.8.1-gcc47.patch 338 SHA256 fd5a02a670575f6298516d201bdaecabacb13ea01015e8d6abca1ee1fa41b06f SHA512 08f9719c97e0bf5fab83e56a881ac7a3edd162b052b5e8fea5878badedbf266b36788f77afd93032f4129ea8e50a83046f5672675e6616cdb29cb6fc5b6c635a WHIRLPOOL 6231a9b6270ac4da92c1a7d8645bb0dc492454eba89f51b559d103e37a3ce56bd1905726515fea18cff1bce8e1b50b2d8cf69db3a516dbda99174e471b67b2cd +AUX clanlib-0.8.1-libpng15.patch 377 SHA256 6e6a878d16292255cff4f64605db6478ac855f079505434ca9a2f61aadb88342 SHA512 735fd6cadbd1c76ff38a229361c82c1208ea8ba8db60bd8bff082424244da9e88f1c74d8067991516866887d6240846c551a24a7f392a12ae3a2d6ce50e8644f WHIRLPOOL e35e13c89f90583fd4878b149fd9d6e8ad50131e11f94672171779f397fc020c58e5465a61774dedf467b02916acf113a5af28fddb502ae7f5f815df45474fa4 +AUX clanlib-0.8.1-ndebug.patch 866 SHA256 d48bdb0b6dee6b84b139eb951da657fa4d2c8427b9b4e7eb76b41a98e7aaf8d5 SHA512 653e70a71961e654bcdd488ccf4583c33dcb601fdef54fe15724e22cc0f0d51f265620137b4a2f194f1a915390c6be06adf66602b93c89d946a0a1650eee6419 WHIRLPOOL 05e452b4d264619eaa8e30e5449389974a6d75e8d064931ad40e308a94203e0858813234be8a1e44b3c6279c25a95d3f6592a4f6b753e3255329d858a2a4e0df +AUX clanlib-2.3.7-autotools.patch 1602 SHA256 9e75ca32d249d8103906a3ba681eb2b8b007939971630c7dd81fc01b006828d8 SHA512 d19fb6435adfe54fe1a6b2bff78dbb87bcf037ded720c4535dbfafef6bdd92c6c002f2ffdd6e563a360531b9a62817baf65ff959e44c0881fb0d95253a92b6fa WHIRLPOOL 46b6c21469a435656b6422eec7fa8c6237b5826c773372450ad177e62036e021d9c4708cf6b25646b0686c879b669d842813c63c4ce8281f87d3911752abbe10 +AUX clanlib-2.3.7-doc.patch 506 SHA256 072d83c56768f06af13ff23a3b8eeeee25cd0f05bed3044f049dc0f5fcf5a525 SHA512 df75223e466799bde70b07e8ea6f3724792dcd5fe96e417dad47b27d44a3d87b6b7157035f388a48ecce9985473a9e1d84a24de1c8f58247eb952fce457ceccb WHIRLPOOL 6632f9d2568174ad03865e87afe88d25a7b4f57f1e8eba363da69579f1e974a463a92959ecbd1ed40aeb4af549b8d66cb48e16125314d85e4f36c0608f6634f4 +AUX clanlib-4.0.0-fix-build-system.patch 622 SHA256 cb81f0954ced1d4f320435724f0b236b5173607c8c253d3fce78add16039d702 SHA512 bda813264f552eff8cc7cea45ec4ea29517a8590066c4b435942e97ea7d68e8d2f21bebf83141b04f1fcc84e936bb3a7ad354b644184dd56b746ab3bfeff9e19 WHIRLPOOL ea273b5d57aa93e85aaa948fc41dff280793c568667f0a2390f7b5a391d245422c9a6d1923aaa67ec11d3bd99635b094c51e1a3bcd5f0b5140216fce5c746388 +DIST ClanLib-0.8.1.tgz 7629019 SHA256 094331dda35b0d263431d1551991eb208d8e969824434925548a9fcd1d34e495 SHA512 277daaf1055ae0198be7a6bbfd415c79cfae9e2145f62553e83849d670f56e50b8484c83f8b85f23290002e0b0c72c1e01ca597ad608a0954a4add828177293b WHIRLPOOL be486125f406a307676c4957f977b6ccc6bc2ce527a72fb4febcb3d1c7e2acdc4fc6706b66b75412184c3a0744c53e962011b0c3ac22958da5e987f0fccc9d87 +DIST ClanLib-2.3.7.tgz 26132425 SHA256 d46127c08103f48d15936ceb9f95b3dfb1ff8ccba667cef1b3f8e639cb2601c2 SHA512 73169afc0f639390f80403150757a8a14f842bc291a9457c9bca1319642b78bc4d03a93327d75254230e39545c5b4b690e56dc0149ed7b60b223e5a5364e882a WHIRLPOOL a6547d0bc8d254e887c427dfff63deb2b69790124da3db49d54cf853f8c834d44172a06e92ef7fc5222c8c81f903ab29f186f85da698dc085f4138d147ddad68 +DIST clanlib-4.0.0.tar.gz 7435551 SHA256 9b35052308a2b933bba76596930ab550fc8cd1f80155fc62aa648a23c3f4406f SHA512 e727239d782d2d52ce2f927e16a88c469b30f46d5b9eba4573baa520d98f60515df7ff4dd921092ddd5cfe4c6f5c441e0f33469b774287003db439feb8b027fe WHIRLPOOL b541c0dca233570f5c203269684de2a187391f35278722e81ca64b5f9fc3d61cb2f3cb615db6d4d7956369c04fbb9aea165a0ee5df0210b5bd50ab669d4fd691 +EBUILD clanlib-0.8.1.ebuild 2045 SHA256 ada284bfc014683723b20c8be67f4b8c636b7d5fa1e265b53a118c2889b0c14b SHA512 6080681892d8a0e5dad2d8a8e075e83efb9ce65583cb0d711c6fe38828613ed6d6fc754ac5786737946963c456f4e2a554265ebc313a3c54b21e41a3fa9f2350 WHIRLPOOL 5b76357490f2eb34883e49d4429625dec7aabd6927b33e7405cc783f861ab1951d1a0ac058b7c61a9eb5133fd77f20d27c2eae3353919bfbc51d0aaacc3191ce +EBUILD clanlib-2.3.7.ebuild 2150 SHA256 5d25b701681f474fe338ab61c12601e792c2672dda867db83b0f9ca98cc8be06 SHA512 845fea2f039d35a937f75b88deb866c7db55903254b664ae0fa86520f5d0a7ba111466284f6be99ef6422403b1cdfd45ba6f7ba0ff97d26309ab65ba80eeef57 WHIRLPOOL 495c69a0fbb5c7ccc427621609e8d056d968712642bfb176914759760a7f79203372db6c6d141338bc81b99c767264818e3269e50337eb01c9cbd21a6a7758ed +EBUILD clanlib-4.0.0.ebuild 1476 SHA256 bce1aaa77aa718a04c3c84442e34b7db8b17806928831cd5594f9e2e42a06f7a SHA512 ea1285fabb1db6cbf41f3f92e948b9627d832e53c7ef3de7dae23c42a790d85b0f06f1860da98b9e7367809148fead5c5a70928ea007451cbcb46ddb461aca12 WHIRLPOOL 6db03aa0e805615169fb4883c4f6f84bde7b955a07eea2d45ae226b5c331b9d1026f1f8ca40640e6e738bc28cfa368e74a5edb198a83139096f03b6d585a8d79 +MISC ChangeLog 3462 SHA256 7f8c3a60ef606da2ff52ae6fb26f65453000880ae7fff2bb80f0d268837b6176 SHA512 da85daa7455b4a25ce5fb470d772bae2276375cb4466ef5e6c3a143dc13e043c24b9904097fd1768fdff680ebdb38993ea0729d2cb0938c8c7f1698fef72c142 WHIRLPOOL 446ed0a8066a39b0faec14072dedebc9b0e032acb512a121e61276c34134ef3ce82076f14e60e5e00595ce145fa144800d301b3cff571d9562110f50f1a00ea4 +MISC ChangeLog-2015 12725 SHA256 5b503f8449045bea5e0a57ddf905430858fa25d130d97ad2f788d98893825f75 SHA512 f9eccb4523ecf97dab909e5df8aa970bf169bb28eb01ae11e9d3c11420721055d18aeb02b7eee4cb17690d1c186d9d710aa0b7c434e5f731356180fd6a2e1a9d WHIRLPOOL a7ad03f57ae19bde1552bd778d48ef279acff8a13b1ec133c4011f7709299f10473b090a371b9f1156bc212615874ec50fbfda8385f2f704f64d738c2ef73e0d +MISC metadata.xml 3096 SHA256 1302308e4d4980d3de97cb74f0ea55a9be03d1a9eb11d62c115728a885ef7976 SHA512 7973a8121a9ae268d6572c9ae980f2b81650e159cfcbee7895097d906637159e4e3470fb7dadb1f58c4928d377860c73978b38c8bb03c44f8dc73d715d9139bd WHIRLPOOL 22a7788ad33bda246b8a5bdfd43e92f39d0276d8ae8a003e89b95b99e1701ff9bb9e505012c3e9ee4d3c8e65b4c4279983bc2420548ab4176cef02f1bcee925c diff --git a/dev-games/clanlib/clanlib-0.8.1.ebuild b/dev-games/clanlib/clanlib-0.8.1.ebuild new file mode 100644 index 000000000000..0e13a37d97d2 --- /dev/null +++ b/dev-games/clanlib/clanlib-0.8.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic eutils + +DESCRIPTION="multi-platform game development library" +HOMEPAGE="http://www.clanlib.org/" +SRC_URI="http://clanlib.org/download/releases-${PV:0:3}/ClanLib-${PV}.tgz" + +LICENSE="ZLIB" +SLOT="0.8" +KEYWORDS="amd64 x86" #not big endian safe #82779 +IUSE="doc ipv6 mikmod opengl sdl static-libs vorbis" + +# opengl keyword does not drop the GL/GLU requirement. +# Autoconf files need to be fixed +RDEPEND="media-libs/libpng:0 + virtual/jpeg:0 + virtual/glu + virtual/opengl + sdl? ( + media-libs/libsdl[X] + media-libs/sdl-gfx + ) + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXxf86vm + media-libs/alsa-lib + mikmod? ( media-libs/libmikmod ) + vorbis? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + x11-proto/xf86vidmodeproto" + +S=${WORKDIR}/ClanLib-${PV} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-ndebug.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-gcc47.patch \ + "${FILESDIR}"/${P}-libpng15.patch +} + +src_configure() { + #clanSound only controls mikmod/vorbis so there's + # no need to pass --{en,dis}able-clanSound ... + #clanDisplay only controls X, SDL, OpenGL plugins + # so no need to pass --{en,dis}able-clanDisplay + # also same reason why we don't have to use clanGUI + econf \ + --enable-dyn \ + --enable-clanNetwork \ + --disable-dependency-tracking \ + $(use_enable x86 asm386) \ + $(use_enable doc docs) \ + $(use_enable opengl clanGL) \ + $(use_enable sdl clanSDL) \ + $(use_enable vorbis clanVorbis) \ + $(use_enable mikmod clanMikMod) \ + $(use_enable ipv6 getaddr) \ + $(use_enable static-libs static) +} + +src_install() { + DOCS="CODING_STYLE CREDITS NEWS PATCHES README* INSTALL.linux" \ + default + if use doc ; then + dodir /usr/share/doc/${PF}/html + mv "${D}"/usr/share/doc/clanlib/* "${D}"/usr/share/doc/${PF}/html/ || die + rm -rf "${D}"/usr/share/doc/clanlib + cp -r Examples Resources "${D}"/usr/share/doc/${PF}/ || die + fi + prune_libtool_files +} diff --git a/dev-games/clanlib/clanlib-2.3.7.ebuild b/dev-games/clanlib/clanlib-2.3.7.ebuild new file mode 100644 index 000000000000..994ee11d94ce --- /dev/null +++ b/dev-games/clanlib/clanlib-2.3.7.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic eutils autotools-utils + +MY_P=ClanLib-${PV} + +DESCRIPTION="multi-platform game development library" +HOMEPAGE="http://www.clanlib.org/" +SRC_URI="http://clanlib.org/download/releases-2.0/${MY_P}.tgz" + +LICENSE="ZLIB" +SLOT="2.3" +KEYWORDS="amd64 x86" #not big endian safe #82779 +IUSE="doc ipv6 mikmod opengl sound sqlite cpu_flags_x86_sse2 static-libs vorbis X" +REQUIRED_USE="opengl? ( X )" + +RDEPEND="sys-libs/zlib + X? ( + media-libs/libpng:0 + virtual/jpeg:0 + media-libs/freetype + media-libs/fontconfig + opengl? ( virtual/opengl ) + app-arch/bzip2 + x11-libs/libX11 + ) + sqlite? ( dev-db/sqlite:3 ) + sound? ( media-libs/alsa-lib ) + mikmod? ( + media-libs/libmikmod + media-libs/alsa-lib + ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + media-libs/alsa-lib + )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen dev-lang/perl )" + +S=${WORKDIR}/${MY_P} + +PATCHES=( + "${FILESDIR}"/${P}-autotools.patch + "${FILESDIR}"/${P}-doc.patch +) +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=( + CODING_STYLE + CREDITS + PATCHES + README +) + +src_prepare() { + autotools-utils_src_prepare + ln -sf ../../../Sources/API Documentation/Utilities/ReferenceDocs/ClanLib +} + +src_configure() { + myeconfargs=( + $(use_enable doc docs) + $(use_enable cpu_flags_x86_sse2 sse2) + $(use_enable opengl clanGL) + $(use_enable opengl clanGL1) + $(use_enable opengl clanGUI) + $(use_enable X clanDisplay) + $(use_enable vorbis clanVorbis) + $(use_enable mikmod clanMikMod) + $(use_enable sqlite clanSqlite) + $(use_enable ipv6 getaddr) + ) + use sound \ + || use vorbis \ + || use mikmod \ + || myeconfargs+=( --disable-clanSound ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use doc && autotools-utils_src_compile html +} + +# html files are keeped in a directory that is dependent on the SLOT +# so to keep eventual bookmarks to the doc from version to version +src_install() { + autotools-utils_src_install + if use doc ; then + emake DESTDIR="${D}" install-html + dodoc -r Examples Resources + fi +} diff --git a/dev-games/clanlib/clanlib-4.0.0.ebuild b/dev-games/clanlib/clanlib-4.0.0.ebuild new file mode 100644 index 000000000000..310134a70f44 --- /dev/null +++ b/dev-games/clanlib/clanlib-4.0.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +MY_PN=ClanLib + +DESCRIPTION="Multi-platform game development library" +HOMEPAGE="https://github.com/sphair/ClanLib" +SRC_URI="https://github.com/sphair/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="4.0" +KEYWORDS="~amd64 ~x86" #not big endian safe #82779 +IUSE="cpu_flags_x86_sse2 doc examples ipv6 opengl sound static-libs X" +REQUIRED_USE="opengl? ( X )" + +RDEPEND=" + sys-libs/zlib + X? ( + media-libs/freetype:2 + media-libs/fontconfig + x11-libs/libX11 + opengl? ( + virtual/opengl + x11-libs/libXrender + ) + ) + sound? ( media-libs/alsa-lib )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + app-doc/doxygen + dev-lang/perl + media-gfx/graphviz + )" + +S=${WORKDIR}/${MY_PN}-${PV} + +PATCHES=( + "${FILESDIR}"/${PN}-4.0.0-fix-build-system.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_enable doc docs) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable opengl clanGL) \ + $(use_enable opengl clanUI) \ + $(use_enable X clanDisplay) \ + $(use_enable sound clanSound) \ + $(use_enable ipv6 getaddr) \ + $(use_enable static-libs static) +} + +src_compile() { + default + use doc && emake html +} + +src_install() { + default + + use doc && emake DESTDIR="${D}" install-html + use examples && dodoc -r Examples Resources + + # package provides .pc files + find "${D}" -name '*.la' -delete || die +} diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch new file mode 100644 index 000000000000..ca1d898ce5ab --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc43.patch @@ -0,0 +1,28 @@ +--- Sources/GL/opengl.cpp ++++ Sources/GL/opengl.cpp +@@ -51,6 +51,8 @@ + #endif + #endif + ++#include <cstring> ++ + std::vector<std::string> CL_OpenGL::m_ignored_gl_extension; + + CL_ProcAddress *CL_OpenGL::get_proc_address(const std::string& function_name) +@@ -414,4 +416,4 @@ + #endif + + m_ignored_gl_extension.push_back(extension_name); +-} +\ No newline at end of file ++} +--- Sources/Network/Socket/ip_address_getsock.cpp ++++ Sources/Network/Socket/ip_address_getsock.cpp +@@ -40,6 +40,7 @@ + #include "ip_address_getsock.h" + + #include <cstdlib> ++#include <cstring> + + #ifndef WIN32 + #include <sys/socket.h> diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch new file mode 100644 index 000000000000..ddf5a170b027 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc44.patch @@ -0,0 +1,33 @@ +diff -Naur ClanLib-0.8.1-old/Sources/GL/canvas_opengl.cpp ClanLib-0.8.1/Sources/GL/canvas_opengl.cpp +--- ClanLib-0.8.1-old/Sources/GL/canvas_opengl.cpp 2009-08-01 18:15:44.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/canvas_opengl.cpp 2009-08-01 18:08:55.000000000 +0200 +@@ -48,6 +48,7 @@ + #include "graphic_context_opengl.h" + #include "surface_target_opengl.h" + #include <cstring> ++#include <cstdio> + + ///////////////////////////////////////////////////////////////////////////// + // CL_Canvas_OpenGL construction: +diff -Naur ClanLib-0.8.1-old/Sources/GL/GLX/input_device_linuxevent.cpp ClanLib-0.8.1/Sources/GL/GLX/input_device_linuxevent.cpp +--- ClanLib-0.8.1-old/Sources/GL/GLX/input_device_linuxevent.cpp 2009-08-01 18:17:25.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/GLX/input_device_linuxevent.cpp 2009-08-01 18:11:23.000000000 +0200 +@@ -35,6 +35,7 @@ + #include <iostream> + #include <errno.h> + #include <cstring> ++#include <cstdio> + + #include "API/Core/System/error.h" + #include "API/Core/System/clanstring.h" +diff -Naur ClanLib-0.8.1-old/Sources/GL/GLX/input_device_xinput.cpp ClanLib-0.8.1/Sources/GL/GLX/input_device_xinput.cpp +--- ClanLib-0.8.1-old/Sources/GL/GLX/input_device_xinput.cpp 2009-08-01 18:17:41.000000000 +0200 ++++ ClanLib-0.8.1/Sources/GL/GLX/input_device_xinput.cpp 2009-08-01 18:12:56.000000000 +0200 +@@ -29,6 +29,7 @@ + + #include <iostream> + #include <cstring> ++#include <cstdio> + #include "API/Core/System/log.h" + #include "API/Display/input_device.h" + #include "API/Display/input_event.h" diff --git a/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch b/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch new file mode 100644 index 000000000000..19ebab6fd07d --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-gcc47.patch @@ -0,0 +1,10 @@ +--- ./Sources/Core/IOData/Generic/inputsource_file.cpp.orig 2012-12-30 01:49:01.698950614 +0400 ++++ ./Sources/Core/IOData/Generic/inputsource_file.cpp 2012-12-30 01:49:27.714977456 +0400 +@@ -32,6 +32,7 @@ + #ifdef WIN32 + #include <direct.h> + #endif ++#include <unistd.h> + #include <cstring> + #include <API/Core/IOData/inputsource_file.h> + diff --git a/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch b/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch new file mode 100644 index 000000000000..03d0ba536acf --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-libpng15.patch @@ -0,0 +1,11 @@ +--- Sources/Display/Providers/png_provider_generic.cpp ++++ Sources/Display/Providers/png_provider_generic.cpp +@@ -107,7 +107,7 @@ + png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp) NULL); + cl_assert(false); + } +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); + cl_assert(false); diff --git a/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch b/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch new file mode 100644 index 000000000000..e41bae1a3296 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-0.8.1-ndebug.patch @@ -0,0 +1,21 @@ +Patch for clanlib-0.7.8-r2 Bug 154513: + +Signal handler deinit() was not declared. + +This leads to a compilation failure when a release version +rather than a debug version is built (-DNDEBUG). + +This patch adds the missing declaration, thus make the +file compile with or without -DNDEBUG. + +diff -Naur clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp +--- clanlib-0.7.8-r2.orig/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2003-09-19 10:33:02.000000000 +0000 ++++ clanlib-0.7.8-r2/work/ClanLib-0.7.8/Sources/Core/System/Unix/init_linux.cpp 2007-10-26 13:36:39.000000000 +0000 +@@ -52,6 +52,7 @@ + _begin_time = (long) tv.tv_sec*(long) 1000+(long) tv.tv_usec/(long) 1000; + + #ifdef NDEBUG ++ sighandler_t deinit; + signal(SIGSEGV, deinit); + #endif + } diff --git a/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch b/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch new file mode 100644 index 000000000000..97db79ac4245 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-autotools.patch @@ -0,0 +1,45 @@ +--- Documentation/Reference/Makefile.am.old 2012-09-25 10:39:25.973544935 +0200 ++++ Documentation/Reference/Makefile.am 2012-09-25 10:39:42.560554053 +0200 +@@ -10,7 +10,7 @@ + mkdir doxyoutput; + mkdir reftest + doxygen ./clanlib.doxygen +- make -C ../Utilities/ReferenceDocs ++ $(MAKE) -C ../Utilities/ReferenceDocs + ../Utilities/ReferenceDocs/ReferenceDocs + + install-html: +--- configure.ac.old 2012-09-25 11:07:38.412537590 +0200 ++++ configure.ac 2012-09-25 11:09:41.133939131 +0200 +@@ -337,11 +337,9 @@ + + dnl Optional linux/joystick.h + AC_CHECK_HEADERS(linux/joystick.h, linux_joystick=yes) +- AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes) + + dnl Optional linux/input.h + AC_CHECK_HEADERS(linux/input.h, linux_input=yes) +- AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes) + + if test "$WIN32" = "no" && test "$enable_clanDisplay" != "no"; then + CLANLIB_CHECK_LIB(fontconfig, [`cat $srcdir/Setup/Tests/fontconfig.cpp`], clanDisplay, [ *** Cannot find fontconfig (See http://fontconfig.org/ ) (Try libfontconfig1-dev or better) ], [-lfontconfig]) +@@ -358,6 +356,8 @@ + clanDisplay, [ *** Cannot find version 8 of DirectInput], [-ldxguid -lole32 -ldinput8]) + fi + fi ++AM_CONDITIONAL(LINUX_JOYSTICK, test x$linux_joystick = xyes) ++AM_CONDITIONAL(LINUX_INPUT, test x$linux_input = xyes) + + have_xrender=no + +@@ -515,9 +515,9 @@ + fi + + if test "$enable_clanSound" = "auto"; then enable_clanSound=yes; fi +- AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + + fi ++AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + + if test "$enable_clanSound" != "no"; then + enable_clanSound=yes diff --git a/dev-games/clanlib/files/clanlib-2.3.7-doc.patch b/dev-games/clanlib/files/clanlib-2.3.7-doc.patch new file mode 100644 index 000000000000..627df26785b4 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-doc.patch @@ -0,0 +1,14 @@ +--- Documentation/Utilities/ReferenceDocs/Makefile.old 2014-09-12 20:06:52.970459560 +0200 ++++ Documentation/Utilities/ReferenceDocs/Makefile 2014-09-12 20:08:17.387048685 +0200 +@@ -3,7 +3,10 @@ + LIBS=clanCore + EXTRA_LIBS=-lpthread + +-include ../../../Examples/Makefile.conf ++CXXFLAGS += -pthread -std=c++0x -I. ++all: $(EXAMPLE_BIN) ++$(EXAMPLE_BIN): $(OBJF) ++ $(CXX) $(CXXFLAGS) $(OBJF) -o $(EXAMPLE_BIN) -Wl,-R../../Sources/Core/.libs -L../../../Sources/Core/.libs -lclan23Core $(EXTRA_LIBS) + + # EOF # + diff --git a/dev-games/clanlib/files/clanlib-4.0.0-fix-build-system.patch b/dev-games/clanlib/files/clanlib-4.0.0-fix-build-system.patch new file mode 100644 index 000000000000..a3500e22f7e1 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-4.0.0-fix-build-system.patch @@ -0,0 +1,25 @@ +* Fix AM_CONDITIONAL to always be invoked +* Install html files in proper --htmldir + +--- a/configure.ac ++++ b/configure.ac +@@ -437,8 +437,8 @@ + fi + + if test "$enable_clanSound" = "auto"; then enable_clanSound=yes; fi +- AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + fi ++AM_CONDITIONAL(ALSA, test x$have_alsa = xyes) + + if test "$enable_clanNetwork" != "no"; then + echo "Checking for clanNetwork stuff" +--- a/Documentation/Makefile.am ++++ b/Documentation/Makefile.am +@@ -1,6 +1,6 @@ + EXTRA_DIST = $(wildcart images/*.png) + +-HTML_PREFIX = $(datadir)/doc/@PACKAGE@-@LT_RELEASE@ ++HTML_PREFIX = $(htmldir) + + all-local: + diff --git a/dev-games/clanlib/metadata.xml b/dev-games/clanlib/metadata.xml new file mode 100644 index 000000000000..c6bda8543208 --- /dev/null +++ b/dev-games/clanlib/metadata.xml @@ -0,0 +1,61 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <longdescription> +Welcome to ClanLib, a multi-platform game development library. + +ClanLib is a medium level development kit. At its lowest level, it provides a +platform independent (as much as that is possible in C++) way of dealing with +display, sound, input, networking, files, threadding and such. + +On top of that, ClanLib builds a generic game development framework, giving you +easy handling of resources, network object replication, graphical user +interfaces (GUI) with theme support, game scripting and more. + +The goal of ClanLib is to allow the game developer to focus on stuff that +matters, avoiding all those nasty (and boring) lowlevel trivials like setting up +a directdraw window, sound mixing, reading image files, etc. All those things +are simplified into object oriented classes and function calls, making it a joy +to write your game. + +ClanLib uses a resource system to keep track of images, fonts, samples and +music. It supports Targa, PCX, JPEG, PNG and BMP for images. Wave files for +sample. Ogg Vorbis (open sound format that has same sound quality as mp3) and +MikMod for music. By using a resource system, you cleanly seperate the physical +data formats from your code, and makes it easy to make themes and other plugins +for your game. The resource system is written in a manner that allows you to add +your own custom resources. + +All classes in clanlib focus on making simple interfaces that are customizeable +and expandable. This keeps your game code clean and simple; but still allows you +to do advanced stuff. As an example, look at some sound code: +CL_SoundBuffer my_sample("Weapon/Minigun/sound", resources); +my_sample.play(); + +In this example, we play a simple sound effect, and afterwards forget all about +it. Nice and simple. But if we want to adjust the frequency during its playback +(eg. for a dobbler effect), it could look like this: +CL_SoundBuffer_Session playback = my_sample.play(); +playback.set_frequency(1.2f); // increase frequency by 20% + +We only need to keep the session handle if we are going to use it. Keep things +simple when they are simple, and make them complex when they are complex. :) + +The object oriented nature of ClanLib allows you to operate both at high and low +levels, minimizing redundant code and still allows you to do stuff that isnt +supported by clanlib's high level APIs. + +ClanLib currently support Windows 98, Windows 2000, Windows XP and Linux. The +following display targets are supported under linux: X11 and OpenGL. Some parts +of ClanLib still isnt entirely endian clean, so it will currently only work +without problems on the x86 architecture. Work is underway for a MacOS port. +Current compilers supported is VC++ 6.0, VC++ 7.0, GCC, Borland and MingW. + </longdescription> + <upstream> + <remote-id type="github">sphair/ClanLib</remote-id> + </upstream> +</pkgmetadata> |