wok view dia/receipt @ rev 16216
Add fbcat
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 31 16:32:29 2014 +0000 (2014-03-31) |
parents | e5f512a9eb4b |
children | 27d55e263e2d |
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 cd $src
24 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|'
25 sed -i 's|stdio.h>|&\n#include <sys/stat.h>|' plug-ins/vdx/vdx-export.c
26 patch -Np1 -i $stuff/dia-overflow-fix.patch
27 ./configure --with-python \
28 --disable-gnome \
29 $CONFIGURE_ARGS &&
30 sed -i 's# data doc tests installer# data tests installer#' Makefile &&
31 make $MAKEFLAGS &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib $fs/usr/share/locale
39 cp -a $install/usr/lib/dia $fs/usr/lib
40 cp -a $install/usr/share/dia $fs/usr/share
41 cp -a $install/usr/share/oaf $fs/usr/share
42 #cp -a $install/usr/share/omf $fs/usr/share
43 cp -a $install/usr/share/locale/de $fs/usr/share/locale
44 cp -a $install/usr/share/locale/fr $fs/usr/share/locale
45 #cp -a $install/usr/share/help $fs/usr/share
46 cp -a $install/usr/share/applications $fs/usr/share
47 cp -a $install/usr/share/mime-info $fs/usr/share
48 cp -a $install/usr/share/icons/hicolor/16x16/apps/dia.png $fs/usr/share/pixmaps
49 cp -a $install/usr/bin $fs/usr
50 }