From 8a7730d663f2bb7e1c04d12e91d9c62d447c2a27 Mon Sep 17 00:00:00 2001 From: Marc Beuchat Date: Fri, 11 May 2007 18:47:06 +0000 Subject: [PATCH] Marc Beuchat: Fixed package/fake/sonypid to compile if xorg 7 is built. [2007032017123020258] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8348 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/fake/sonypid/sonypid.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package/fake/sonypid/sonypid.conf b/package/fake/sonypid/sonypid.conf index 130930f3d..e9f28b2a8 100644 --- a/package/fake/sonypid/sonypid.conf +++ b/package/fake/sonypid/sonypid.conf @@ -20,4 +20,14 @@ # # --- ROCK-COPYRIGHT-NOTE-END --- -var_append makeinstopt ' ' "PREFIX=$root/usr" +sonypid_preconf() { + var_append makeinstopt ' ' "PREFIX=$root/usr" + + if [ -d $root/usr/X11R7 ]; then + var_append makeopt ' ' "CFLAGS='-I$root/usr/X11R7/include -Wall -Wstrict-prototypes -O2 -pipe'" + var_append makeopt ' ' "LIBS='-L$root/usr/X11R7/lib -lX11 -lXtst'" + fi +} + +hook_add premake 5 sonypid_preconf +