From 50d9c9eb8330eb291c59b7179884d771ad3016e4 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 13 Dec 2012 04:05:11 +0200 Subject: [PATCH] allegro4: added Signed-off-by: Marko Lindqvist --- .../allegro4-4.4.2/avoid_lib_paths.patch | 22 +++++++++++++++++++ recipes-gamelib/allegro4/allegro4_4.4.2.bb | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 recipes-gamelib/allegro4/allegro4-4.4.2/avoid_lib_paths.patch create mode 100644 recipes-gamelib/allegro4/allegro4_4.4.2.bb diff --git a/recipes-gamelib/allegro4/allegro4-4.4.2/avoid_lib_paths.patch b/recipes-gamelib/allegro4/allegro4-4.4.2/avoid_lib_paths.patch new file mode 100644 index 0000000..8a8bcf1 --- /dev/null +++ b/recipes-gamelib/allegro4/allegro4-4.4.2/avoid_lib_paths.patch @@ -0,0 +1,22 @@ +allegro-config does not give any library path parameters for --libs to +avoid problems with target paths getting used in build system. + +Signed-off-by: Marko Lindqvist +diff -Nurd allegro-4.4.2/misc/allegro-config.in allegro-4.4.2/misc/allegro-config.in +--- allegro-4.4.2/misc/allegro-config.in 2010-03-03 12:22:34.000000000 +0200 ++++ allegro-4.4.2/misc/allegro-config.in 2012-12-13 03:59:39.564579024 +0200 +@@ -188,11 +188,11 @@ + fi + + if test "$echo_libs" = "yes"; then +- test -z "$addon_form" && libdirs=-L${lib_path} ++ test -z "$addon_form" + if test "$static_libs" = "yes"; then +- echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs ++ echo $allegro_ldflags -l${lib_type} $allegro_libs + else +- echo $libdirs $allegro_ldflags -l${lib_type} ++ echo $allegro_ldflags -l${lib_type} + fi + fi + diff --git a/recipes-gamelib/allegro4/allegro4_4.4.2.bb b/recipes-gamelib/allegro4/allegro4_4.4.2.bb new file mode 100644 index 0000000..d2a9f42 --- /dev/null +++ b/recipes-gamelib/allegro4/allegro4_4.4.2.bb @@ -0,0 +1,22 @@ +DESCRIPTION = "Allegro4 is cross-platform, open source, game programming library" +HOMEPAGE = "http://alleg.sourceforge.net/" +SECTION = "libs" + +LICENSE = "Allegro4" +LIC_FILES_CHKSUM = "file://docs/txt/license.txt;md5=55ec083de776f786d0da79bbbb887c50" + +PR = "r0" + +DEPENDS = "virtual/libgl libglu libx11 libxcursor physfs openal jpeg" + +SRC_URI = "${SOURCEFORGE_MIRROR}/alleg/allegro/${PV}/allegro-${PV}.tar.gz \ +file://avoid_lib_paths.patch \ +" + +SRC_URI[md5sum] = "4db71b0460fc99926ae91d223199c2e6" +SRC_URI[sha256sum] = "1b21e7577dbfada02d85ca4510bd22fedaa6ce76fde7f4838c7c1276eb840fdc" + +inherit cmake binconfig + +S = "${WORKDIR}/allegro-${PV}" +