From 22b2811e6aa0bdbfa6a0682ac862063e52ec0c62 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 17 Dec 2008 13:54:53 -0800 Subject: [PATCH] XQuartz: Name the startup shell script X11 for better compatability (cherry picked from commit f84613d6fcbbb5f769ee34cff0900353a13693cf) --- hw/xquartz/bundle/Info.plist.cpp | 2 +- hw/xquartz/bundle/X11.sh | 2 +- hw/xquartz/bundle/mk_bundke.sh | 2 +- hw/xquartz/mach-startup/Makefile.am | 16 ++++++++-------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/xquartz/bundle/Info.plist.cpp b/hw/xquartz/bundle/Info.plist.cpp index 971328990..16434f268 100644 --- a/hw/xquartz/bundle/Info.plist.cpp +++ b/hw/xquartz/bundle/Info.plist.cpp @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion English CFBundleExecutable - X11.sh + X11 CFBundleGetInfoString APPLE_APPLICATION_NAME CFBundleIconFile diff --git a/hw/xquartz/bundle/X11.sh b/hw/xquartz/bundle/X11.sh index 2f953d16c..87c52b362 100755 --- a/hw/xquartz/bundle/X11.sh +++ b/hw/xquartz/bundle/X11.sh @@ -1,3 +1,3 @@ #!/bin/bash --login -"$(dirname $0)"/X11 "${@}" +"$(dirname $0)"/X11.bin "${@}" diff --git a/hw/xquartz/bundle/mk_bundke.sh b/hw/xquartz/bundle/mk_bundke.sh index 5c5733abf..7c8d14898 100755 --- a/hw/xquartz/bundle/mk_bundke.sh +++ b/hw/xquartz/bundle/mk_bundke.sh @@ -21,7 +21,7 @@ install -m 644 Info.plist ${BUNDLE_ROOT}/Contents install -m 644 PkgInfo ${BUNDLE_ROOT}/Contents mkdir -p ${BUNDLE_ROOT}/Contents/MacOS -install -m 755 X11.sh ${BUNDLE_ROOT}/Contents/MacOS +install -m 755 X11.sh ${BUNDLE_ROOT}/Contents/MacOS/X11 if [[ $(id -u) == 0 ]] ; then chown -R root:admin ${BUNDLE_ROOT} diff --git a/hw/xquartz/mach-startup/Makefile.am b/hw/xquartz/mach-startup/Makefile.am index b4e78522a..40060d01b 100644 --- a/hw/xquartz/mach-startup/Makefile.am +++ b/hw/xquartz/mach-startup/Makefile.am @@ -4,16 +4,16 @@ AM_CPPFLAGS = \ -DX11BINDIR=\"$(bindir)\" x11appdir = $(APPLE_APPLICATIONS_DIR)/X11.app/Contents/MacOS -x11app_PROGRAMS = X11 +x11app_PROGRAMS = X11.bin -dist_X11_SOURCES = \ +dist_X11_bin_SOURCES = \ bundle-main.c -nodist_X11_SOURCES = \ +nodist_X11_bin_SOURCES = \ mach_startupServer.c \ mach_startupUser.c -X11_LDADD = \ +X11_bin_LDADD = \ $(top_builddir)/hw/xquartz/libXquartz.la \ $(top_builddir)/hw/xquartz/xpr/libXquartzXpr.la \ $(top_builddir)/dix/dixfonts.lo \ @@ -21,7 +21,7 @@ X11_LDADD = \ $(top_builddir)/hw/xquartz/pbproxy/libxpbproxy.la \ $(DARWIN_LIBS) $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) -lXplugin -X11_LDFLAGS = \ +X11_bin_LDFLAGS = \ -XCClinker -Objc \ -Wl,-u,_miDCInitialize \ -Wl,-framework,Carbon \ @@ -30,17 +30,17 @@ X11_LDFLAGS = \ -Wl,-framework,IOKit if GLX -X11_LDADD += \ +X11_bin_LDADD += \ $(top_builddir)/hw/xquartz/GL/libCGLCore.la \ $(top_builddir)/glx/libglx.la -X11_LDFLAGS += \ +X11_bin_LDFLAGS += \ -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL \ -Wl,-framework,OpenGL endif if RECORD -X11_LDADD += \ +X11_bin_LDADD += \ $(top_builddir)/record/librecord.la endif