Don't hardcode X11.app's path in the launchd plist.
Only install the launchd plist if we --enable-launchd.
(cherry picked from commit 6b74c535dc
)
31 lines
791 B
Makefile
31 lines
791 B
Makefile
bin_SCRIPTS = x11app
|
|
|
|
.PHONY: x11app
|
|
|
|
x11app:
|
|
xcodebuild CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ARCHS="$(X11APP_ARCHS)"
|
|
|
|
install-data-hook:
|
|
xcodebuild install DSTROOT="/$(DESTDIR)" INSTALL_PATH="$(APPLE_APPLICATIONS_DIR)" DEPLOYMENT_LOCATION=YES SKIP_INSTALL=NO ARCHS="$(X11APP_ARCHS)"
|
|
if LAUNCHD
|
|
$(MKDIR_P) "$(DESTDIR)/System/Library/LaunchAgents/"
|
|
$(INSTALL) org.x.X11.plist "$(DESTDIR)/System/Library/LaunchAgents/"
|
|
endif
|
|
|
|
clean-local:
|
|
rm -rf build
|
|
|
|
EXTRA_DIST = \
|
|
org.x.X11.plist \
|
|
Info.plist \
|
|
X11.icns \
|
|
bundle-main.c \
|
|
launcher-main.c \
|
|
server-main.c \
|
|
English.lproj/InfoPlist.strings \
|
|
English.lproj/Localizable.strings \
|
|
English.lproj/main.nib/classes.nib \
|
|
English.lproj/main.nib/info.nib \
|
|
English.lproj/main.nib/keyedobjects.nib \
|
|
X11.xcodeproj/project.pbxproj
|