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 +