wok-next view gamin/receipt @ rev 15461
Up: enlightenment-backgrounds (0.17.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Nov 05 20:58:44 2013 +0100 (2013-11-05) |
parents | 018bf95ddb55 |
children | 8139105f9285 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gamin"
4 VERSION="0.1.10"
5 CATEGORY="system-tools"
6 SHORT_DESC="File and directory monitoring system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnome.org/~veillard/gamin/"
11 WGET_URL="http://www.gnome.org/~veillard/gamin/sources/$TARBALL"
12 CROSS="error: cannot run test program while cross compiling"
14 DEPENDS="glib"
15 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
22 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
23 # (gamin v0.1.10)
24 cd server
25 sed 's/^G_CONST_RETURN/const/'\
26 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \
27 || return 1
28 cd ..
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --libexecdir=/usr/lib/gamin \
34 --build=$HOST_SYSTEM \
35 --host=$HOST_SYSTEM &&
36 make &&
37 mkdir -p $DESTDIR/usr/include &&
38 make -j1 DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
47 strip -s $fs/usr/lib/$PACKAGE/*
48 }