From 29284f358269920381f22bb1e77299fbe1651c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 13 Mar 2015 01:45:06 +0100 Subject: [PATCH] z80: use pkg-config to find sdl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../0001-use-pkg-config-to-find-sdl.patch | 31 +++++++++++++++++++ recipes-emulators/z80/z80_git.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 recipes-emulators/z80/files/0001-use-pkg-config-to-find-sdl.patch diff --git a/recipes-emulators/z80/files/0001-use-pkg-config-to-find-sdl.patch b/recipes-emulators/z80/files/0001-use-pkg-config-to-find-sdl.patch new file mode 100644 index 0000000..2aa6d44 --- /dev/null +++ b/recipes-emulators/z80/files/0001-use-pkg-config-to-find-sdl.patch @@ -0,0 +1,31 @@ +From c12487107cc52aa13841533fd151362e37f37ff6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Fri, 13 Mar 2015 01:40:33 +0100 +Subject: [PATCH] use pkg-config to find sdl +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index de4782b..0dfc7ce 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,8 +27,8 @@ LIBS:= -L/usr/lib -lz + CFLAGS+= -DDEBUG=$(DEBUG) + + # SDL libraries and cflags +-SDL_LIB:= $(shell sdl-config --libs) +-SDL_INC:= $(shell sdl-config --cflags) ++SDL_LIB:= $(shell pkg-config --libs sdl) ++SDL_INC:= $(shell pkg-config --cflags sdl) + + # Expat libraries and cflags + EXPAT_LIB:= -L/usr/pkg/lib -lexpat +-- +1.9.3 + diff --git a/recipes-emulators/z80/z80_git.bb b/recipes-emulators/z80/z80_git.bb index 940b0b5..3bd5434 100644 --- a/recipes-emulators/z80/z80_git.bb +++ b/recipes-emulators/z80/z80_git.bb @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" SRC_URI = " \ git://github.com/schnitzeltony/z80.git;branch=master \ + file://0001-use-pkg-config-to-find-sdl.patch \ file://cgenie.desktop \ file://trs80.desktop \ "