mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
improve mac bundle generation
This commit is contained in:
parent
0bbefc1e7b
commit
08a7bf3be5
3 changed files with 19 additions and 21 deletions
|
|
@ -204,13 +204,9 @@ MACAPPNAME=Linphone.app
|
|||
MACAPPZIP=$(PACKAGE)-$(VERSION).app.zip
|
||||
BUNDLEPREFIX=./
|
||||
BUNDLEDIR=$(BUNDLEPREFIX)$(MACAPPNAME)
|
||||
LIBICONV_HACK=$(top_builddir)/build/macos/libiconv.2.dylib
|
||||
|
||||
$(LIBICONV_HACK):
|
||||
cd $(top_builddir)/build/macos && \
|
||||
wget http://download-mirror.savannah.gnu.org/releases/linphone/misc/libiconv.2.dylib
|
||||
|
||||
bundle: $(LIBICONV_HACK)
|
||||
bundle:
|
||||
rm -rf $(INSTALLDIR)
|
||||
$(MKDIR_P) $(INSTALLDIR)
|
||||
make install DESTDIR=$(INSTALLDIR)
|
||||
|
|
@ -223,7 +219,6 @@ bundle: $(LIBICONV_HACK)
|
|||
> $(BUNDLEDIR)/Contents/Resources/etc/pango/pangorc
|
||||
cp -f $(BUNDLEDIR)/Contents/Resources/etc/pango/pango.modules $(BUNDLEDIR)/Contents/Resources/etc/pango/pango.modules.orig
|
||||
sed -e 's:@executable_path.*/::g' $(BUNDLEDIR)/Contents/Resources/etc/pango/pango.modules.orig > $(BUNDLEDIR)/Contents/Resources/etc/pango/pango.modules
|
||||
cp -f $(LIBICONV_HACK) $(BUNDLEDIR)/Contents/Resources/lib/.
|
||||
cd $(BUNDLEDIR)/.. && rm -f $(MACAPPZIP) && zip -r $(MACAPPZIP) $(MACAPPNAME) && cd -
|
||||
|
||||
###
|
||||
|
|
|
|||
32
README.macos
32
README.macos
|
|
@ -14,33 +14,31 @@ You need:
|
|||
+universal
|
||||
|
||||
- Install build time dependencies
|
||||
$ sudo port install automake autoconf libtool intltool
|
||||
$ sudo port install automake autoconf libtool intltool wget cunit
|
||||
|
||||
- Install some linphone dependencies with macports
|
||||
$ sudo port install speex
|
||||
$ sudo port install antlr3 speex libvpx readline sqlite3 libsoup openldap
|
||||
$ sudo port install ffmpeg-devel -gpl2
|
||||
$ sudo port install libvpx
|
||||
$ sudo port install readline
|
||||
|
||||
|
||||
- Install gtk. It is recommended to use the quartz backend for better integration.
|
||||
$ sudo port install gtk2 +quartz +no_x11
|
||||
$ sudo port install gtk-osx-application -python27
|
||||
$ sudo port install hicolor-icon-theme
|
||||
|
||||
- Install additional librairies required for wizard (linphone.org account creation assistant)
|
||||
$ sudo port install libsoup
|
||||
|
||||
- Install sqlite3 for message storage
|
||||
$ sudo port install sqlite3
|
||||
|
||||
The softwares below need to be compiled manually. To ensure compatibility with multiple mac os version it is recommended to do:
|
||||
The next pieces need to be compiled manually. To ensure compatibility with multiple mac os version it is recommended to do:
|
||||
$ export MACOSX_DEPLOYMENT_TARGET=10.6
|
||||
$ export CFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.5"
|
||||
$ export OBJCFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.5"
|
||||
$ export CXXFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.5"
|
||||
$ export LDFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.5"
|
||||
|
||||
- Install libantlr3c (library used by belle-sip for parsing)
|
||||
$ wget http://www.antlr3.org/download/C/libantlr3c-3.4.tar.gz
|
||||
$ tar -xvzf libantlr3c-3.4.tar.gz
|
||||
$ cd libantlr3c-3.4
|
||||
$ ./configure --disable-static --prefix=/opt/local --enable-64bit && make
|
||||
$ sudo make install
|
||||
|
||||
- Install polarssl (encryption library used by belle-sip)
|
||||
$ git clone git://git.linphone.org/polarssl.git -b linphone
|
||||
$ cd polarssl
|
||||
|
|
@ -54,8 +52,6 @@ The softwares below need to be compiled manually. To ensure compatibility with m
|
|||
$ sudo make install
|
||||
|
||||
- Install srtp (optional) for call encryption
|
||||
$ sudo port install srtp
|
||||
If that fails, get from source:
|
||||
$ git clone git://git.linphone.org/srtp.git
|
||||
$ cd srtp && autoconf && ./configure --prefix=/opt/local && make libsrtp.a
|
||||
$ sudo make install
|
||||
|
|
@ -104,6 +100,12 @@ Use git:
|
|||
#make this dummy charset.alias file for the bundler to be happy:
|
||||
$ sudo touch touch /opt/local/lib/charset.alias
|
||||
|
||||
The bundler file in build/macos/linphone.bundle expects some plugins to be installed in /opt/local/lib/mediastreamer/plugins .
|
||||
If you don't need plugins, remove or comment out this line from the bundler file:
|
||||
<binary >
|
||||
${prefix:ms2plugins}/lib/mediastreamer/plugins/*.*.so
|
||||
</binary>
|
||||
|
||||
Then run, inside linphone source tree:
|
||||
Run configure as told before but with "--enable-relativeprefix" appended.
|
||||
$ make
|
||||
|
|
@ -116,7 +118,7 @@ For a better appearance, you can install the gtk-quartz-engine (a gtk theme) tha
|
|||
$ git clone https://github.com/jralls/gtk-quartz-engine.git
|
||||
$ cd gtk-quartz-engine
|
||||
$ autoreconf -i
|
||||
$ ./configure --prefix=/opt/local && make
|
||||
$ ./configure --prefix=/opt/local CFLAGS="-Wno-error" && make
|
||||
$ sudo make install
|
||||
|
||||
Generate a new bundle to have it included.
|
||||
|
|
|
|||
|
|
@ -2,4 +2,5 @@ export EXTRA_ARGS="--workdir $bundle_res"
|
|||
export GIO_EXTRA_MODULES="$bundle_lib/gio/modules"
|
||||
export PANGO_LIBDIR="$bundle_lib"
|
||||
export PANGO_SYSCONFDIR="$bundle_etc"
|
||||
export DYLD_LIBRARY_PATH=
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue