mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
* melonDS: added recipe * melonDS: implemented proposed changes * melonDS: implemented proposed changes
82 lines
2.2 KiB
Bash
82 lines
2.2 KiB
Bash
SUMMARY="Nintendo DS/DSi emulator"
|
|
DESCRIPTION="MelonDS is an open source and feature-rich Nintendo DS/DSi emulator"
|
|
HOMEPAGE="http://melonds.kuribo64.net/"
|
|
COPYRIGHT="2016-2022 melonDS Team"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/melonDS-emu/melonDS/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="52c6b99340b8bba8c52b11a2242591f05e838c34ddd9ec20dcf1a6039405434a"
|
|
SOURCE_DIR="melonDS-$portVersion"
|
|
PATCHES="melonds-$portVersion.patchset"
|
|
ADDITIONAL_FILES="melonds.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
melonds$secondaryArchSuffix = $portVersion
|
|
app:melonDS = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libarchive$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libegl$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libslirp$secondaryArchSuffix
|
|
lib:libX11$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
xlibe${secondaryArchSuffix}_devel
|
|
devel:libarchive$secondaryArchSuffix
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libslirp$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_WAYLAND=OFF \
|
|
-DENABLE_JIT=OFF \
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
make -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
cp build/melonDS $appsDir/melonDS
|
|
|
|
local APP_SIGNATURE="application/x-vnd.melonds"
|
|
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/melonds.rdef.in > $sourceDir/melonds.rdef
|
|
|
|
addResourcesToBinaries $sourceDir/melonds.rdef \
|
|
"$appsDir/melonDS"
|
|
|
|
addAppDeskbarSymlink $appsDir/melonDS
|
|
}
|