- Inkscape 0.92
- Gtk 2
- App bundle
- Inkscape.dmg
- Xcode
- Intell Mac
- Command Line Tools
- MacPorts
Need Xcode's license agreement.
https://www.dropbox.com/sh/a0gjwf0u0ymrkl5/AACTDMZ68Gv_Ew6p2D1bVDkna?dl=0
Unpack sourc archive and go to source directory.
$ tar zxf inkscape-0.92.0.tar.bz2
$ cd inkscape-0.92.0
Copy Info.plist.in
and modify it. This file use later (packaging step).
$ cp Info.plist.in Info.plist
$ vi Info.plist
Replace @VERSION@
to 0.92
(3 times).
-> @VERSION@ to 0.92
Apply patch to CMakeLists.txt
. The patch file is available from above dropbox's link.
$ patch -p0 < patches/CMakeLists.txt.patch
Apply the patch. The patch file is available from above dropbox's link.
$ cd packaging/macosx/
$ patch -p0 < patches/fix_lp476678.patch
$ cp patches/osx-app.sh osx-dmg.sh
Install utility packages.
$ sudo port install libiconv wget cmake
Confirm requirement packages.
$ port deps inkscape
Install packages with +quartz -x11
variant.
$ sudo port install pkgconfig autoconf automake libtool intltool perl5.24 +quartz -x11
$ sudo port install cairo pango +quartz -x11
$ sudo port install gdk-pixbuf2 -x11 +quartz
If you got some error about dependency, try this.
$ sudo port clean XXX
XXX is failed package name.
$ sudo port install desktop-file-utils popt boehmgc gsl gtkmm dbus-glib lcms2 poppler boost ImageMagick libcdr-0.1 libexif libvisio-0.1 libwpg-0.3 aspell gtkspell2 potrace py27-lxml py27-numpy +quartz -x11
/*
Another method (shortcut way):
$ sudo port install inkscape +xquartz
$ sudo port uninstall inkscape
*/
[Option]
If you want GNOME VFS support, install gnome-vfsmm
package. It is NOT mandatory.
sudo port install gnome-vfsmm
Create buid directory and go to that directory.
$ mkdir build && cd build
$ bash ../download-gtest.sh
CXXFLAGS="-std=c++11" CPPFLAGS="-I/opt/local/include" LDFLAGS="-L /opt/local/lib " cmake -D WITH_OPENMP=OFF -D ENABLE_OSX_APP_LOCATIONS=ON -D ICONV_INCLUDE_DIR=/opt/local/include -D ICONV_LIBRARIES=/opt/local/lib/libiconv.dylib -DCMAKE_INSTALL_PREFIX=/opt/local ../
CXXFLAGS="-std=c++98 -stdlib=libstdc++" CPPFLAGS="-I/opt/local/include" LDFLAGS="-L /opt/local/lib " cmake -D WITH_OPENMP=OFF -D ENABLE_OSX_APP_LOCATIONS=ON -D ICONV_INCLUDE_DIR=/opt/local/include -D ICONV_LIBRARIES=/opt/local/lib/libiconv.dylib -DCMAKE_INSTALL_PREFIX=/opt/local ..
-stdlib=libstdc++
option may not be mandatory.
On Mountain Lion (OSX 10.8) , MacPorts use -stdlib=libstdc++
(compiler default).
So, to use MacPorts Libraries, we set same setting for -stdlib
option (if specfied this option).
if compiling on Marverics ( OSX 10.9 ) or later, set this parameter for libc++
.
Let's compile.
if you get to try development version, probably need to do make inkscape_version
before.
$ make -j2
// if you have many core cpu (such like 4-core, and more), you can use -j4
or -j8
option.
Temporary, install it to /opt/local/
$ sudo make install
Move to working directory.
$ cd ../packaging/macos
Installing required packages for osx-app.sh
.
$ sudo port install gtk-engines2 gtk2-murrine +quartz -x11
$ sudo port install gtk3 gnome-themes-standard +quartz
It may be able to download gnome theme file from git repos insstead of install gnome-themes-standard package.
There are some question that why above packages are needed for packaging netherless they not required when compiling it.
$ sudo port install icon-naming-utils
$ ./osx-app.sh -s -py /usr/lib/python2.7/ -l "/opt/local" -b /opt/local/bin/inkscape -p ../../Info.plist
Inkscape.appare created in current folder. Finally, let's execute
osx-dmg.sh`.
$ ./osx-dmg.sh -p Inkscape.app
There are created Inkscape.dmg
in current folder.
Delete temporarily installed binaries.
$ cd -
$ sudo make uninstall
Finished.
Sorry for my late reply.
I'll try to create new package for 0.9.2.1preX release at this weekend.
@oskay ,
As you pointed out, this package seems to need the "lxml" package (MacPorts's
py27-lxml
package ) .Other developers are also working on this work, so I think that it is preferable to discuss with developer ML (You have already joined this?).
c.f.
@julianrendell ,
I did confirm previous version's build info. The Previous package contained UniConvertor & sk1libs.
But there are no binary package of UniConvertor & sk1libs for macOS. It may take a while.
ref. Inkscape 0.91-1 (OS X) Build info | Inkscape
Thanks.