wok annotate libffcall/receipt @ rev 8178

imported patch toolchain/elfutils.patch
author Antoine Bodin <gokhlayeh@slitaz.org>
date Thu Jan 27 00:20:49 2011 +0100 (2011-01-27)
parents 39f586a2b014
children 0e53525b8b2e
rev   line source
paul@4579 1 # SliTaz package receipt.
paul@4579 2
paul@4579 3 PACKAGE="libffcall"
paul@4579 4 VERSION="20091209"
paul@4579 5 CATEGORY="development"
paul@4579 6 SHORT_DESC="Foreign function call libraries."
paul@4579 7 MAINTAINER="paul@slitaz.org"
paul@4579 8 DEPENDS=""
paul@4579 9 BUILD_DEPENDS="cvs"
paul@4579 10 WEB_SITE="http://www.gnu.org/software/libffcall/"
paul@4579 11
paul@4579 12 # Rules to configure and make the package.
paul@4579 13 compile_rules()
paul@4579 14 {
pascal@5559 15 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
pascal@5559 16 if [ -f $TARBALL ]; then
pascal@5559 17 tar xzf $TARBALL
pascal@5559 18 else
pascal@5559 19 # No official tarball - so we have to use cvs.
pascal@5563 20 cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co ffcall || return 1
paul@4579 21
pascal@5559 22 # $src = $PACKAGE-$VERSION
pascal@5559 23 mv ffcall $PACKAGE-$VERSION 2>/dev/null
pascal@5559 24 tar czf $TARBALL $PACKAGE-$VERSION
pascal@5559 25 fi
paul@4579 26 cd $src
paul@4579 27 ./configure \
paul@4579 28 --prefix=/usr \
paul@4579 29 --infodir=/usr/share/info \
paul@4579 30 --mandir=/usr/share/man \
paul@4579 31 $CONFIGURE_ARGS &&
paul@4579 32 make && make DESTDIR=$PWD/_pkg install
paul@4579 33 }
paul@4579 34
paul@4579 35 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4579 36 genpkg_rules()
paul@4579 37 {
paul@4579 38 mkdir -p $fs/usr/lib
paul@4579 39 cp -a $_pkg/usr/lib $fs/usr
paul@4579 40 cp -a $_pkg/usr/include $fs/usr
paul@4579 41 }
paul@4579 42