From 6306a86bfdaba3df2f34480fa2cf720c3a25d042 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 30 Aug 2011 12:02:12 +0200 Subject: [PATCH 1/4] fix macos bundle problem --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 149c37c7c..8ac4d730c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -192,7 +192,7 @@ bundle: $(LIBICONV_HACK) LINPHONE_INSTALL_PREFIX=$(INSTALLDIR_WITH_PREFIX) \ LIBLINPHONE_INSTALL_PREFIX=$(INSTALLDIR_WITH_PREFIX) \ ige-mac-bundler $(PACKAGE_BUNDLE_FILE) - /bin/echo -n "[Pango]\nModuleFiles=./etc/pango/pango.modules" \ + printf "[Pango]\nModuleFiles=./etc/pango/pango.modules\n" \ > $(BUNDLEDIR)/Contents/Resources/etc/pango/pangorc cp -f $(LIBICONV_HACK) $(BUNDLEDIR)/Contents/Resources/lib/. cd $(BUNDLEDIR)/.. && zip -r $(PACKAGE)-$(VERSION).app.zip $(MACAPPNAME) From 367013ab845ea7f121f4d0e51e7c5bba1fe4cd50 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 30 Aug 2011 17:14:20 +0200 Subject: [PATCH 2/4] macos x bundle fixes --- README.macos | 9 ++++++--- build/macos/linphone.bundle | 7 +------ gtk/main.c | 15 ++++++++++++++- mediastreamer2 | 2 +- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/README.macos b/README.macos index e5a8a50f1..15ae9f11c 100644 --- a/README.macos +++ b/README.macos @@ -43,7 +43,7 @@ If you got the source code from git, run ./autogen.sh first. Then or otherwise, do: - $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 && make + $ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 && make Install to /opt/local @@ -52,13 +52,16 @@ Install to /opt/local Done. If you want to generate a portable bundle, then install ige-mac-bundler. -The version in macports doesn't work at all. +The macport package of ige-mac-bundler doesn't work at all. Use git: $ git clone https://github.com/jralls/ige-mac-bundler.git $ cd ige-mac-bundler && make install $ export PATH=$PATH:~/.local/bin Then run, inside linphone source tree: + 1. Run configure as told before but with "--enable-relativeprefix" appended. + + $ make $ make bundle The resulting bundle is located in ~/Desktop, together with a zipped version. @@ -71,6 +74,6 @@ For a better appearance, you can install the gtk-quartz-engine (a gtk theme) tha $ ./configure --prefix=/opt/local && make $ sudo make install -Generate a new bundle to have it packaged. +Generate a new bundle to have it included. diff --git a/build/macos/linphone.bundle b/build/macos/linphone.bundle index 52aa54c61..90b1beef7 100644 --- a/build/macos/linphone.bundle +++ b/build/macos/linphone.bundle @@ -12,11 +12,10 @@ defined by jhbuild, so it you are not using jhbuild you can either define your own or just hardcode the path here. --> - ${env:JHBUILD_PREFIX} + /opt/local ${env:LINPHONE_INSTALL_PREFIX} ${env:LINPHONE_INSTALL_PREFIX} /opt/local - /usr/local