summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-09-06 22:03:32 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-09-06 22:03:32 +0000
commit5065f403a1f45e782a37a0b99095c18d01c0127b (patch)
tree55f8d3a1dba9a6c24809ae88c3a65efc359edf0f
parentupdate to trunk (r13546) (diff)
downloadinkscape-5065f403a1f45e782a37a0b99095c18d01c0127b.tar.gz
inkscape-5065f403a1f45e782a37a0b99095c18d01c0127b.zip
add meta port inkscape-packaging, add README.txt with quick instructions (needs review and testing)
(bzr r13506.1.66)
-rw-r--r--packaging/macosx/README.txt27
-rw-r--r--packaging/macosx/ports/devel/inkscape-packaging/Portfile106
2 files changed, 133 insertions, 0 deletions
diff --git a/packaging/macosx/README.txt b/packaging/macosx/README.txt
new file mode 100644
index 000000000..1d9ed9f53
--- /dev/null
+++ b/packaging/macosx/README.txt
@@ -0,0 +1,27 @@
+Quick instructions:
+===================
+
+1) install MacPorts from source into $MP_PREFIX (e.g. "/opt/local-x11")
+ <https://www.macports.org/install.php>
+
+2) add MacPorts to your PATH environement variable, for example:
+
+$ export PATH="$MP_PREFIX/bin:$MP_PREFIX/sbin:$PATH"
+
+3) add 'ports/' subdirectory as local portfile repository:
+
+$ echo 'file://'"$(pwd)/ports" >> "$MP_PREFIX/etc/macports/sources.conf"
+
+4) index the new local portfile repository:
+
+$ (cd ports && portindex)
+
+5) install required dependencies:
+
+$ sudo port install inkscape-packaging
+
+6) compile inkscape, create app bundle and DMG:
+
+$ LIBPREFIX="$MP_PREFIX" ./osx-build.sh a c b -j 5 i p -s d
+
+7) upload the DMG.
diff --git a/packaging/macosx/ports/devel/inkscape-packaging/Portfile b/packaging/macosx/ports/devel/inkscape-packaging/Portfile
new file mode 100644
index 000000000..53d6ebae1
--- /dev/null
+++ b/packaging/macosx/ports/devel/inkscape-packaging/Portfile
@@ -0,0 +1,106 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: $
+
+PortSystem 1.0
+
+name inkscape-packaging
+version 0.91
+
+categories devel graphics
+platforms darwin
+license GPL-2
+supported_archs noarch
+
+maintainers users.sf.net:suv-sf
+
+description Dependencies for Inkscape.app
+long_description ${description}
+
+homepage http://inkscape.org
+
+# this is a metaport - no fetch, configure and build phases
+master_sites
+distfiles
+use_configure no
+build {}
+destroot {
+ # Create a dummy file so the port can be successfully activated
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ set docfile [open ${destroot}${prefix}/share/doc/${name}/README.txt "w"]
+ puts $docfile "Inkscape packaging ${version} (meta port for all dependencies)\n"
+ close $docfile
+}
+
+# build dependencies
+depends_build port:bzr \
+ port:autoconf \
+ port:automake \
+ port:pkgconfig \
+ port:libtool \
+ port:intltool \
+ port:perl5
+
+# core dependencies
+depends_build-append port:popt \
+ port:boehmgc \
+ port:gsl \
+ port:lcms2 \
+ port:gtkmm \
+ port:boost \
+ port:libpng \
+ port:ImageMagick \
+ port:poppler
+
+# ports for python extensions
+depends_build-append port:py27-lxml \
+ port:py27-numpy \
+ port:py27-Pillow \
+ port:py27-uniconvertor
+
+if {${os.major} <= 10} {
+ # ports for python extensions on Snow Leopard and Leopard
+ depends_build-append port:py26-lxml \
+ port:py26-numpy \
+ port:py26-Pillow \
+ port:py26-uniconvertor
+}
+if {${os.major} == 9} {
+ # ports for python extensions build deps on Leopard
+ depends_build-append port:gawk \
+ port:py25-lxml \
+ port:py25-numpy \
+ port:py25-Pillow \
+ port:py25-uniconvertor
+}
+if {${os.major} == 9} {
+ # we don't support Tiger anymore
+ return -code error "Mac OS X <= 10.4 not supported.""
+}
+
+# optional features
+variant libwpd conflicts librevenge description {use libpwd for WPG, CDR, VSD} {
+depends_build-append port:libcdr \
+ port:libvisio \
+ port:libwpg
+}
+
+variant librevenge conflicts libwpd description {use librevenge for WPG, CDR, VSD} {
+depends_build-append port:libcdr-0.1 \
+ port:libvisio-0.1 \
+ port:libwpg-0.3
+}
+
+# variants
+universal_variant no
+
+variant x11 conflicts quartz {}
+
+variant quartz conflicts x11 {}
+
+default_variants +no_startupitem \
+ +no_web -atlas -ffmpeg -video \
+ +x11 -quartz -no_x11 \
+ +rsvg +Pillow -tkinter
+
+# livecheck
+livecheck.type none