Commit 6550fc65 authored by François Grisez's avatar François Grisez
Browse files

Add generation of a Linphone installer for MacOSX

parent a4132be5
......@@ -152,7 +152,7 @@ if(WIN32)
elseif(APPLE)
find_program(MAC_BUNDLER gtk-mac-bundler)
configure_file(mac-bundler/Info-linphone.plist.in mac-bundler/Info-linphone.plist @ONLY)
configure_file(mac-bundler/call-bundler.cmake.in mac-bundler/call-bundler.cmake @ONLY)
configure_file(mac-bundler/call-bundler.cmake.in mac-bundler/call-bundler.cmake)
configure_file(mac-bundler/environment.sh mac-bundler/environment.sh COPYONLY)
configure_file(mac-bundler/gtkrc mac-bundler/gtkrc COPYONLY)
configure_file(mac-bundler/linphone.bundle mac-bundler/linphone.bundle COPYONLY)
......
......@@ -21,10 +21,17 @@
############################################################################
set(ENV{DEFAULT_PREFIX} /opt/local)
set(ENV{LINPHONE_PREFIX} @LINPHONE_OUTPUT_DIR@)
set(ENV{BUNDLE_DESTINATION} @CMAKE_INSTALL_PREFIX@)
set(ENV{LINPHONE_PREFIX} ${LINPHONE_OUTPUT_DIR})
set(ENV{BUNDLE_DESTINATION} ${CMAKE_INSTALL_PREFIX})
execute_process(
COMMAND @MAC_BUNDLER@ linphone.bundle
WORKING_DIRECTORY @CMAKE_BINARY_DIR@/mac-bundler
COMMAND ${MAC_BUNDLER} linphone.bundle
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/mac-bundler
)
execute_process(
COMMAND pkgbuild
--install-location /Applications
--scripts ${CMAKE_SOURCE_DIR}/mac-bundler/pkg-scripts
--component ${CMAKE_INSTALL_PREFIX}/Linphone.app
./linphone-${LINPHONE_GIT_REVISION}-unsigned.pkg
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
#!/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