diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-29 04:00:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-29 04:00:35 +0100 |
commit | 746652e918ce7328c0cc5ffef8a79146b91ba21b (patch) | |
tree | 755e0aa511453e24ffcf43e05e967e2268f56975 /dev-games | |
parent | 9c602d90d61cea9fe83c596c68a99e383ee15f73 (diff) |
gentoo auto-resync : 29:10:2022 - 04:00:35
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/Manifest.gz | bin | 6713 -> 6714 bytes | |||
-rw-r--r-- | dev-games/clanlib/Manifest | 6 | ||||
-rw-r--r-- | dev-games/clanlib/clanlib-2.3.7-r3.ebuild | 119 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-gcc47.patch | 107 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-gcc7.patch | 20 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-no-ldflags-for-conftest.patch | 19 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-no-wm_type-in-fs.patch | 12 | ||||
-rw-r--r-- | dev-games/clanlib/files/clanlib-2.3.7-non-x86.patch | 38 |
8 files changed, 321 insertions, 0 deletions
diff --git a/dev-games/Manifest.gz b/dev-games/Manifest.gz Binary files differindex 020ac00907c9..81c8b1bfd1a1 100644 --- a/dev-games/Manifest.gz +++ b/dev-games/Manifest.gz diff --git a/dev-games/clanlib/Manifest b/dev-games/clanlib/Manifest index e2b4ae6dbf4f..7ec9699e4d91 100644 --- a/dev-games/clanlib/Manifest +++ b/dev-games/clanlib/Manifest @@ -11,11 +11,17 @@ AUX clanlib-2.3.7-32bit-opengl.patch 515 BLAKE2B 96823139c5235c5e780727c8be48615 AUX clanlib-2.3.7-autotools.patch 1458 BLAKE2B ecf797fa09893422b94364ac0df8156b3e2c3b2164530cd845201ad266977426b692860efce1b2cf6f6dee0cb098c6e28e8c3e203567c81713f63fc6099c30a9 SHA512 170580de7780e638e3a1788eb2bfcfe58f64d5f5695cbbd550ddc5bf59933303dea7970191792adefc8b1408647d4e3c816c30aaf253a9ceb139f9300b9e5807 AUX clanlib-2.3.7-doc.patch 434 BLAKE2B e17cedc12f9b840231dae739edb933a6c8dffaac7feb53e4d4ce2639603e6ce03e716476bfa3b75f964aa1799676f18f19dfc09f3fa918d40b66519878f78904 SHA512 993edfcf9955bf89c6458933b1db9b4cdf6b3935f856c71aa82c3f9ad0f9a2d3704657fa8bd6f6760262a0f8d0669998f7c1ab426ecee7c57954f5674a24f8e4 AUX clanlib-2.3.7-freetype_pkgconfig.patch 1069 BLAKE2B 48fe4d540a9dd5cce20efcea7802b45b13d8e56831abcf1f1d9aef9aa747dc40e4209a1a37f061b4162459619e8174fbba18963c3c3acb4b0457642c1a9a6142 SHA512 db151e1b5a07f01890ec0a164a3a82217f5a0f47fa6c15f566991965feedae50b69e99d801f04d1ca7583a6192e1d0f4766d66a0cbcca6278c03713ae7837233 +AUX clanlib-2.3.7-gcc47.patch 4702 BLAKE2B 638e7abe09cd0684e3fff6ef0a6fa51eeb92a26b67e37499dd8760fe17373a3da8ad7264d73e36b926ce949ef6eb09495b300715f53569c625f315ea3c9b7561 SHA512 f8eaa5281271893afccf546655cc3cbe85790507570f4a2f54e1acc346aab18c179e06149b40851fcf599a79e042d54c5b762952f6d31aea3b1232b9b49e2273 +AUX clanlib-2.3.7-gcc7.patch 614 BLAKE2B 72988b4a399478504c6d1153a23148eb37bb235a1bfb680a5feba083e69309f03d60e1bbb4e005bfb5aa8062a005c29e55a586038e324b6cf2895eb07263d679 SHA512 495ce3b400de9fa6aa2ebe8aac7b38ab1b6ddfa70ea7b4e3c3da59e584dc5950a032868f8d3111033cfcf6b1b80fb5e1a893d48e7ee5b4ab76a76ff954e03908 AUX clanlib-2.3.7-glibc2.34.patch 612 BLAKE2B 7a1c5407a228fe7c245f6e4aa530a371d5e9c424935cd3688a4cd34e543ddfbfbfe77a31e3845226679409d2aebb6bfc0b96d5817a3284940f85f6a07f6e4e1d SHA512 dfa58ec02fd0e5f0a767203e9518504f0255078688dd97e47e6c0dc8207122318e80bf9a42ee02bb8f2501b621e3538437b37a5102b50186cd3c83315369789f +AUX clanlib-2.3.7-no-ldflags-for-conftest.patch 892 BLAKE2B ba3117c2194021fb4f1d6853fab08ba4043bf1b371f3cf1f7c59ef6f37c0f5065f5c1277b75254f60e07ffb5b8066a3d3e3c407f7c48cbc83322985dd8f5543e SHA512 fad2323d879fc342d915295c4b33a0b44b8f3e486c64d31680b8a226fa0c1c11cc5d4606b49338bbd2046caa64c5c959e2893ba5b19cb4e5c0f966c53e10682e +AUX clanlib-2.3.7-no-wm_type-in-fs.patch 659 BLAKE2B b3a5498bb706225d828622e8dead234c2df4755151e017921df52f6072258e77eb05e71135cf8ecbd02fc591daf277f8f68a8af86079883bf7d2d9c6a0f5cd70 SHA512 efd99cf2e6c0cedf6a4752981c6e9931512de7140b4b83e636e2d3db96d4eed0a92413c833c9ac95d0bf0a1017b7119141c5c815a00420765032b17923643103 +AUX clanlib-2.3.7-non-x86.patch 1263 BLAKE2B af0f26f0148e66ed20cc226539b30fe44a455f221689d8baa62f543e1f512e84bcc54d908893ac3386d5058872243ec422586488d938373589ddeae5c2d82c62 SHA512 e28e4dac473b6a71b0bfc207c42b68cf2bf57e29b88400e32a829af27bffba7f07e58445588e18f40e70593e245ebd33a4b4de0d26bd23b2718e6fcc0d7fe335 DIST ClanLib-0.8.1.tgz 7629019 BLAKE2B 7f238111931212e3f9c82ed43842706bf16ee145896735ca35595e29dd357e52364cc592be55d88e231f962adc313bc8f57357bc74c9f1b8b134bc411497f5e9 SHA512 277daaf1055ae0198be7a6bbfd415c79cfae9e2145f62553e83849d670f56e50b8484c83f8b85f23290002e0b0c72c1e01ca597ad608a0954a4add828177293b DIST ClanLib-2.3.7.tgz 26132425 BLAKE2B 109ba92baf21174022c8dbc4044e39ec16ec77c730b57590733418e246ab71d18d81bbf281cd469dd9e2aebd4ac4302fbb581f27dc7fc0054a8c7ce69699e19d SHA512 73169afc0f639390f80403150757a8a14f842bc291a9457c9bca1319642b78bc4d03a93327d75254230e39545c5b4b690e56dc0149ed7b60b223e5a5364e882a DIST clanlib-4.1.0.tar.gz 6871886 BLAKE2B 0aeb9e89998a9ef6975bf16a2e77f461e6415aacda9a26a5c0a9c6ec3c19a136a5f092c7866b60898251fbd6cb8aa7e96c86f6b87afb564824298fac77bf20c3 SHA512 34f5d1fdb7b071a218f081a6b06a6018a9c20cedc4c8500a9796be02d335f06fa148304379eeb1a35e08b9a734e504ceb490a6558a43d1611187bd97be01f4b0 EBUILD clanlib-0.8.1-r2.ebuild 2288 BLAKE2B ccb633ddd4ff1148a4c35f94a835888050552576bfa5e23adf367cb56b24bf9896244b11d59894bdeb7f4b1b0146ea7e114d9a0376215fbeb821a5055b47b3d6 SHA512 2d0279c1526e9e25bb94d5e849552c89879ea0265ce9e5e1540e29411adc040ea1a9049d78b7afcdb8ffd0c49725d1cd339a6999a04eaf74966d3e279bb7aace EBUILD clanlib-2.3.7-r2.ebuild 2224 BLAKE2B d9275002067b10c5955502b13f15c7a03849f7039d2b6e0dbe985ea5ab2785416be6241bb9b4e9bddaeeef22fea10fc092cc7229324b9dde96ab2704578e1f5a SHA512 6fe0fcc5f837e4db9126f3b0e090c4a72d0d5add331a96c847ce3905a7696f86c95e3957e1ac6b8c3d3657bbdefe31f029f73a0b430f5249018360549afadf9b +EBUILD clanlib-2.3.7-r3.ebuild 2491 BLAKE2B 68b05e491439f17ff9f10638435fddcdc9080a4b90424bef9907caad57f70906c6e1f6eb9b087aa8e7ce41c35b6780de915b76ce71e08e834f59e339e27692e5 SHA512 c5dcb125cdb1ebaea960715348b64934b64d6401ad21695ff06398f2bd995d3df5b1bfdaa399e10add3bc090ce00d3820504d6d00a9c2b152c3020d7e943cec4 EBUILD clanlib-4.1.0.ebuild 1491 BLAKE2B da46029e71367101d4ecbe76015b13660255732d93df2bfcc6f3d2b53feb7b0a70a85a5bd9f691822582a140eb0a5e1a800ece9f56ea2d25d3fefd373c24d1c9 SHA512 2548f5db4749ad2d4b569a1992370c1d56ad0d8120e67b246a9a787ce3c78da0ed350a626a0507a30d55a4ec2dd46b19d895f8287b78a1d41c7b4ddb65b98878 MISC metadata.xml 3097 BLAKE2B a17189a5334540d64d105470c7785d223628d8cff00f5ac162084acc0b4905c537abfbe9383bfa293c751b2efbe5d30a9a3280c92c7954cb3c4a8e04d2c925c5 SHA512 e86eda205bb05a47d49160a458c27d6eb9d67ff1f23921880f6dd46e4c16a930b405f6f2fc41fcd1623458f50452ea5ccdea36abafee802cc6933a7b3b471992 diff --git a/dev-games/clanlib/clanlib-2.3.7-r3.ebuild b/dev-games/clanlib/clanlib-2.3.7-r3.ebuild new file mode 100644 index 000000000000..d5d41ff83ea1 --- /dev/null +++ b/dev-games/clanlib/clanlib-2.3.7-r3.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +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" +S="${WORKDIR}"/${MY_P} + +LICENSE="ZLIB" +SLOT="2.3" +KEYWORDS="~amd64 ~x86" +IUSE="doc ipv6 mikmod opengl sound sqlite cpu_flags_x86_sse2 static-libs vorbis X" +REQUIRED_USE="opengl? ( X )" + +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen + dev-lang/perl + media-gfx/graphviz + ) +" +RDEPEND=" + sys-libs/zlib + X? ( + app-arch/bzip2 + media-libs/libpng:0 + media-libs/freetype + media-libs/fontconfig + media-libs/libjpeg-turbo:0= + x11-libs/libX11 + opengl? ( virtual/opengl ) + ) + mikmod? ( + media-libs/alsa-lib + media-libs/libmikmod + ) + sqlite? ( dev-db/sqlite:3 ) + sound? ( media-libs/alsa-lib ) + vorbis? ( + media-libs/alsa-lib + media-libs/libogg + media-libs/libvorbis + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-autotools.patch + "${FILESDIR}"/${P}-doc.patch + "${FILESDIR}"/${P}-freetype_pkgconfig.patch #764902 + "${FILESDIR}"/${P}-glibc2.34.patch + "${FILESDIR}"/${P}-32bit-opengl.patch + # From Fedora + "${FILESDIR}"/${P}-gcc47.patch + "${FILESDIR}"/${P}-gcc7.patch + "${FILESDIR}"/${P}-non-x86.patch + "${FILESDIR}"/${P}-no-ldflags-for-conftest.patch + "${FILESDIR}"/${P}-no-wm_type-in-fs.patch +) + +DOCS=( CODING_STYLE CREDITS PATCHES README ) + +src_prepare() { + default + + eautoreconf + + ln -sf ../../../Sources/API Documentation/Utilities/ReferenceDocs/ClanLib || die +} + +src_configure() { + # Add -DPACKAGE_BUGREPORT? + local 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 ) + + tc-export PKG_CONFIG + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake + + use doc && emake 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() { + default + + find "${ED}" -type f -name '*.la' -delete || die + + if use doc ; then + emake DESTDIR="${D}" install-html + dodoc -r Examples Resources + fi +} diff --git a/dev-games/clanlib/files/clanlib-2.3.7-gcc47.patch b/dev-games/clanlib/files/clanlib-2.3.7-gcc47.patch new file mode 100644 index 000000000000..58b55ccf0291 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-gcc47.patch @@ -0,0 +1,107 @@ +diff -up ClanLib-2.3.4/Sources/Core/IOData/file_help.cpp~ ClanLib-2.3.4/Sources/Core/IOData/file_help.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/file_help.cpp~ 2011-07-22 10:03:21.000000000 +0200 ++++ ClanLib-2.3.4/Sources/Core/IOData/file_help.cpp 2012-01-12 22:16:39.779011207 +0100 +@@ -34,6 +34,7 @@ + #include "API/Core/System/exception.h" + + #ifndef WIN32 ++#include <unistd.h> + #include <sys/stat.h> + #endif + +diff -up ClanLib-2.3.4/Sources/Core/IOData/path_help.cpp~ ClanLib-2.3.4/Sources/Core/IOData/path_help.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/path_help.cpp~ 2011-08-03 10:13:57.000000000 +0200 ++++ ClanLib-2.3.4/Sources/Core/IOData/path_help.cpp 2012-01-12 22:18:30.754009662 +0100 +@@ -43,6 +43,7 @@ + + #ifndef WIN32 + #include <cstring> ++#include <unistd.h> + #endif + + ///////////////////////////////////////////////////////////////////////////// +diff -up ClanLib-2.3.4/Sources/Core/IOData/iodevice_provider_pipe_connection.cpp~ ClanLib-2.3.4/Sources/Core/IOData/iodevice_provider_pipe_connection.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/iodevice_provider_pipe_connection.cpp~ 2011-01-27 10:03:39.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/IOData/iodevice_provider_pipe_connection.cpp 2012-01-12 22:24:55.536004557 +0100 +@@ -33,6 +33,7 @@ + #include "API/Core/Text/string_help.h" + #include "API/Core/Text/string_format.h" + #ifndef WIN32 ++#include <unistd.h> + #include <sys/socket.h> + #include <sys/un.h> + #ifndef UNIX_PATH_MAX +diff -up ClanLib-2.3.4/Sources/Core/IOData/pipe_listen_impl.cpp~ ClanLib-2.3.4/Sources/Core/IOData/pipe_listen_impl.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/pipe_listen_impl.cpp~ 2011-01-13 12:17:34.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/IOData/pipe_listen_impl.cpp 2012-01-12 22:25:17.359004259 +0100 +@@ -36,6 +36,7 @@ + #include "API/Core/Text/string_help.h" + #ifndef WIN32 + #include "Network/Socket/event_provider_unixsocket.h" ++#include <unistd.h> + #include <sys/socket.h> + #include <sys/un.h> + #ifndef UNIX_PATH_MAX +diff -up ClanLib-2.3.4/Sources/Core/IOData/security_identifier.cpp~ ClanLib-2.3.4/Sources/Core/IOData/security_identifier.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/security_identifier.cpp~ 2011-01-13 12:17:34.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/IOData/security_identifier.cpp 2012-01-12 22:26:06.047003649 +0100 +@@ -31,6 +31,9 @@ + #include "API/Core/System/exception.h" + #ifdef WIN32 + #include <AclAPI.h> ++#else ++#include <unistd.h> ++#include <sys/types.h> + #endif + + ///////////////////////////////////////////////////////////////////////////// +diff -up ClanLib-2.3.4/Sources/Core/IOData/virtual_directory.cpp~ ClanLib-2.3.4/Sources/Core/IOData/virtual_directory.cpp +--- ClanLib-2.3.4/Sources/Core/IOData/virtual_directory.cpp~ 2011-11-25 09:16:46.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/IOData/virtual_directory.cpp 2012-01-12 22:26:37.583003215 +0100 +@@ -38,6 +38,10 @@ + #include "API/Core/System/weakptr.h" + #include "API/Core/Text/string_help.h" + ++#ifndef WIN32 ++#include <unistd.h> ++#endif ++ + ///////////////////////////////////////////////////////////////////////////// + // CL_VirtualDirectory_Impl Class: + +diff -up ClanLib-2.3.4/Sources/Core/System/Unix/service_unix.cpp~ ClanLib-2.3.4/Sources/Core/System/Unix/service_unix.cpp +--- ClanLib-2.3.4/Sources/Core/System/Unix/service_unix.cpp~ 2011-01-13 12:17:34.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/System/Unix/service_unix.cpp 2012-01-12 22:29:12.478001042 +0100 +@@ -35,6 +35,7 @@ + #include "service_unix.h" + #include <iostream> + #include <signal.h> ++#include <unistd.h> + + ///////////////////////////////////////////////////////////////////////////// + // CL_Service_Unix Construction: +diff -up ClanLib-2.3.4/Sources/Core/Text/console_logger.cpp~ ClanLib-2.3.4/Sources/Core/Text/console_logger.cpp +--- ClanLib-2.3.4/Sources/Core/Text/console_logger.cpp~ 2011-01-13 12:17:34.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Core/Text/console_logger.cpp 2012-01-12 22:27:54.446002158 +0100 +@@ -33,6 +33,10 @@ + #include "API/Core/Text/string_format.h" + #include "API/Core/System/datetime.h" + ++#ifndef WIN32 ++#include <unistd.h> ++#endif ++ + ///////////////////////////////////////////////////////////////////////////// + // CL_ConsoleLogger Construction: + +diff -up ClanLib-2.3.4/Sources/Display/X11/x11_window.cpp~ ClanLib-2.3.4/Sources/Display/X11/x11_window.cpp +--- ClanLib-2.3.4/Sources/Display/X11/x11_window.cpp~ 2012-01-12 22:18:49.000000000 +0100 ++++ ClanLib-2.3.4/Sources/Display/X11/x11_window.cpp 2012-01-12 22:30:46.492999847 +0100 +@@ -50,6 +50,7 @@ + #include "display_message_queue_x11.h" + #include <X11/Xatom.h> + #include <cstdio> ++#include <unistd.h> + #include "../Window/input_context_impl.h" + #include <X11/XKBlib.h> + #include <dlfcn.h> diff --git a/dev-games/clanlib/files/clanlib-2.3.7-gcc7.patch b/dev-games/clanlib/files/clanlib-2.3.7-gcc7.patch new file mode 100644 index 000000000000..22cce76debfb --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-gcc7.patch @@ -0,0 +1,20 @@ +diff -up ClanLib-2.3.7/configure.ac~ ClanLib-2.3.7/configure.ac +--- ClanLib-2.3.7/configure.ac~ 2012-04-11 08:55:49.000000000 +0200 ++++ ClanLib-2.3.7/configure.ac 2017-02-21 11:57:23.482504683 +0100 +@@ -119,7 +119,6 @@ case $target in + *) + X11="yes" + WIN32="no" +- CXXFLAGS="$CXXFLAGS -std=c++0x" + ;; + esac + +@@ -259,7 +258,7 @@ if test "$use_sse2" != "no"; then + fi + + if test "$WIN32" = "no"; then +- extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x" ++ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread" + else + extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -mthreads -std=c++0x" + fi diff --git a/dev-games/clanlib/files/clanlib-2.3.7-no-ldflags-for-conftest.patch b/dev-games/clanlib/files/clanlib-2.3.7-no-ldflags-for-conftest.patch new file mode 100644 index 000000000000..c22e58106485 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-no-ldflags-for-conftest.patch @@ -0,0 +1,19 @@ +diff -up ClanLib-2.3.7/acinclude.m4~ ClanLib-2.3.7/acinclude.m4 +--- ClanLib-2.3.7/acinclude.m4~ 2011-11-24 11:57:30.000000000 +0100 ++++ ClanLib-2.3.7/acinclude.m4 2015-04-02 15:22:52.060631122 +0200 +@@ -5,6 +5,7 @@ dnl CLANLIB_CHECK_LIB(lib, testprog, mod + define([CLANLIB_CHECK_LIB],[if test "$enable_$3" != "no"; then + OLDLIBS="$LIBS"; LIBS="$5"; AC_MSG_CHECKING(for $1) + OLD_CXXFLAGS="$CXXFLAGS"; CXXFLAGS="$6"; ++ OLD_LDFLAGS="$LDFLAGS"; LDFLAGS=; + AC_RUN_IFELSE([AC_LANG_SOURCE($2)], [CL_RESULT=yes], [CL_RESULT=no], [AC_LINK_IFELSE([AC_LANG_SOURCE($2)], [CL_RESULT="yes, linked"],[CL_RESULT=no])]) + AC_MSG_RESULT([$CL_RESULT]) + if test "$CL_RESULT" = "no"; then +@@ -14,6 +15,7 @@ define([CLANLIB_CHECK_LIB],[if test "$en + extra_LIBS_$3=" $extra_LIBS_$3 $LIBS " + fi + CXXFLAGS="$OLD_CXXFLAGS" ++ LDFLAGS="$OLD_LDFLAGS" + LIBS="$OLDLIBS" + fi]) + diff --git a/dev-games/clanlib/files/clanlib-2.3.7-no-wm_type-in-fs.patch b/dev-games/clanlib/files/clanlib-2.3.7-no-wm_type-in-fs.patch new file mode 100644 index 000000000000..48799baa42c2 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-no-wm_type-in-fs.patch @@ -0,0 +1,12 @@ +diff -up ClanLib-2.3.7/Sources/Display/X11/x11_window.cpp~ ClanLib-2.3.7/Sources/Display/X11/x11_window.cpp +--- ClanLib-2.3.7/Sources/Display/X11/x11_window.cpp~ 2013-08-01 16:32:37.866001296 +0200 ++++ ClanLib-2.3.7/Sources/Display/X11/x11_window.cpp 2013-08-01 16:33:26.267001811 +0200 +@@ -289,7 +289,7 @@ void CL_X11Window::create(XVisualInfo *v + // Retrieve the frame size (emulating microsoft windows) + bool window_is_frameless = false; + bool window_has_thin_frame = false; +- if ((!desc.has_caption()) || (!desc.get_decorations())) ++ if (!desc.is_fullscreen() && (!desc.has_caption() || !desc.get_decorations())) + { + if (desc.is_tool_window()) + { diff --git a/dev-games/clanlib/files/clanlib-2.3.7-non-x86.patch b/dev-games/clanlib/files/clanlib-2.3.7-non-x86.patch new file mode 100644 index 000000000000..acaa8520b645 --- /dev/null +++ b/dev-games/clanlib/files/clanlib-2.3.7-non-x86.patch @@ -0,0 +1,38 @@ +diff -up ClanLib-2.3.6/Sources/Core/System/detect_cpu_ext.cpp.non-x86 ClanLib-2.3.6/Sources/Core/System/detect_cpu_ext.cpp +--- ClanLib-2.3.6/Sources/Core/System/detect_cpu_ext.cpp.non-x86 2011-11-15 13:15:42.000000000 +0100 ++++ ClanLib-2.3.6/Sources/Core/System/detect_cpu_ext.cpp 2013-01-08 13:33:20.000000000 +0100 +@@ -30,7 +30,7 @@ + #include "Core/precomp.h" + #include "API/Core/System/system.h" + +-#ifdef CL_ARM_PLATFORM ++#if ! (defined(__i386__) || defined(__x86_64__) || defined(__amd64__)) + bool CL_System::detect_cpu_extension(CL_CPU_ExtensionPPC ext) + { + throw ("Congratulations, you've just been selected to code this feature!"); +@@ -48,11 +48,12 @@ bool CL_System::detect_cpu_extension(CL_ + #ifdef __GNUC__ + + +-#ifdef __amd64__ ++#if defined(__amd64__) || defined(__x86_64__) + + #define __cpuid(out, infoType)\ + asm("cpuid": "=a" ((out)[0]), "=b" ((out)[1]), "=c" ((out)[2]), "=d" ((out)[3]): "a" (infoType)); +-#else ++ ++#elif defined(__i386__) + + #define __cpuid(out, infoType) \ + asm volatile( "pushl %%ebx \n" \ +@@ -61,6 +62,10 @@ bool CL_System::detect_cpu_extension(CL_ + "popl %%ebx" \ + : "=a" ((out)[0]), "=r" ((out)[1]), "=c" ((out)[2]), "=d" ((out)[3]): "a" (infoType)); + ++#else ++ ++#define __cpuid(out, infoType) {} ++ + #endif + + #endif |