summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73b341f)
raw | patch | inline | side by side (parent: 73b341f)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 9 Nov 2006 23:14:52 +0000 (23:14 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 9 Nov 2006 23:14:52 +0000 (23:14 +0000) |
build script.
packaging/macosx/native-gtk/build-gtk.sh | patch | blob | history |
index e53bf11d43e4416dcd172dfa40c232601a51ab18..a5bd9a2a6bea475b4b6281f30017901700188964 100755 (executable)
# ./build-gtk build inkscape
#
-version=1.1-inkscape
+
+version=1.2-inkscape
export PREFIX=${PREFIX-/opt/gtk}
export PATH=$PREFIX/bin:$PATH
fi
CORE_MODULES="cairo gnome-common glib pango atk gtk+"
-EXTRA_MODULES="libxml2 libxslt loudmouth libglade gossip gtk-engines gc lcms libsig++ doxygen glibmm cairomm gtkmm popt"
+EXTRA_MODULES="libxml2 libxslt loudmouth libglade gossip gtk-engines"
PYGTK_MODULES=" pycairo pygobject pygtk"
+INKSCAPE_MODULES="$CORE_MODULES libxml2 libxslt gc lcms libsig++ doxygen glibmm cairomm gtkmm popt inkscape"
# Could add those (orbit requires popt though)
MORE_MODULES="libIDL ORBit2 gconf"
echo " Core: $CORE_MODULES"
echo " Extra: $EXTRA_MODULES"
echo " Python: $PYGTK_MODULES"
+ echo " Inkscape: $INKSCAPE_MODULES"
echo
echo "Setup: This script defaults to downloading source to ~/Source/gtk and"
echo "installing in /opt/gtk. Make sure your user has write access to the"
cd $DIRNAME && \
perl Makefile.PL $2 && \
make && \
- (echo "Enter your password to istall $BASENAME"; sudo make install) && \
+ (echo "Enter your password to istall $BASENAME"; make install) && \
touch BUILT
}
echo "You need the cogito to get cairo from git. It's available e.g. in Darwin ports."
exit 1
fi
+ if [ "x`which svn 2>/dev/null`" == "x" ]; then
+ echo "You need the svn client to get inkscape."
+ exit 1
+ fi
mkdir -p $SOURCE 2>/dev/null || (echo "Error: Couldn't create source checkout dir $SOURCE"; exit 1)
mkdir -p $PREFIX/bin 2>/dev/null || (echo "Error: Couldn't create bin dir $PREFIX/bin"; exit 1)
http://heanet.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.10.tar.bz2 \
http://fontconfig.org/release/fontconfig-2.3.2.tar.gz \
http://people.imendio.com/richard/gtk-osx/files/docbook-files-1.tar.gz \
- http://people.imendio.com/richard/gtk-osx/files/gnome-doc-utils-fake-1.tar.gz \
+ http://www.cs.mu.oz.au/~mjwybrow/gtk-osx/gnome-doc-utils-fake-1.tar.gz \
"
#http://people.imendio.com/richard/gtk-osx/files/popt-1.7.tar.gz
tarball_get_and_build $PACKAGE "--with-xml-catalog=$PREFIX/etc/xml/catalog" || exit 1
PACKAGE=ftp://ftp4.freebsd.org/pub/FreeBSD/ports/distfiles/XML-Parser-2.34.tar.gz
- # cpan_get_and_build $PACKAGE "EXPATLIBPATH=$PREFIX/lib EXPATINCPATH=$PREFIX/include" || exit 1
+ cpan_get_and_build $PACKAGE "PREFIX=$PREFIX INSTALLDIRS=perl EXPATLIBPATH=$PREFIX/lib EXPATINCPATH=$PREFIX/include" || exit 1
PACKAGES=" \
http://ftp.gnome.org/pub/GNOME/sources/intltool/0.35/intltool-0.35.0.tar.bz2 \
echo "Building core+extra+python modules."
MODULES="$CORE_MODULES $EXTRA_MODULES $PYGTK_MODULES"
elif [ "x$1" = xinkscape ]; then
- echo "Building core+extra+inkscape modules."
- MODULES="$CORE_MODULES $EXTRA_MODULES inkscape"
+ echo "Building inkscape modules."
+ MODULES="$INKSCAPE_MODULES"
fi
git_get_and_build git://git.cairographics.org/git cairo "--enable-pdf --enable-atsui --enable-quartz --disable-xlib" || exit 1
cvs_get_and_build $GNOMECVSROOT gtk-engines || exit 1
cvs_get_and_build $GNOMECVSROOT loudmouth "--with-ssl=openssl" || exit 1
cvs_get_and_build $GNOMECVSROOT libglade || exit 1
+# gossip needs xml2po from gnome-doc-utils.
cvs_get_and_build $GNOMECVSROOT gossip "--with-backend=cocoa" || exit 1
cvs_get_and_build $CAIROCVSROOT pycairo || exit 1
cvs_get_and_build $GNOMECVSROOT pygobject "--disable-docs" || exit 1