Difference between revisions of "Creating a dmg"

From Scribus Wiki
Jump to: navigation, search
m (Unorphaned page)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Installation]][[Category:EN]] [[Category:MacOS]]
 
[[Category:Installation]][[Category:EN]] [[Category:MacOS]]
 
 
==Creating a .dmg for Tiger==
 
==Creating a .dmg for Tiger==
 +
# Do a clean install of Mac OS X 10.4 (Tiger)
 +
# Install Xcode (requires [https://developer.apple.com/xcode/ registering with Apple])
 +
# Install Fink (a [http://www.finkproject.org/download/index.php?phpLang=en Mac package manager]) and update it
 +
# Install Scribus and its dependencies through Fink
 +
# Install Subversion (through fink)
 +
# Create a Scribus directory with sub-directories and drill down in to it
 +
#: '''mkdir -p ~/scribus/builddir ~/scribus/Version14x ; cd scribus'''
 +
# Checkout from svn
 +
#: '''svn co svn://scribus.net/branches/Version14x)'''
 +
# Make a cmake build with the following content
 +
#: Note: change the '''<username>''' to your user name, and be sure to set the right value for '''-DCMAKE_OSX_ARCHITECTURES="i386"'''
 +
# Run your script and wait for it to complete and build and install Scribus
  
 
+
===OS X 10.4 CMake Build Script===
* Do a clean install of Mac OS X 10.4 (Tiger)
+
<syntaxhighlight lang="bash">
* Install xcode
+
# Use Fink's freetype219, qt4-mac, fontconfig2,
* Install Fink and update it
+
# but Apple's Python framework
* Install Scribus and its dependencies through Fink
+
export PATH=/sw/lib/freetype219/bin:$PATH
* Install Subversion (through fink)
+
unset QMAKESPEC
* mkdir -p ~/scribus/builddir ~/scribus/Version135 ; cd scribus
+
export QTDIR=/sw/lib/qt4-mac
* Checkout from svn (svn co svn://scribus.net/branches/Version135)
+
cd builddir
* Make a cmake build with the following content:
+
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
 
 
# Use Fink's freetype219, qt4-mac, fontconfig2,
 
# but Apple's Python framework
 
export PATH=/sw/lib/freetype219/bin:$PATH
 
unset QMAKESPEC
 
export QTDIR=/sw/lib/qt4-mac
 
cd builddir
 
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
 
 
       -DFREETYPE_DIR:PATH=/sw/lib/freetype219 \
 
       -DFREETYPE_DIR:PATH=/sw/lib/freetype219 \
 
       -DFREETYPE_INCLUDE_DIR_ft2build:PATH=/sw/lib/freetype219/include \
 
       -DFREETYPE_INCLUDE_DIR_ft2build:PATH=/sw/lib/freetype219/include \
Line 32: Line 35:
 
       -DCMAKE_OSX_ARCHITECTURES="i386" \
 
       -DCMAKE_OSX_ARCHITECTURES="i386" \
 
       -DWANT_NOHEADERINSTALL=1 \
 
       -DWANT_NOHEADERINSTALL=1 \
       -DCMAKE_INSTALL_PREFIX:PATH=/Users/<username>/Applications/Scribus.app/Contents/ ../Version135/Scribus/
+
       -DCMAKE_INSTALL_PREFIX:PATH=/Users/<username>/Applications/Scribus.app/Contents/ ../Version14x/Scribus/
make install
+
make install
 +
</syntaxhighlight>
  
* Run your script and wait for it to complete and build and install Scribus
+
==Related==
 +
* [[Official:MacOS_Readme]]
 +
* [[Official:MacOS_Hints_and_Tips]]
 +
* [[MacOSX_version_of_Scribus]]

Latest revision as of 04:42, 11 December 2013

Creating a .dmg for Tiger

  1. Do a clean install of Mac OS X 10.4 (Tiger)
  2. Install Xcode (requires registering with Apple)
  3. Install Fink (a Mac package manager) and update it
  4. Install Scribus and its dependencies through Fink
  5. Install Subversion (through fink)
  6. Create a Scribus directory with sub-directories and drill down in to it
    mkdir -p ~/scribus/builddir ~/scribus/Version14x ; cd scribus
  7. Checkout from svn
    svn co svn://scribus.net/branches/Version14x)
  8. Make a cmake build with the following content
    Note: change the <username> to your user name, and be sure to set the right value for -DCMAKE_OSX_ARCHITECTURES="i386"
  9. Run your script and wait for it to complete and build and install Scribus

OS X 10.4 CMake Build Script

# Use Fink's freetype219, qt4-mac, fontconfig2,
# but Apple's Python framework
export PATH=/sw/lib/freetype219/bin:$PATH
unset QMAKESPEC
export QTDIR=/sw/lib/qt4-mac
cd builddir
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
       -DFREETYPE_DIR:PATH=/sw/lib/freetype219 \
       -DFREETYPE_INCLUDE_DIR_ft2build:PATH=/sw/lib/freetype219/include \
       -DFREETYPE_INCLUDE_DIR_freetype2:PATH=/sw/lib/freetype219/include/freetype2 \
       -DFREETYPE_LIBRARY:FILEPATH=/sw/lib/freetype219/lib/libfreetype.dylib \
       -DFONTCONFIG_INCLUDE_DIR:PATH=/sw/lib/fontconfig2/include \
       -DFONTCONFIG_LIBRARY:FILEPATH=/sw/lib/fontconfig2/lib/libfontconfig.dylib \
       -DPYTHON_INCLUDE_PATH:PATH=/System/Library/Frameworks/Python.framework/Headers \
       -DPYTHON_LIBRARY:FILEPATH="-framework Python" \
       -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="" \
       -DCMAKE_OSX_SYSROOT:PATH="/" \
       -DCMAKE_OSX_ARCHITECTURES="i386" \
       -DWANT_NOHEADERINSTALL=1 \
       -DCMAKE_INSTALL_PREFIX:PATH=/Users/<username>/Applications/Scribus.app/Contents/ ../Version14x/Scribus/
make install

Related