diff --git a/Makefile.am b/Makefile.am index 149c37c7c..036637737 100644 --- a/Makefile.am +++ b/Makefile.am @@ -178,6 +178,7 @@ Portfile-devel: $(top_srcdir)/scripts/Portfile-devel.tmpl dist -e 's/\@LINPHONE_MD5\@/$(GEN_MD5)/' < $< > $@ MACAPPNAME=Linphone.app +MACAPPZIP=$(PACKAGE)-$(VERSION).app.zip BUNDLEDIR=$(shell echo "$$HOME/Desktop/$(MACAPPNAME)") LIBICONV_HACK=$(top_builddir)/build/macos/libiconv.2.dylib @@ -192,10 +193,10 @@ 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) + cd $(BUNDLEDIR)/.. && rm -f $(MACAPPZIP) && zip -r $(MACAPPZIP) $(MACAPPNAME) diff --git a/README.macos b/README.macos index e5a8a50f1..aeefa08d6 100644 --- a/README.macos +++ b/README.macos @@ -11,7 +11,7 @@ You need: $ port install automake autoconf libtool intltool - Install some linphone dependencies with macports - $ port install speex-dev + $ port install speex $ port install osip2 $ port install eXosip2 $ port install ffmpeg-devel @@ -33,7 +33,7 @@ When this version will be integrated into macports, only this will be necessary: $ port install sdl-devel - Install gtk. It is recommended to use the quartz backend for better integration. - $ port install gtk2 +no_x11 + $ port install gtk2 +quartz +no_x11 $ port install ige-mac-integration $ port install hicolor-icon-theme @@ -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..bf8e9c6f0 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