# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1222875175 -7200
# Node ID 9501f99569254f316d458bcfd960507fd135e7c7
# Parent eea6d70b27274ed080ed63315430e0955eb2f711
add support to package a qutecom mac version
diff -r eea6d70b2727 -r 9501f9956925 scripts/update_links.py
--- a/scripts/update_links.py Wed Oct 01 17:02:37 2008 +0200
+++ b/scripts/update_links.py Wed Oct 01 17:32:55 2008 +0200
@@ -49,17 +49,15 @@
libraries = binary_utilities.get_linked_libraries_of_file(binary)
for lib in libraries:
- if ('/usr' not in lib) \
- and ('/System' not in lib):
- libName = binary_utilities.get_library_basename(lib)
- if availableLibs.has_key(libName):
- newLib = availableLibs[libName]
- if replacePath != None:
- newLib = newLib.replace(replacePath, "@executable_path/..")
- command = "install_name_tool -change %(lib)s %(newlib)s %(bin)s" \
- % { "lib" : lib, "newlib" : newLib, "bin" : binary }
- print command
- os.popen(command)
+ libName = binary_utilities.get_library_basename(lib)
+ if availableLibs.has_key(libName):
+ newLib = availableLibs[libName]
+ if replacePath != None:
+ newLib =
newLib.replace(replacePath, "@executable_path/..")
+ command = "install_name_tool -change %
(lib)s %(newlib)s %(bin)s" \
+ % { "lib" : lib, "newlib" : newLib,
"bin" : binary }
+ print command
+ os.popen(command)
def update_links_of_path(path, executable = None):
'''
diff -r eea6d70b2727 -r 9501f9956925 wengophone/src/presentation/qt/
install/CMakeLists-install-macosx.txt
--- a/wengophone/src/presentation/qt/install/CMakeLists-install-
macosx.txt Wed Oct 01 17:02:37 2008 +0200
+++ b/wengophone/src/presentation/qt/install/CMakeLists-install-
macosx.txt Wed Oct 01 17:32:55 2008 +0200
@@ -20,11 +20,11 @@
)
set(FRAMEWORK_INSTALL_DIR
- ${BUILD_DIR}/WengoPhone.app/Contents/Frameworks
+ ${BUILD_DIR}/QuteCom.app/Contents/Frameworks
)
set(DATA_INSTALL_DIR
- ${BUILD_DIR}/WengoPhone.app/Contents/Resources
+ ${BUILD_DIR}/QuteCom.app/Contents/Resources
)
include(OWChangeIdentificationName)
@@ -49,7 +49,7 @@
####
## Create the Info.plist file
-file(WRITE "${BUILD_DIR}/WengoPhone.app/Contents/Info.plist"
+file(WRITE "${BUILD_DIR}/QuteCom.app/Contents/Info.plist"
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd
\">\n"
"<plist version=\"1.0\">\n"
@@ -57,11 +57,11 @@
" <key>CFBundleDevelopmentRegion</key>\n"
" <string>English</string>\n"
" <key>CFBundleExecutable</key>\n"
-" <string>WengoPhone</string>\n"
+" <string>QuteCom</string>\n"
" <key>CFBundleIconFile</key>\n"
" <string>wengophone.icns</string>\n"
" <key>CFBundleIdentifier</key>\n"
-" <string>com.openwengo.WengoPhone</string>\n"
+" <string>com.mbdsys.QuteCom</string>\n"
" <key>CFBundleInfoDictionaryVersion</key>\n"
" <string>6.0</string>\n"
" <key>CFBundlePackageType</key>\n"
@@ -91,7 +91,7 @@
## Copying resources
# WengoPhone icon
ow_copy_file(${SOURCE_DIR}/wengophone/src/presentation/qt/macosx/
template.app/Contents/Resources/wengophone.icns
- ${BUILD_DIR}/WengoPhone.app/Contents/Resources/wengophone.icns
+ ${BUILD_DIR}/QuteCom.app/Contents/Resources/wengophone.icns
)
####
@@ -130,6 +130,32 @@
ow_copy_qt(QtXml ${QT_XML})
ow_copy_qt(QtSvg ${QT_SVG})
+make_directory(${BUILD_DIR}/QuteCom.app/Contents/plugins/)
+make_directory(${BUILD_DIR}/QuteCom.app/Contents/plugins/
imageformats)
+make_directory(${BUILD_DIR}/QuteCom.app/Contents/plugins/codecs)
+
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqgif.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqico.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqjpeg.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqmng.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqsvg.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+ow_copy_file($ENV{QTDIR}/plugins/imageformats/libqtiff.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/imageformats/)
+
+ow_copy_file($ENV{QTDIR}/plugins/codecs/libqkrcodecs.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/codecs/)
+ow_copy_file($ENV{QTDIR}/plugins/codecs/libqcncodecs.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/codecs/)
+ow_copy_file($ENV{QTDIR}/plugins/codecs/libqjpcodecs.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/codecs/)
+ow_copy_file($ENV{QTDIR}/plugins/codecs/libqtwcodecs.dylib $
{BUILD_DIR}/QuteCom.app/Contents/plugins/codecs/)
+
+# libpng12
+ow_copy_file(/usr/local/lib/libpng12.0.dylib
+ ${FRAMEWORK_INSTALL_DIR}/libpng12.0.dylib
+)
+
+# libtiff
+ow_copy_file(/usr/local/lib/libtiff.3.dylib
+ ${FRAMEWORK_INSTALL_DIR}/libtiff.3.dylib
+)
+
# curl
ow_copy_file(${CMAKE_BINARY_DIR}/libs/3rdparty/curl/libcurl.dylib
${FRAMEWORK_INSTALL_DIR}/libowcurl.dylib
@@ -163,7 +189,7 @@
)
## Change install names
-set(WENGO_EXE "${BUILD_DIR}/WengoPhone.app/Contents/MacOS/
WengoPhone")
+set(WENGO_EXE "${BUILD_DIR}QuteCom.app/Contents/MacOS/QuteCom")
set(COPY_PYTHON_SCRIPT
${SOURCE_DIR}/scripts/copy_missing_libraries.py
@@ -176,7 +202,12 @@
# Copy missing dependencies of WengoPhone binary.
execute_process(
COMMAND
- python ${COPY_PYTHON_SCRIPT} ${BUILD_DIR}/WengoPhone.app/Contents/
MacOS/WengoPhone ${FRAMEWORK_INSTALL_DIR}
+ python ${COPY_PYTHON_SCRIPT} ${BUILD_DIR}/QuteCom.app/Contents/
MacOS/QuteCom ${FRAMEWORK_INSTALL_DIR}
+)
+
+execute_process(
+ COMMAND
+ python ${COPY_PYTHON_SCRIPT} ${BUILD_DIR}/QuteCom.app/Contents/
MacOS/owcrashreport ${FRAMEWORK_INSTALL_DIR}
)
# Copy missing dependencies of files in ${FRAMEWORK_INSTALL_DIR}.
@@ -188,18 +219,26 @@
# Update install names
execute_process(
COMMAND
- python ${UPDATE_LINKS_PYTHON_SCRIPT} ${BUILD_DIR}/WengoPhone.app/
Contents/ ${BUILD_DIR}/WengoPhone.app/Contents/MacOS/WengoPhone
+ python ${UPDATE_LINKS_PYTHON_SCRIPT} ${BUILD_DIR}/QuteCom.app/
Contents/ ${BUILD_DIR}/QuteCom.app/Contents/MacOS/QuteCom
+)
+
+execute_process(
+ COMMAND
+ python ${UPDATE_LINKS_PYTHON_SCRIPT} ${BUILD_DIR}/QuteCom.app/
Contents/ ${BUILD_DIR}/QuteCom.app/Contents/MacOS/owcrashreport
)
####
## Update rights on WengoPhone files
-message("Updating rights on WengoPhone.app...")
+message("Updating rights on QuteCom.app...")
execute_process(
- COMMAND "chmod" -R 755 ${BUILD_DIR}/WengoPhone.app
+ COMMAND "chmod" -R 755 ${BUILD_DIR}/QuteCom.app
)
####
## Creates .dmg of WengoPhone
-ow_hdiutil(WengoPhone ${BUILD_DIR}/WengoPhone.app $
{CMAKE_BINARY_DIR}/WengoPhone-revnumber.dmg)
+execute_process(
+ COMMAND "rm" -r ${CMAKE_BINARY_DIR}/QuteCom.dmg
+)
+ow_hdiutil(QuteCom ${BUILD_DIR}/QuteCom.app ${CMAKE_BINARY_DIR}/
QuteCom.dmg)
####
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev