mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Gambit: add recipe for 1.0.4 version
This commit is contained in:
74
games-board/gambit/additional-files/gambit.rdef.in
Normal file
74
games-board/gambit/additional-files/gambit.rdef.in
Normal file
@@ -0,0 +1,74 @@
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "Gambit Chess",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E6369660A040174050004006602010602BB03F4BA50963A0BFEBAAA994A1300"
|
||||
$"4BC4B8ABFFFFFFFFC3BB7E020106023CB0A50000000000003B5C884879724A12"
|
||||
$"A970F7F4F0FFC1B65D020106023C772A0000000000003C772A4AACFF497BDE00"
|
||||
$"AEA97ADBF3EFDF020106023A3DB0000000000000BD795D49B54448A00D4EFAF1"
|
||||
$"CBFF997F04020006023801D20000000000003801D24A087FC9B01000FAF1CBFF"
|
||||
$"635A3502000602B4AF8B34E5E6B4E5E6B4AF8BC60F85C8D67300BC8C47FFFFFF"
|
||||
$"FF02010603388442B3B99D34ABCE399BF449D706444D4B60FFFCF8C6DBC3A0FF"
|
||||
$"BB9865130208C4E0BE57C5F2BE57C491BE57C406BE7CC448BE64C357BD94C0A6"
|
||||
$"BCF7C225BCF7C0A6BCF7BC88BFF0BC88BFF0BC88C194C088C2E9BE52C2E9C222"
|
||||
$"C2E9C427C133C383C236C460C146C4E0C150C49FC150C5F2C150C6D2BFD3C6D2"
|
||||
$"C0A5C6D2BF000204BFF6BD32BE0ABD32C1E1BD32C364BFB6C364BE4DC364C11E"
|
||||
$"BFF6C23AC1E1C23ABE0AC23ABC88BFB6BC88C11EBC88BE4D0204BFF6B4F7BF10"
|
||||
$"B4F7C0DBB4F7C190B690C190B5AAC190B775BFF6B82AC0DBB82ABF10B82ABE5C"
|
||||
$"B690BE5CB775BE5CB5AA0204BFF6BD32BE0ABD32C1E1BD32C364BFB6C364BE4D"
|
||||
$"C364C11EBFF6C23AC1E1C23ABE0AC23ABC88BFB6BC88C11EBC88BE4D0203BCCB"
|
||||
$"BEBCBCCBBEBCBC8B43C24AC18DBFFBC2B2C2F7C118C364BFB6C364C070C364BF"
|
||||
$"B60204C030BC3FBE82BC3FC1DEBC3FC331BE91C331BD44C331BFDDC030C0E3C1"
|
||||
$"DEC0E3BE82C0E3BD30BE91BD30BFDDBD30BD440204BFF6BBD3BE2ABBD3C1C0BB"
|
||||
$"D3C329BE57C329BCEDC329BFBFBFF6C0DBC1C0C0DBBE2AC0DBBCC2BE57BCC2BF"
|
||||
$"BFBCC2BCED0205C329BE57C329BECBC329BCF3BFF6BBD3C1CABBD3BFF6BBD3BE"
|
||||
$"22BC82BE22BC82BDE7BE57C205BE91C0E0BF7BC205BE91C2BDBF96C2B3BEE8C3"
|
||||
$"02BF380204C030BC3BBF03BC3BC15CBC3BC249BDA7C249BCDAC249BE72C030BF"
|
||||
$"13C15CBF13BF03BF13BE18BDA7BE18BE72BE18BCDA0204BFF6BBD3BEAEBBD3C1"
|
||||
$"3DBBD3C23FBD6CC23FBC86C23FBE51BFF6BF06C13DBF06BEAEBF06BDADBD6CBD"
|
||||
$"ADBE51BDADBC860204C23FBD6CC23FBE13C23FBC89BFF6BBD3C138BBD3BFF6BB"
|
||||
$"D3BE22BC82BE22BC82BDF5BDE0C0E2BEE3BF94BEDCC1AFBEA30407FE2FC11BB8"
|
||||
$"2AC0E0B9C4C0E0B8DAC0E035C1CABC82C1CABC0DC1CABD44BFF6BDE2C0F8BDE2"
|
||||
$"BEF3BDE2BE22BC82BE22BD44BE22BC0DBF0CB9C4BF0C35BF0CB8DABED1B82A04"
|
||||
$"07FE2FC11BB82AC0E0B9C4C0E0B8DAC0E035C1CABC82C1CABC0DC1CABD44BFF6"
|
||||
$"BDE2C0F8BDE2BEF3BDE2BE22BC82BE22BD44BE22BC0DBF0CB9C4BF0C35BF0CB8"
|
||||
$"DABED1B82A0406FE0BBED1B82ABF0CB9C4BF0CB8DABF0CB9C4C13DBD7DC13DBD"
|
||||
$"7DC193BD3DC1CABC82C1CABCE4C1CABC0DC0E0B9C4C0E035C0E0B8DAC11BB82A"
|
||||
$"0206C190B7F0C190B7F0C190B74DBFF6B6CBC0D8B6CBBF13B6CBBE5CB7F0BE5C"
|
||||
$"B74DBE5CB7F0BE5CB865BE5CB865BE5CB906BFF6B989BF13B989C0D8B989C190"
|
||||
$"B865C190B906C190B8650206BFF6B914C0D8B914BF13B914BE5CB7F0BE5CB891"
|
||||
$"BE5CB7F0BE5CB865BE5CB865BE5CB906BFF6B989BF13B989C0D8B989C190B865"
|
||||
$"C190B906C190B865C190B7F0C190B7F0C190B8910204BFF6B6CBBF10B6CBC0DB"
|
||||
$"B6CBC190B7F0C190B74BC190B893BFF6B914C0DBB914BF10B914BE5CB7F0BE5C"
|
||||
$"B893BE5CB74B0204BFF6B4F7BF10B4F7C0DBB4F7C190B690C190B5AAC190B775"
|
||||
$"BFF6B82AC0DBB82ABF10B82ABE5CB690BE5CB775BE5CB5AA0204BFF6B4F7BF10"
|
||||
$"B4F7C0DBB4F7C190B690C190B5AAC190B775BFF6B82AC0DBB82ABF10B82ABE5C"
|
||||
$"B690BE5CB775BE5CB5AA120A02010002417BA30000000000004145B2C95C6FC2"
|
||||
$"680A0A0102010212417BA30000000000004145B2C95C6FC2680A01178400040A"
|
||||
$"03010302417BA30000000000004145B2C95C6FC2680A0A02010402417BA30000"
|
||||
$"000000004145B2C95C6FC534050A01010512417BA300000000000041871CC97C"
|
||||
$"6FC58ED801178400040A04010602417BA30000000000004145B2C95C6FC2680A"
|
||||
$"0A02010702417BA30000000000004145B2C95C6FC2680A0A0101081241A17F00"
|
||||
$"00000000004145B2C9BAC5C2680A01178300040A05010902417BA30000000000"
|
||||
$"004145B2C95C6FC2680A0A02010A02417BA30000000000004145B2C95C6FC268"
|
||||
$"0A0A01010B12417BA30000000000004145B2C95C6FC2680A01178300040A0601"
|
||||
$"0C02417BA30000000000004145B2C95C6FC2680A0A02010D02417BA300000000"
|
||||
$"00004145B2C95C6FC2680A0A01010E12417BA30000000000004145B2C95C6FC2"
|
||||
$"680A01178300040A07010F02417BA30000000000004145B2C95C6FC2680A0A08"
|
||||
$"011002417BA30000000000004145B2C95C6FC2680A0A01011112417BA3000000"
|
||||
$"0000004145B2C95C6FC2680A01178100040A09011202417BA300000000000041"
|
||||
$"45B2C95C6FC2680A"
|
||||
};
|
||||
78
games-board/gambit/gambit-1.0.4.recipe
Normal file
78
games-board/gambit/gambit-1.0.4.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="A cross-platform chess game"
|
||||
DESCRIPTION="Qt-based chess application + engine \"gupta\""
|
||||
HOMEPAGE="https://sourceforge.net/projects/gambitchess/"
|
||||
COPYRIGHT="Jelle Geerts"
|
||||
LICENSE="CC0-1.0"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://sourceforge.net/projects/gambitchess/files/Gambit-$portVersion/Gambit-$portVersion-src.tar.gz"
|
||||
CHECKSUM_SHA256="b07645d8fc43c2c37769469aceef8929819db00191fe15c28f59fbe644acacbc"
|
||||
SOURCE_DIR="Gambit-$portVersion-src"
|
||||
PATCHES="gambit-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="gambit.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gambit$secondaryArchSuffix = $portVersion
|
||||
app:Gambit = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libGL$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake . \
|
||||
-DCONFIG_ENABLE_UPDATE_CHECKER=OFF \
|
||||
-DCONFIG_GUPTA_ENGINE_DIRECTORY=$appsDir/Gambit/engine/ \
|
||||
-DCONFIG_RESOURCE_PATH_PREFIX=$appsDir/Gambit/data/
|
||||
make $jobArgs
|
||||
|
||||
cd engine/gupta
|
||||
make -f GNUmakefile
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Gambit/engine
|
||||
cp gambitchess $appsDir/Gambit/Gambit
|
||||
cp engine/gupta/gupta $appsDir/Gambit/engine
|
||||
cp -rf data $appsDir/Gambit
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.gambit-chess"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/gambit.rdef.in > $sourceDir/gambit.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/gambit.rdef \
|
||||
$appsDir/Gambit/Gambit
|
||||
mimeset -f $appsDir/Gambit/Gambit
|
||||
addAppDeskbarSymlink $appsDir/Gambit/Gambit
|
||||
}
|
||||
121
games-board/gambit/licenses/CC0-1.0
Normal file
121
games-board/gambit/licenses/CC0-1.0
Normal file
@@ -0,0 +1,121 @@
|
||||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
||||
121
games-board/gambit/patches/gambit-1.0.4.patchset
Normal file
121
games-board/gambit/patches/gambit-1.0.4.patchset
Normal file
@@ -0,0 +1,121 @@
|
||||
From 2c8ee266371097e61dd93463fd42befb1d095b2b Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 2 Oct 2018 11:55:44 +1000
|
||||
Subject: Fixes for Haiku
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ff6b5ae..544e8cc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -139,9 +139,15 @@ if(WIN32)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mthreads")
|
||||
else(WIN32)
|
||||
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
|
||||
+if(NOT HAIKU)
|
||||
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
|
||||
+endif(HAIKU)
|
||||
endif(WIN32)
|
||||
|
||||
+#if(HAIKU)
|
||||
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lnetwork")
|
||||
+#endif(HAIKU)
|
||||
+
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
endif(NOT CMAKE_BUILD_TYPE)
|
||||
diff --git a/engine/gupta/src/cecp/stdin_io.c b/engine/gupta/src/cecp/stdin_io.c
|
||||
index bad7c08..d765264 100644
|
||||
--- a/engine/gupta/src/cecp/stdin_io.c
|
||||
+++ b/engine/gupta/src/cecp/stdin_io.c
|
||||
@@ -50,6 +50,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <sys/select.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef _WIN32
|
||||
static HANDLE hStdInput;
|
||||
static int is_pipe = 0;
|
||||
diff --git a/src/Core/GambitApplication.cc b/src/Core/GambitApplication.cc
|
||||
index 0784032..b36a64b 100644
|
||||
--- a/src/Core/GambitApplication.cc
|
||||
+++ b/src/Core/GambitApplication.cc
|
||||
@@ -168,7 +168,11 @@ done:
|
||||
|
||||
QString appDataPath;
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+ const char *i = "/boot/home/config/settings";
|
||||
+#else
|
||||
const char *i = getenv("XDG_CONFIG_HOME");
|
||||
+#endif
|
||||
if (i)
|
||||
appDataPath = i;
|
||||
else
|
||||
diff --git a/src/main.cc b/src/main.cc
|
||||
index 2073992..f6f156f 100644
|
||||
--- a/src/main.cc
|
||||
+++ b/src/main.cc
|
||||
@@ -102,6 +102,10 @@ int main(int argc, char **argv)
|
||||
|
||||
GambitApplication app(argc, argv);
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+ QDir::setCurrent(app.applicationDirPath());
|
||||
+#endif
|
||||
+
|
||||
if (!QDir().exists(app.configDirPath()))
|
||||
{
|
||||
if (!QDir().mkdir(app.configDirPath()))
|
||||
diff --git a/src/sdk/procspawn/procspawn_unix.c b/src/sdk/procspawn/procspawn_unix.c
|
||||
index f2cc811..2a6d2a0 100644
|
||||
--- a/src/sdk/procspawn/procspawn_unix.c
|
||||
+++ b/src/sdk/procspawn/procspawn_unix.c
|
||||
@@ -432,7 +432,7 @@ static void child(int send_pid, pspwn_redir_t *parent_redir,
|
||||
goto send_status_code;
|
||||
}
|
||||
}
|
||||
-
|
||||
+#ifndef __HAIKU__
|
||||
if (priority != 0)
|
||||
{
|
||||
if (setpriority(PRIO_PROCESS, 0, priority) < 0)
|
||||
@@ -442,7 +442,7 @@ static void child(int send_pid, pspwn_redir_t *parent_redir,
|
||||
goto send_status_code;
|
||||
}
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
/* Send the PID of the 'init'-adopted child to the grandparent. */
|
||||
if (send_pid)
|
||||
{
|
||||
--
|
||||
2.19.0
|
||||
|
||||
|
||||
From 7c16c8d3828ee676b6d7c8c2bc586a515163f84e Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Tue, 2 Oct 2018 13:08:00 +1000
|
||||
Subject: Disable OpenGL
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 544e8cc..04f65be 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -299,7 +299,7 @@ find_package(Qt5Widgets REQUIRED)
|
||||
find_package(Qt5Network REQUIRED)
|
||||
find_package(Qt5OpenGL) # OPTIONAL
|
||||
|
||||
-if(Qt5OpenGL_FOUND)
|
||||
+if(Qt5OpenGL_FOUND AND NOT HAIKU)
|
||||
set(QT5_OPENGL_TARGET_LINK_LIBRARY "Qt5::OpenGL")
|
||||
add_definitions(-D CONFIG_QT_OPENGL)
|
||||
endif(Qt5OpenGL_FOUND)
|
||||
--
|
||||
2.19.0
|
||||
|
||||
Reference in New Issue
Block a user