z80: use pkg-config to find sdl

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2015-03-13 01:45:06 +01:00
parent d43e79d500
commit 29284f3582
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
From c12487107cc52aa13841533fd151362e37f37ff6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
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 <schnitzeltony@googlemail.com>
---
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

View File

@@ -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 \
"