wok view dia/receipt @ rev 18529
stfl: add libstfl.so.0 link
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 27 09:24:12 2015 +0100 (2015-10-27) |
parents | 380ffe05937a |
children | 188a05620c45 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dia"
4 VERSION="0.97.1"
5 CATEGORY="office"
6 SHORT_DESC="GTK+ based diagram creation program."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://projects.gnome.org/dia/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 TAGS="office diagram creator editor visio"
14 DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \
15 libxslt popt xorg-libXdamage librsvg"
16 BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \
17 fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \
18 libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
24 sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c
25 patch -Np1 -i $stuff/dia-overflow-fix.patch
26 ./configure --with-python \
27 --disable-gnome \
28 $CONFIGURE_ARGS &&
29 sed -i 's# data doc tests installer# data tests installer#' Makefile &&
30 make $MAKEFLAGS &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib/dia $fs/usr/share
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/dia/*.so $fs/usr/lib/dia
41 cp -a $install/usr/share/applications $fs/usr/share
42 cp -a $install/usr/share/dia $fs/usr/share
43 cp -a $install/usr/share/icons $fs/usr/share
44 rm -r $fs/usr/share/icons/hicolor/scalable
45 # cp -a $install/usr/share/locale $fs/usr/share
46 cp -a $install/usr/share/mime-info $fs/usr/share
47 cp -a $install/usr/share/oaf $fs/usr/share
48 }