Refactor the GDK_NATIVE_WINDOWS patch

Follow the Fedora patch and put it into npw-viewer.sh. It's a little
cleaner than in the Makefile.
This commit is contained in:
David Benjamin 2011-05-17 18:37:36 -04:00
parent 66570b9b0c
commit c7c9aa3fc0
2 changed files with 6 additions and 5 deletions

View File

@ -265,11 +265,6 @@ install.viewer.glue::
echo "#!/bin/sh" > $$p; \
echo "TARGET_OS=$(TARGET_OS)" >> $$p; \
echo "TARGET_ARCH=$(TARGET_ARCH)" >> $$p; \
echo 'case "$$*" in' >> $$p; \
echo "*libflashplayer*)" >> $$p; \
echo " export GDK_NATIVE_WINDOWS=1" >> $$p; \
echo " ;;" >> $$p; \
echo "esac" >> $$p; \
echo ". $(npcommondir)/$(nploader_PROGRAM)" >> $$p; \
chmod 755 $$p
do.install.libnoxshm: $(libnoxshm_LIBRARY)

View File

@ -5,6 +5,12 @@
OS="`uname -s | tr '[A-Z]' '[a-z]'`"
ARCH="`uname -m`"
case "$*" in
*libflashplayer*)
export GDK_NATIVE_WINDOWS=1
;;
esac
if test -z "$TARGET_OS"; then
echo "*** NSPlugin Viewer *** error, TARGET_OS not initialized"
exit 1