From b6b91b8e177958d870caa116e10cec537892eba8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 26 Nov 2017 10:58:56 +0000 Subject: [PATCH] OS X makefile: stop depending on JHBUILD_PREFIX. People who use a packaging system other than jhbuild still ought to be able to run the OS X GTK3 build, so now the gtk-mac-bundler command finds out the locations of things by a more portable method. (I've had this change lurking around uncommitted in a working tree for a while, and only just found it in the course of doing other OS X- related work. Oops.) --- Recipe | 4 ++-- unix/pterm.bundle | 6 +++++- unix/putty.bundle | 36 +++++++++++++++++++++++++++++++++++- 3 files changed, 42 insertions(+), 4 deletions(-) diff --git a/Recipe b/Recipe index 5715938b..33d0f2f7 100644 --- a/Recipe +++ b/Recipe @@ -208,9 +208,9 @@ endif if HAVE_QUARTZ noinst_SCRIPTS = unix/PuTTY.app unix/Pterm.app unix/PuTTY.app: unix/putty.bundle puttyapp osxlaunch - rm -rf $@ && gtk-mac-bundler $< + rm -rf $@ && PUTTY_GTK_PREFIX_FROM_MAKEFILE=$$(pkg-config --variable=prefix gtk+-3.0) gtk-mac-bundler $< unix/Pterm.app: unix/pterm.bundle ptermapp osxlaunch - rm -rf $@ && gtk-mac-bundler $< + rm -rf $@ && PUTTY_GTK_PREFIX_FROM_MAKEFILE=$$(pkg-config --variable=prefix gtk+-3.0) gtk-mac-bundler $< endif !end diff --git a/unix/pterm.bundle b/unix/pterm.bundle index 377fee0d..0d701216 100644 --- a/unix/pterm.bundle +++ b/unix/pterm.bundle @@ -2,7 +2,11 @@ - ${env:JHBUILD_PREFIX} + + ${env:PUTTY_GTK_PREFIX_FROM_MAKEFILE} + gtk+-3.0 + ${env:PUTTY_GTK_PREFIX_FROM_MAKEFILE} + gtk+-3.0