-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Included also: converters for MS-Visio and Corel-Draw.
Showing
1 changed file
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |