mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
SDL2_image: fix for gcc2
Only problem was use of dos line endings confusing the C preprocessor.
This commit is contained in:
@@ -13,13 +13,8 @@ REVISION="3"
|
||||
LICENSE="Zlib"
|
||||
COPYRIGHT="1997-2013 Sam Lantinga"
|
||||
|
||||
ARCHITECTURES="x86"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
sdl2_image${secondaryArchSuffix} = $portVersion
|
||||
@@ -57,6 +52,7 @@ BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:automake
|
||||
cmd:autoconf
|
||||
cmd:dos2unix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
@@ -70,7 +66,8 @@ BUILD()
|
||||
libtoolize --copy --force --install
|
||||
aclocal --install -I acinclude
|
||||
autoconf
|
||||
runConfigure ./configure --with-x=no
|
||||
dos2unix miniz.h
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -80,6 +77,7 @@ INSTALL()
|
||||
|
||||
prepareInstalledDevelLibs libSDL2_image libSDL2_image-2.0
|
||||
fixPkgconfig
|
||||
rm $developLibDir/*.la
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
|
||||
Reference in New Issue
Block a user