wok view gamin/receipt @ rev 16036

ARM: remove audiofile (dont compile on tank) and add xorg-recordproto
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 09 03:50:37 2014 +0100 (2014-03-09)
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 }