mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
freegemas, new recipe (#9623)
This commit is contained in:
27
games-puzzle/freegemas/additional-files/freegemas.rdef.in
Normal file
27
games-puzzle/freegemas/additional-files/freegemas.rdef.in
Normal file
@@ -0,0 +1,27 @@
|
||||
resource app_flags B_SINGLE_LAUNCH;
|
||||
|
||||
resource app_version {
|
||||
major = @MAJOR@,
|
||||
middle = @MIDDLE@,
|
||||
minor = @MINOR@,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "@APP_NAME@",
|
||||
long_info = "@LONG_INFO@"
|
||||
};
|
||||
|
||||
resource app_signature "@APP_SIGNATURE@";
|
||||
|
||||
resource vector_icon {
|
||||
$"6E6369660B03C6630203904902020004025AD37E28FFAB6115030065FE03A9CB"
|
||||
$"FE033287FE05FE0300307E05FF04016303010000070A043C404440473739370A"
|
||||
$"033937402647370A0439373432373B3C400A033432402639370A0347374C3444"
|
||||
$"400A03402647374C340A062E313A2546333E3F363F313A070A0A01061241CE56"
|
||||
$"000000000000419DAFC8326C3CB18801178400040A0301000241CE5600000000"
|
||||
$"0000419DAFC99FCDC0F14D0A0401010241CE56000000000000419DAFC99FCDC0"
|
||||
$"F14D0A0501020241CE56000000000000419DAFC99FCDC0F14D0A0601030241CE"
|
||||
$"56000000000000419DAFC99FCDC0F14D0A0701040241CE56000000000000419D"
|
||||
$"AFC99FCDC0F14D0A0501050241CE56000000000000419DAFC99FCDC0F14D"
|
||||
};
|
||||
79
games-puzzle/freegemas/freegemas-22.02.recipe
Normal file
79
games-puzzle/freegemas/freegemas-22.02.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="An open source version of the well known Bejeweled"
|
||||
DESCRIPTION="Freegemas is an open source version of the well known Bejeweled, for GNU/Linux, \
|
||||
Windows, Mac and Playstation Vita. It's written in C++ using SDL2. In the past it used Gosu \
|
||||
instead of SDL2, and the old repository can be found at Google Code."
|
||||
HOMEPAGE="https://github.com/JoseTomasTocino/freegemas"
|
||||
COPYRIGHT="2022 José Tomás Tocino"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/refs/tags/22.02.tar.gz"
|
||||
CHECKSUM_SHA256="916fb537fb836fd6d08a31aff8d351a9d54cf70bd13aaba31d376a55797cca55"
|
||||
ADDITIONAL_FILES="freegemas.rdef.in"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
freegemas$secondaryArchSuffix = $portVersion
|
||||
app:Freegemas
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libjsoncpp$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libjsoncpp$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_image_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_ttf_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/Freegemas \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-lintl" -L
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
# we are not linux
|
||||
rm -rf $appsDir/Freegemas/share/{applications,icons}
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="0"
|
||||
local APP_NAME="Freegemas"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
local APP_SIGNATURE="application/x-vnd.freegemas"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
-e "s|@APP_NAME@|$APP_NAME|" \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
$portDir/additional-files/freegemas.rdef.in > freegemas.rdef
|
||||
|
||||
addResourcesToBinaries freegemas.rdef $appsDir/Freegemas/bin/freegemas
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Freegemas/bin/freegemas Freegemas
|
||||
}
|
||||
Reference in New Issue
Block a user