forked from serverlesspub/rsvg-convert-aws-lambda-binary
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile-static.sh
More file actions
executable file
·45 lines (36 loc) · 1.6 KB
/
compile-static.sh
File metadata and controls
executable file
·45 lines (36 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
sudo yum install shared-mime-info cairo cairo-devel cairo-gobject-devel gobject-introspection gobject-introspection-devel giflib-devel libjpeg-turbo-devel poppler-glib-devel pango-devel harfbuzz-devel -y
export PKG_CONFIG_PATH=/home/ec2-user/build/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig
rm -rf build *.pdf
mkdir build
curl -OL http://ftp.gnome.org/pub/gnome/sources/glib/2.52/glib-2.52.3.tar.xz
tar xf glib-2.52.3.tar.xz
cd glib-2.52.3
./configure --prefix=/home/ec2-user/build
make && make install
cd ..
curl -OL http://ftp.gnome.org/pub/GNOME/sources/libcroco/0.6/libcroco-0.6.12.tar.xz
tar xf libcroco-0.6.12.tar.xz
cd libcroco-0.6.12
./configure --prefix=/home/ec2-user/build --disable-shared --enable-static
make && make install
cd ..
curl -OL http://ftp.gnome.org/pub/GNOME/sources/pango/1.40/pango-1.40.10.tar.xz
tar xf pango-1.40.10.tar.xz
cd pango-1.40.10
./configure --prefix=/home/ec2-user/build --with-included-modules --disable-shared --enable-static
make && make install
cd ..
curl -OL http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.36/gdk-pixbuf-2.36.8.tar.xz
tar xf gdk-pixbuf-2.36.8.tar.xz
cd gdk-pixbuf-2.36.8
./configure --prefix=/home/ec2-user/build --without-gdiplus --disable-modules --with-included-loaders=yes --disable-shared --enable-static
make && make install
cd ..
curl -OL http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.40/librsvg-2.40.18.tar.xz
tar xf librsvg-2.40.18.tar.xz
cd librsvg-2.40.18
./configure --prefix=/home/ec2-user/build --disable-shared --enable-static
make && make install
cd ..
#./build/bin/rsvg-convert map.svg -o map-x.pdf -f pdf
#ls -la *.pdf