mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
Pingus: fix build, add icon
This commit is contained in:
@@ -4,10 +4,11 @@ other operating systems supported by SDL. It is covered under the GPL."
|
||||
HOMEPAGE="https://pingus.seul.org"
|
||||
COPYRIGHT="1998-2011 Ingo Ruhnke"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="https://github.com/Pingus/pingus/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="c4cd89e1d350d2472f32de5f6266ac9f3658a3620eace3f79efac45db4323b65"
|
||||
PATCHES="pingus-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="pingus.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -23,9 +24,9 @@ REQUIRES="
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libsdl_mixer$secondaryArchSuffix
|
||||
lib:libsdl_1.2$secondaryArchSuffix
|
||||
lib:libsdl_image_1.2$secondaryArchSuffix
|
||||
lib:libsdl_mixer_1.2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
@@ -36,9 +37,9 @@ BUILD_REQUIRES="
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
devel:libsdl_mixer$secondaryArchSuffix
|
||||
devel:libsdl_1.2$secondaryArchSuffix
|
||||
devel:libsdl_image_1.2$secondaryArchSuffix
|
||||
devel:libsdl_mixer_1.2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
@@ -51,18 +52,40 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
scons BINDIR=$appsDir/Pingus \
|
||||
scons \
|
||||
with_opengl=false \
|
||||
BINDIR=$appsDir/Pingus \
|
||||
DATADIR=$appsDir/Pingus/data \
|
||||
MANDIR=$manDir $jobArgs
|
||||
MANDIR=$manDir
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Pingus/data
|
||||
|
||||
make install BINDIR=$appsDir/Pingus \
|
||||
make install \
|
||||
BINDIR=$appsDir/Pingus \
|
||||
DATADIR=$appsDir/Pingus/data \
|
||||
MANDIR=$manDir
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Pingus/pingus Pingus
|
||||
mv $appsDir/Pingus/pingus.bin $appsDir/Pingus/Pingus
|
||||
rm $appsDir/Pingus/pingus
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.pingus"
|
||||
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/pingus.rdef.in > $sourceDir/pingus.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/pingus.rdef \
|
||||
$appsDir/Pingus/Pingus
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Pingus/Pingus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user