mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Updated .recipe for libsdl-1.2.15 so that it now builds.
This commit is contained in:
@@ -1,32 +1,75 @@
|
||||
SUMMARY="Simple Direct Media Layer"
|
||||
DESCRIPTION="Simple Direct Media Layer"
|
||||
HOMEPAGE="http://www.libsdl.org/"
|
||||
SRC_URI="http://www.libsdl.org/release/SDL-1.2.15.tar.gz"
|
||||
CHECKSUM_MD5="9d96df8417572a2afb781a7c4c811a85"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="1997-2012 Sam Lantinga"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
cmd:sdl_config = portVersion compat >= 1.2
|
||||
lib:libSDL = $portVersion compat >= 1.2
|
||||
lib:libSDL_1.2 = 0.11.4 compat >= 0.11
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
lib:libpng
|
||||
lib:libjpeg
|
||||
lib:libtiff
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtool
|
||||
cmd:make
|
||||
"
|
||||
|
||||
SOURCE_DIR="SDL-1.2.15"
|
||||
|
||||
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()
|
||||
{
|
||||
cd SDL-1.2.15
|
||||
./autogen.sh
|
||||
rm aclocal.m4
|
||||
echo "AC_CONFIG_MACRO_DIR([acinclude])" >> configure.in
|
||||
libtoolize -fci
|
||||
aclocal -I acinclude
|
||||
./autogen.sh
|
||||
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||
--libdir=$LIBDIR \
|
||||
--mandir=$MANDIR
|
||||
make
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd SDL-1.2.15
|
||||
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
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libSDL \
|
||||
libSDLmain
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
@@ -100,5 +143,15 @@ TEST()
|
||||
testlock
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
COPYRIGHT="1997-2012 Sam Lantinga"
|
||||
# ----- devel package ------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
cmd:sdl_config = portVersion compat >= 1.2
|
||||
devel:libSDL_1.2 = 0.11.4 compat >= 0.11
|
||||
devel:libSDL = 0.11.4 compat >= 0.11
|
||||
devel:libSDLmain = 0.11.4 compat >= 0.11
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
libsdl == $portVersion base
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user