lpairs: fix references to libSDL (#4287)

This commit is contained in:
Schrijvers Luc
2019-10-14 12:47:29 +02:00
committed by Jérôme Duval
parent 7db310ed9e
commit 28eb9b2842
2 changed files with 27 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
resource app_signature "application/x-vnd.lgames.lpairs";
resource app_flags B_SINGLE_LAUNCH;
resource app_version {
major = 1,
middle = 0,
minor = 5,
variety = B_APPV_FINAL,
internal = 0,
short_info = "LPairs",
long_info = "LPairs ©2018 Michael Speck"
};

View File

@@ -5,10 +5,11 @@ tries needed will be counted but there is no highscore chart or limit to this."
HOMEPAGE="http://lgames.sourceforge.net/"
COPYRIGHT="2001-2018 Michael Speck"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://sourceforge.net/projects/lgames/files/lpairs/lpairs-$portVersion.tar.gz"
CHECKSUM_SHA256="57afe33d2a83229c3cff5efa6512fd2eeac4eacb92d37dd3070db6bbb024dc16"
PATCHES="lpairs-$portVersion.patchset"
ADDITIONAL_FILES="lpairs.rdef"
ARCHITECTURES="x86_gcc2 x86 x86_64"
@@ -18,12 +19,14 @@ PROVIDES="
"
REQUIRES="
haiku
lib:libsdl
lib:libintl
lib:libSDL_1.2
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libintl
devel:libSDL_1.2
"
BUILD_PREREQUIRES="
cmd:aclocal
@@ -35,23 +38,23 @@ BUILD_PREREQUIRES="
cmd:libtoolize
cmd:make
"
if [ "$effectiveTargetArchitecture" == "x86_64" ] ; then
PATCHES="lpairs-$portVersion.patchset"
fi
BUILD()
{
autoreconf -vfi
runConfigure ./configure --disable-nls --disable-dependency-tracking
LDFLAGS=-lintl runConfigure --omit-dirs binDir \
./configure --bindir=$appsDir --disable-dependency-tracking
make $jobArgs
}
INSTALL()
{
make install
mv $appsDir/lpairs $appsDir/LPairs
rm -rf $dataDir/{applications,icons}
addAppDeskbarSymlink $binDir/lpairs LPairs
addResourcesToBinaries $portDir/additional-files/lpairs.rdef $appsDir/LPairs
addAppDeskbarSymlink $appsDir/LPairs
}