Commit 9e915bc6 authored by François Grisez's avatar François Grisez

Add a post-install script to the MacOSX installer to download libopenh264

parent bb1046fb
......@@ -242,7 +242,7 @@ signed-bundle: $(MACAPPNAME)
cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd -
pkg: $(MACAPPNAME)
pkgbuild --install-location /Applications --component $(MACAPPNAME) $(MACAPPPKG)
pkgbuild --install-location /Applications --scripts ${srcdir}/build/macos/pkg-scripts --component $(MACAPPNAME) $(MACAPPPKG)
###
......
EXTRA_DIST=linphone.bundle environment.sh Info-linphone.plist.in
EXTRA_DIST=linphone.bundle environment.sh Info-linphone.plist.in pkg-scripts/*
#!/bin/bash
CURL=/usr/bin/curl
BUNZIP2=/usr/bin/bunzip2
VERSION=1.4.0
BASENAME=libopenh264-${VERSION}-osx64
FILENAME=${BASENAME}.dylib.bz2
TMPDIR=/tmp/linphone_installer
mkdir ${TMPDIR}
cd ${TMPDIR}
${CURL} http://ciscobinary.openh264.org/${FILENAME} > ${FILENAME}
${BUNZIP2} ${FILENAME}
cp ${BASENAME}.dylib /Applications/Linphone.app/Contents/Resources/lib/libopenh264.0.dylib
rm -r ${TMPDIR}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment