summaryrefslogtreecommitdiffstats
path: root/extra/inkscape/Pkgfile
blob: e8aa7a62f73d70d072bf06f1f9669f82c1d84518 (plain)
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
# Description: logiciel libre d'édition de graphismes vectoriels utilisant le format de fichiers SVG
# URL: http://inkscape.org
# Maintainer: NuTyX core team
# Packager: skingrapher at legtux dot org
# Depends on: pangomm, cairomm, gtkmm, boost, boehm-gc, imagemagick, gsl, gnome-vfs, libwpg, poppler-glib, librsvg, gtkspell, desktop-file-utils, popt, pyxml, libxslt

name=inkscape
version=0.47
release=2
source=(http://downloads.sourceforge.net/$name/files/$name-$version.tar.bz2
        inkscape-0.47-gcc45.patch
	http://launchpadlibrarian.net/36057611/inkscape-poppler-0.12.2.patch )

build() {
	sed -i "s|(Gf\x\*)this| NULL|g" inkscape-poppler-0.12.2.patch
	cd $name-*
        CFLAGS="${CFLAGS} -I/usr/include/ImageMagick" \
	CXXFLAGS="${CXXFLAGS} -I/usr/include/ImageMagick" \

	patch -Np1 -i ../inkscape-poppler-0.12.2.patch
  	patch -Np1 -i ../inkscape-0.47-gcc45.patch

	./configure --prefix=/usr \
	--enable-lcms \
	--with-xft \
	--with-python \
	--with-perl \
	--with-gnome-vfs
        
	make
        make DESTDIR=$PKG install
}