mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
sdl2_gfx, add secondary architecture (#3380)
This commit is contained in:
committed by
Scott McCreary
parent
4bcf5d74ab
commit
d934f6e482
@@ -6,51 +6,59 @@ which implemented a interpolating rotozoomer for SDL_surfaces."
|
||||
HOMEPAGE="http://www.ferzkopp.net/joomla/content/view/19/14/"
|
||||
COPYRIGHT="1999-2018 A. Schiffler"
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262"
|
||||
SOURCE_DIR="SDL2_gfx-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0.2"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
sdl2_gfx = $portVersion compat >= 1
|
||||
lib:libsdl2_gfx_1.0 = 0.0.2 compat >= 0
|
||||
sdl2_gfx$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libSDL2_gfx$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libSDL2_gfx_1.0$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libgl
|
||||
lib:libsdl2_2.0
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
sdl2_gfx_devel = $portVersion compat >= 1
|
||||
devel:libsdl2_gfx
|
||||
sdl2_gfx${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libSDL2_gfx$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libSDL2_gfx_1.0$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
sdl2_gfx == $portVersion base
|
||||
sdl2_gfx$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl2_2.0
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:autoreconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtool
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:sdl2_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
defineDebugInfoPackage sdl2_gfx$secondaryArchSuffix \
|
||||
$libDir/libSDL2_gfx-1.0.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure --disable-mmx
|
||||
make
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
@@ -60,7 +68,7 @@ INSTALL()
|
||||
#remove libtool file
|
||||
rm $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib libSDL2_gfx
|
||||
prepareInstalledDevelLibs libSDL2_gfx libSDL2_gfx-1.0
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
@@ -71,7 +79,7 @@ TEST()
|
||||
{
|
||||
cd Test
|
||||
runConfigure ./configure
|
||||
# fails to configure due to missing sdl_gfx
|
||||
make
|
||||
# fails to configure due to missing sdl2_gfx
|
||||
make $jobArgs
|
||||
ls
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user