From 548c1faf891a5846420e9dd412270090f8fd0dea Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Wed, 2 Oct 2013 04:40:47 -0700 Subject: [PATCH] Initial .recipe files for libsdl2 and sdl2_ttf, not working yet, but libsdl2 builds --- media-libs/libsdl/libsdl-2.0.0.recipe | 28 ------- .../{libsdl => libsdl2}/libsdl-2.0_hg.recipe | 0 .../libsdl-2.0_hg_cmake.recipe | 0 media-libs/libsdl2/libsdl2-2.0.0.recipe | 82 +++++++++++++++++++ .../patches/libsdl-2.0.0.patch | 0 media-libs/sdl2_ttf/sdl2_ttf-2.0.12.recipe | 47 +++++++++++ 6 files changed, 129 insertions(+), 28 deletions(-) delete mode 100644 media-libs/libsdl/libsdl-2.0.0.recipe rename media-libs/{libsdl => libsdl2}/libsdl-2.0_hg.recipe (100%) rename media-libs/{libsdl => libsdl2}/libsdl-2.0_hg_cmake.recipe (100%) create mode 100644 media-libs/libsdl2/libsdl2-2.0.0.recipe rename media-libs/{libsdl => libsdl2}/patches/libsdl-2.0.0.patch (100%) create mode 100644 media-libs/sdl2_ttf/sdl2_ttf-2.0.12.recipe diff --git a/media-libs/libsdl/libsdl-2.0.0.recipe b/media-libs/libsdl/libsdl-2.0.0.recipe deleted file mode 100644 index 6f7de2ebd..000000000 --- a/media-libs/libsdl/libsdl-2.0.0.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="Simple Direct Media Layer" -HOMEPAGE="http://www.libsdl.org/" -SRC_URI="http://www.libsdl.org/release/SDL2-2.0.0.tar.gz" -CHECKSUM_MD5="beec89afb6edcc6f0abc4114f2e6bcf7" -REVISION="1" -STATUS_HAIKU="unstable" -DEPEND="pkgconfig >= 0.9.0" -BUILD { - cd SDL2-2.0.0 - MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man - LIBDIR=`finddir B_COMMON_LIB_DIRECTORY` - DATADIR=`finddir B_COMMON_DATA_DIRECTORY` - mkdir build_haiku - cd build_haiku - ../configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --libdir=$LIBDIR \ - --mandir=$MANDIR \ - --datadir=$DATADIR \ - --enable-shared - make -} - -INSTALL { - cd SDL2-2.0.0/build_haiku - make install -} -LICENSE="Zlib" -COPYRIGHT="1997-2012 Sam Lantinga" diff --git a/media-libs/libsdl/libsdl-2.0_hg.recipe b/media-libs/libsdl2/libsdl-2.0_hg.recipe similarity index 100% rename from media-libs/libsdl/libsdl-2.0_hg.recipe rename to media-libs/libsdl2/libsdl-2.0_hg.recipe diff --git a/media-libs/libsdl/libsdl-2.0_hg_cmake.recipe b/media-libs/libsdl2/libsdl-2.0_hg_cmake.recipe similarity index 100% rename from media-libs/libsdl/libsdl-2.0_hg_cmake.recipe rename to media-libs/libsdl2/libsdl-2.0_hg_cmake.recipe diff --git a/media-libs/libsdl2/libsdl2-2.0.0.recipe b/media-libs/libsdl2/libsdl2-2.0.0.recipe new file mode 100644 index 000000000..1810acaa7 --- /dev/null +++ b/media-libs/libsdl2/libsdl2-2.0.0.recipe @@ -0,0 +1,82 @@ +SUMMARY="Simple Direct Media Layer 2.0" +DESCRIPTION="SDL 2.0" +HOMEPAGE="http://www.libsdl.org/" +SRC_URI="http://www.libsdl.org/release/SDL2-2.0.0.tar.gz" +CHECKSUM_MD5="beec89afb6edcc6f0abc4114f2e6bcf7" +REVISION="1" +LICENSE="Zlib" +COPYRIGHT="1997-2013 Sam Lantinga" + +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + lib:libsdl2 = $portVersion compat >= 2.0 + cmd:sdl2_config = $portVersion compat >= 2.0 + lib:libsdl2 = $portVersion compat >= 2.0 + lib:libSDL2 = $portVersion compat >= 2.0 + lib:libSDL2_2.0 = 0.0.0 compat >= 0.12 + " + +REQUIRES=" + haiku + lib:libGL + lib:libroot + lib:libbe + lib:libmedia + lib:libgame + lib:libdevice + lib:libtextencoding + " + +BUILD_REQUIRES=" + lib:libpng + lib:libjpeg + lib:libtiff + " + +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:libtool + cmd:aclocal + cmd:make + cmd:gcc + cmd:ld + " + +SOURCE_DIR="SDL2-$portVersion" + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + # devel package + prepareInstalledDevelLibs \ + libSDL2 \ + libSDL2main \ + libSDL2_test + + fixPkgconfig + + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------- +PROVIDES_devel=" + cmd:sdl2_config = $portVersion compat >= 2.0 + devel:libSDL2_2.0 = 0.0.0 compat >= 0 + devel:libSDL2 = 0.0.0 compat >= 0 + devel:libSDL2main = 0.12.0 compat >= 0 + devel:libSDL2_test = 0.0.0 compat >= 0 + " + +REQUIRES_devel=" + libsdl2 == $portVersion base + " + diff --git a/media-libs/libsdl/patches/libsdl-2.0.0.patch b/media-libs/libsdl2/patches/libsdl-2.0.0.patch similarity index 100% rename from media-libs/libsdl/patches/libsdl-2.0.0.patch rename to media-libs/libsdl2/patches/libsdl-2.0.0.patch diff --git a/media-libs/sdl2_ttf/sdl2_ttf-2.0.12.recipe b/media-libs/sdl2_ttf/sdl2_ttf-2.0.12.recipe new file mode 100644 index 000000000..a8ded08ac --- /dev/null +++ b/media-libs/sdl2_ttf/sdl2_ttf-2.0.12.recipe @@ -0,0 +1,47 @@ +SUMMARY="Simple Direct Media Layer Image Library" +DESCRIPTION="SDL" +HOMEPAGE="http://www.libsdl.org/projects/SDL_ttf" +SRC_URI="http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.12.tar.gz" +CHECKSUM_MD5="79787216b56cb4707f39d538f2225e00" +REVISION="1" +LICENSE="Zlib" +COPYRIGHT="1997-2013 Sam Lantinga" + +ARCHITECTURES="x86 x86_gcc2" + +PROVIDES=" + lib:SDL2_ttf + " + +REQUIRES=" + lib:libsdl2 + " + +BUILD_REQUIRES=" + cmd:autoconf + cmd:libtool + cmd:aclocal + cmd:make + cmd:gcc + " + +BUILD_PREREQUIRES=" + " + +SOURCE_DIR="SDL2_ttf-$portVersion" + +BUILD() +{ +# rm -f acinclude.m4 +# libtoolize --copy --force --install +# aclocal --install -I acinclude +# echo "AC_CONFIG_MACRO_DIR([acinclude]) > configure.in" +# ./autogen.sh + runConfigure ./configure + make +} + +INSTALL() +{ + make install +}