wok-current view gamin/receipt @ rev 14875
Up: python-django (1.5.1)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Jul 23 19:28:00 2013 -0300 (2013-07-23) |
parents | 9aaf5b54d2a9 |
children | a00bf44ed23d |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnome.org/~veillard/gamin/"
10 WGET_URL="http://www.gnome.org/~veillard/gamin/sources/$TARBALL"
11 CROSS="error: cannot run test program while cross compiling"
13 DEPENDS="glib"
14 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
22 # (gamin v0.1.10)
23 cd server
24 sed 's/^G_CONST_RETURN/const/'\
25 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \
26 || return 1
27 cd ..
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --libexecdir=/usr/lib/gamin \
33 --build=$HOST_SYSTEM \
34 --host=$HOST_SYSTEM &&
35 make &&
36 mkdir -p $DESTDIR/usr/include &&
37 make -j1 DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
45 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
46 strip -s $fs/usr/lib/$PACKAGE/*
47 }