mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
gcompris: add recipe for Qt5 version 0.70.
* needs Qt5 OpenGL.
This commit is contained in:
14
games-kids/gcompris/additional-files/gcompris.rdef.in
Normal file
14
games-kids/gcompris/additional-files/gcompris.rdef.in
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
short_info = "GCompris",
|
||||
long_info = "Educational typing tutor"
|
||||
};
|
||||
|
||||
resource app_signature "application/x-vnd.qt5-GCompris";
|
||||
103
games-kids/gcompris/gcompris-0.70.recipe
Normal file
103
games-kids/gcompris/gcompris-0.70.recipe
Normal file
@@ -0,0 +1,103 @@
|
||||
SUMMARY="Educational software suite comprising of numerous activities for kids"
|
||||
DESCRIPTION="GCompris is a high quality educational software suite comprising \
|
||||
of numerous activities for children aged 2 to 10.
|
||||
Some of the activities are game orientated, but nonetheless still educational."
|
||||
HOMEPAGE="http://gcompris.net/"
|
||||
COPYRIGHT="
|
||||
2014-2016 Bruno Coudoin
|
||||
2014-2016 Johnny Jazeix
|
||||
2016 Stefan Toncu
|
||||
2014-2015 Stephane Mankowski
|
||||
2015 Sagar Chand Agarwal
|
||||
2014 Emmanuel Charruau
|
||||
2014-2015 Holger Kaelberer
|
||||
2014 Pulkit Gupta
|
||||
2010-2011 Alessandro Portale
|
||||
2014 Aruna Sankaranarayanan
|
||||
2015 Siddhesh suthar
|
||||
"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://gcompris.net/download/qt/src/gcompris-qt-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="8a475ac354dad320dee1c1f6835fb1bb36ef91fe157870bda3562c5e1b8a2707"
|
||||
SOURCE_DIR="gcompris-qt-$portVersion"
|
||||
ADDITIONAL_FILES="gcompris.rdef.in"
|
||||
PATCHES="gcompris-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
gcompris$secondaryArchSuffix
|
||||
app:GCompris$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Multimedia$secondaryArchSuffix
|
||||
lib:libQt5Network$secondaryArchSuffix
|
||||
lib:libQt5Qml$secondaryArchSuffix
|
||||
lib:libQt5Quick$secondaryArchSuffix
|
||||
lib:libQt5Sensors$secondaryArchSuffix
|
||||
lib:libQt5Svg$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
lib:libQt5XmlPatterns$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
qt5:QmlBox2d
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Multimedia$secondaryArchSuffix
|
||||
devel:libQt5Network$secondaryArchSuffix
|
||||
devel:libQt5Qml$secondaryArchSuffix
|
||||
devel:libQt5Quick$secondaryArchSuffix
|
||||
devel:libQt5Sensors$secondaryArchSuffix
|
||||
devel:libQt5Svg$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libQt5Xml$secondaryArchSuffix
|
||||
devel:libQt5XmlPatterns$secondaryArchSuffix
|
||||
# should come with devel:libQt5Gui
|
||||
devel:libgl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgattrib
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DQML_BOX2D_LIBRARY=$dataDir/Qt5/qml/Box2D.2.0
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR=0
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/gcompris.rdef.in > gcompris.rdef
|
||||
|
||||
addResourcesToBinaries gcompris.rdef \
|
||||
$binDir/gcompris-qt
|
||||
|
||||
mkdir -p $appsDir
|
||||
mv $binDir/gcompris-qt $appsDir/GCompris
|
||||
rm -r $binDir
|
||||
addAppDeskbarSymlink $appsDir/GCompris
|
||||
}
|
||||
35
games-kids/gcompris/patches/gcompris-0.70.patchset
Normal file
35
games-kids/gcompris/patches/gcompris-0.70.patchset
Normal file
@@ -0,0 +1,35 @@
|
||||
From bdda155481ba5f6031e87b06da3258d2626e33c0 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sat, 22 Apr 2017 14:24:24 +0200
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index fee7efc..481ef10 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -147,6 +147,8 @@ if(CMAKE_HOST_APPLE)
|
||||
set(_data_dest_dir bin/${_bundle_bin}/../Resources)
|
||||
elseif(ANDROID)
|
||||
set(_data_dest_dir android/assets)
|
||||
+elseif(HAIKU)
|
||||
+ set(_data_dest_dir data/${GCOMPRIS_EXECUTABLE_NAME})
|
||||
else()
|
||||
set(_data_dest_dir share/${GCOMPRIS_EXECUTABLE_NAME})
|
||||
endif()
|
||||
diff --git a/cmake/rcc.cmake b/cmake/rcc.cmake
|
||||
index f5479d8..e4e2b10 100644
|
||||
--- a/cmake/rcc.cmake
|
||||
+++ b/cmake/rcc.cmake
|
||||
@@ -47,7 +47,7 @@ function(GCOMPRIS_ADD_RCC resource_path)
|
||||
if(CMAKE_HOST_APPLE)
|
||||
install(FILES ${CREATED_RCC} DESTINATION ${GCOMPRIS_EXECUTABLE_NAME}.app/Contents/MacOS/rcc)
|
||||
else()
|
||||
- install(FILES ${CREATED_RCC} DESTINATION share/${GCOMPRIS_EXECUTABLE_NAME}/rcc)
|
||||
+ install(FILES ${CREATED_RCC} DESTINATION ${_data_dest_dir}/rcc)
|
||||
endif()
|
||||
|
||||
add_custom_target(
|
||||
--
|
||||
2.12.2
|
||||
|
||||
Reference in New Issue
Block a user