Adjusted libsdl-1.2.15 and sdl_image-1.2.12, libsdl-1.2.15 builds but files aren't showing up as expected, so sdl_image fails to detect SDL headers

This commit is contained in:
Scott McCreary
2013-09-23 01:02:56 -07:00
parent 15d1ef31fc
commit e0fe8e2a81
3 changed files with 15 additions and 104 deletions

View File

@@ -11,11 +11,12 @@ ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
cmd:sdl_config = portVersion compat >= 1.2
lib:libsdl = $portVersion compat >= 1.2
lib:libSDL = $portVersion compat >= 1.2
lib:libSDL_1.2 = 0.11.4 compat >= 0.11
"
REQUIRES="
haiku >= $haikuVersion
haiku
"
BUILD_REQUIRES="
lib:libpng
@@ -23,7 +24,7 @@ BUILD_REQUIRES="
lib:libtiff
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
haiku_devel
cmd:aclocal
cmd:autoconf
cmd:gcc
@@ -32,38 +33,29 @@ BUILD_PREREQUIRES="
cmd:make
"
SOURCE_DIR="SDL-1.2.15"
SOURCE_DIR="SDL-$portVersion"
PATCH()
{
sed -i 's/AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)/have_alsa=no/' configure.in
sed -i 's/AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)/have_esd=no/' configure.in
echo "AC_CONFIG_MACRO_DIR([acinclude])" >> configure.in
libtoolize --force --copy --install
aclocal -I acinclude
autoconf
}
BUILD()
{
runConfigure ./configure
libtoolize --force --copy --install
aclocal -I acinclude
autoconf
runConfigure ./configure --includedir=$includeDir
make $jobArgs
}
INSTALL()
{
make install
# devel package
mkdir -p $developDir/lib
cp build/.libs/libSDL.a $developDir/lib/libSDL.a
cp build/.libs/libSDL.la $developDir/lib/libSDL.la
cp build/.libs/libSDLmain.a $developDir/lib/libSDLmain.a
cp build/.libs/libSDLmain.la $developDir/lib/libSDLmain.la
cp include/* $includeDir
# devel package
prepareInstalledDevelLibs \
libSDL \
libSDLmain