wok annotate gamin/receipt @ rev 13355
Add naim
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 10 16:30:34 2012 +0200 (2012-09-10) |
parents | 9aaf5b54d2a9 |
children | a00bf44ed23d |
rev | line source |
---|---|
pankso@255 | 1 # SliTaz package receipt. |
pankso@255 | 2 |
pankso@255 | 3 PACKAGE="gamin" |
pankso@3344 | 4 VERSION="0.1.10" |
pankso@271 | 5 CATEGORY="system-tools" |
pankso@255 | 6 SHORT_DESC="File and directory monitoring system." |
pankso@255 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@255 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@255 | 9 WEB_SITE="http://www.gnome.org/~veillard/gamin/" |
pankso@255 | 10 WGET_URL="http://www.gnome.org/~veillard/gamin/sources/$TARBALL" |
pankso@10388 | 11 CROSS="error: cannot run test program while cross compiling" |
pankso@10388 | 12 |
pankso@10388 | 13 DEPENDS="glib" |
pankso@10388 | 14 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev" |
pankso@255 | 15 |
pankso@255 | 16 # Rules to configure and make the package. |
pankso@255 | 17 compile_rules() |
pankso@255 | 18 { |
pankso@255 | 19 cd $src |
gokhlayeh@11492 | 20 |
gokhlayeh@11492 | 21 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions. |
gokhlayeh@11492 | 22 # (gamin v0.1.10) |
gokhlayeh@11492 | 23 cd server |
gokhlayeh@11492 | 24 sed 's/^G_CONST_RETURN/const/'\ |
gokhlayeh@11492 | 25 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \ |
gokhlayeh@11492 | 26 || return 1 |
gokhlayeh@11492 | 27 cd .. |
gokhlayeh@11492 | 28 |
pankso@255 | 29 ./configure \ |
pankso@255 | 30 --prefix=/usr \ |
pankso@255 | 31 --sysconfdir=/etc \ |
pankso@255 | 32 --libexecdir=/usr/lib/gamin \ |
pankso@10388 | 33 --build=$HOST_SYSTEM \ |
pankso@10388 | 34 --host=$HOST_SYSTEM && |
pankso@3368 | 35 make && |
pankso@10388 | 36 mkdir -p $DESTDIR/usr/include && |
pankso@10388 | 37 make -j1 DESTDIR=$DESTDIR install |
pankso@255 | 38 } |
pankso@255 | 39 |
pankso@255 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@255 | 41 genpkg_rules() |
pankso@255 | 42 { |
pankso@255 | 43 mkdir -p $fs/usr/lib |
pankso@255 | 44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@255 | 45 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
pankso@2833 | 46 strip -s $fs/usr/lib/$PACKAGE/* |
pankso@255 | 47 } |