Skip to content

Commit

Permalink
inkscape: build version 1.0
Browse files Browse the repository at this point in the history
Included also: converters for MS-Visio and
Corel-Draw.
thomas committed Jun 5, 2020
1 parent 63fe9ec commit 2618582
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions inkscape-1.0-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#! /bin/sh

set -xe

PKG=inkscape
VERSION=1.0
BUILD=0
DATEREV=2020-05-01_4035a4fb49 # The hex part is now called 'revision'

PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi


mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
EOF

source $PREFIX/profile

export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
mkdir -p $PREFIX/build

cd $PREFIX/build

NPROC=$(( $(nproc) * 4 / 5 + 1 ))

# bundle the ms-visio/coreldraw readers, unfortunately they rely on some wordperfect
# related tools (cough, cough). So we need some small packages.

# https://sourceforge.net/projects/libwpd/files/librevenge/librevenge-0.0.4/librevenge-0.0.4.tar.xz
test -d librevenge-0.0.4 || tar -xf /src/mariux/md5repo/2677cf97716c699146f999575ac0147d/librevenge-0.0.4.tar.xz
cd librevenge-0.0.4
./configure --prefix=$PREFIX --disable-tests --without-docs --disable-werror --disable-silent-rules
make -j$NPROC
make install
cd ..

# https://sourceforge.net/projects/libwpd/files/libwpd/libwpd-0.10.3/libwpd-0.10.3.tar.xz
test -d libwpd-0.10.3 || tar -xf /src/mariux/md5repo/d5e44712c4674d499afb8e89d830fcad/libwpd-0.10.3.tar.xz
cd libwpd-0.10.3
./configure --prefix=$PREFIX --disable-tests --without-docs --disable-werror --disable-silent-rules
make -j$NPROC
make install
cd ..

# https://sourceforge.net/projects/libwpg/files/libwpg/libwpg-0.3.3/libwpg-0.3.3.tar.xz
test -d libwpg-0.3.3 || tar -xf /src/mariux/md5repo/c3727b1196506fc77f6f916866884411/libwpg-0.3.3.tar.xz
cd libwpg-0.3.3
./configure --prefix=$PREFIX --disable-tests --without-docs --disable-werror --disable-silent-rules
make -j$NPROC
make install
cd ..

test -e libvisio-0.1.7.tar.xz || wget https://dev-www.libreoffice.org/src/libvisio/libvisio-0.1.7.tar.xz
test -d libvisio-0.1.7 || tar -xf libvisio-0.1.7.tar.xz
cd libvisio-0.1.7
./configure --prefix=$PREFIX --disable-tests --without-docs --disable-werror --disable-silent-rules
make -j$NPROC
make install
cd ..

test -d libcdr || git clone https://anongit.freedesktop.org/git/libreoffice/libcdr.git
cd libcdr
git checkout libcdr-0.1.6 --force
git clean -dffx
./autogen.sh
./configure --prefix=$PREFIX --disable-tests --without-docs --disable-werror --disable-silent-rules
make -j$NPROC
make install
cd ..

test -e inkscape-1.0.tar.xz || wget https://media.inkscape.org/dl/resources/file/inkscape-1.0.tar.xz
test -d inkscape-1.0_$DATEREV || tar -xf inkscape-1.0.tar.xz
cd inkscape-1.0_$DATEREV

# note, by placing 'libinkscape_base.so' in $prefix/lib, and not
# in $prefix/lib/inkscape the rpath logic from CMakeLists.txt works again.
# (but still looks ugly in ldd: libwpg-0.3.so.3 => /pkg/inkscape-1.0-0/bin/./../lib/libwpg-0.3.so.3)
mkdir -p build
cd build # esp. cmake belongs to the "don't build in sourcedir" advocates ;)
cmake \
-DINKSCAPE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
make -j$NPROC
make install


exit

0 comments on commit 2618582

Please sign in to comment.