wok view elfutils/receipt @ rev 12944

awesome: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 30 18:15:17 2012 +0200 (2012-05-30)
parents 2ce43b9c164d
children 380ffe05937a
line source
1 # SliTaz package receipt.
3 PACKAGE="elfutils"
4 VERSION="0.153"
5 CATEGORY="development"
6 SHORT_DESC="ELF object file access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="https://fedorahosted.org/elfutils/"
10 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
11 HOST_ARCH="i486 arm"
13 DEPENDS="glibc-base"
14 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
16 # Handle multiarch compilation
17 case "$ARCH" in
18 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
19 esac
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g !
26 ./configure $CONFIGURE_ARGS &&
27 # Disable check/tests when cross-compiling
28 case "$ARCH" in
29 arm) make && make install ;;
30 *) make && make check && make install ;;
31 esac
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/bin
38 for i in elfcmp findtextrel unstrip; do
39 cp -a $install/usr/bin/$i $fs/usr/bin
40 done
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/lib/elfutils $fs/usr/lib
43 }