wok-current annotate gamin/receipt @ rev 15004
Add some LGPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 22:18:41 2013 +0000 (2013-08-10) |
parents | 018bf95ddb55 |
children | 8139105f9285 |
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" |
pascal@15004 | 8 LICENSE="LGPL2" |
pankso@255 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@255 | 10 WEB_SITE="http://www.gnome.org/~veillard/gamin/" |
pankso@255 | 11 WGET_URL="http://www.gnome.org/~veillard/gamin/sources/$TARBALL" |
pankso@10388 | 12 CROSS="error: cannot run test program while cross compiling" |
pankso@10388 | 13 |
pankso@10388 | 14 DEPENDS="glib" |
pankso@10388 | 15 BUILD_DEPENDS="pkg-config glib glib-dev gtk+-dev" |
pankso@255 | 16 |
pankso@255 | 17 # Rules to configure and make the package. |
pankso@255 | 18 compile_rules() |
pankso@255 | 19 { |
pankso@255 | 20 cd $src |
gokhlayeh@11492 | 21 |
gokhlayeh@11492 | 22 # Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions. |
gokhlayeh@11492 | 23 # (gamin v0.1.10) |
gokhlayeh@11492 | 24 cd server |
gokhlayeh@11492 | 25 sed 's/^G_CONST_RETURN/const/'\ |
gokhlayeh@11492 | 26 -i gam_node.c gam_node.h gam_subscription.c gam_subscription.h \ |
gokhlayeh@11492 | 27 || return 1 |
gokhlayeh@11492 | 28 cd .. |
gokhlayeh@11492 | 29 |
pankso@255 | 30 ./configure \ |
pankso@255 | 31 --prefix=/usr \ |
pankso@255 | 32 --sysconfdir=/etc \ |
pankso@255 | 33 --libexecdir=/usr/lib/gamin \ |
pankso@10388 | 34 --build=$HOST_SYSTEM \ |
pankso@10388 | 35 --host=$HOST_SYSTEM && |
pankso@3368 | 36 make && |
pankso@10388 | 37 mkdir -p $DESTDIR/usr/include && |
pankso@10388 | 38 make -j1 DESTDIR=$DESTDIR install |
pankso@255 | 39 } |
pankso@255 | 40 |
pankso@255 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@255 | 42 genpkg_rules() |
pankso@255 | 43 { |
pankso@255 | 44 mkdir -p $fs/usr/lib |
pascal@15004 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@15004 | 46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
pankso@2833 | 47 strip -s $fs/usr/lib/$PACKAGE/* |
pankso@255 | 48 } |