mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
lugaru, fix libpng16 reference, cleanup build/install (#3815)
This commit is contained in:
committed by
waddlesplash
parent
6a89061b45
commit
cbaf99a22e
@@ -10,7 +10,7 @@ HOMEPAGE="https://osslugaru.gitlab.io/"
|
||||
COPYRIGHT="2017 OSS Lugaru Team"
|
||||
LICENSE="GNU GPL v2
|
||||
CC-BY-SA-3.0"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://bitbucket.org/osslugaru/lugaru/downloads/lugaru-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="f3ea477caf78911c69939fbdc163f9f6517c7ef2267e716a0e050be1a166ef97"
|
||||
SOURCE_DIR="lugaru-$portVersion"
|
||||
@@ -31,7 +31,7 @@ REQUIRES="
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
@@ -44,15 +44,15 @@ BUILD_REQUIRES="
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
devel:libSDL2$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
@@ -62,16 +62,15 @@ BUILD()
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Lugaru
|
||||
|
||||
cp build/lugaru $appsDir/Lugaru/Lugaru
|
||||
cp -rf {Data,Docs} $appsDir/Lugaru
|
||||
cd build
|
||||
make install
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.lugaru"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
@@ -84,7 +83,12 @@ INSTALL()
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/lugaru.rdef.in > $sourceDir/lugaru.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/lugaru.rdef $appsDir/Lugaru/Lugaru
|
||||
mkdir -p $appsDir
|
||||
mv $binDir/lugaru $appsDir/Lugaru
|
||||
addResourcesToBinaries $sourceDir/lugaru.rdef $appsDir/Lugaru
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Lugaru/Lugaru
|
||||
# remove obsolete files
|
||||
rm -rf $binDir $dataDir/{appdata,applications,icons}
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Lugaru
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user