wok view elfutils/receipt @ rev 15656

wxWidgets: back to 2.8.12.1 too many softwares depend on 2.8.x
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 11 23:46:27 2013 +0100 (2013-12-11)
parents 380ffe05937a
children 79949949dbb8
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://fedorahosted.org/elfutils/"
11 WGET_URL="https://fedorahosted.org/releases/e/l/$PACKAGE/$VERSION/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glibc-base"
15 BUILD_DEPENDS="wget bzip2-dev liblzma-dev"
17 # Handle multiarch compilation
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="bzip2-dev xz-dev" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 mkdir -p src/.deps
27 touch src/.deps/none_ld.Po
28 sed -i -e 's/strcmp.*symtab")/(&\n\t\t\t\t\&\& strcmp (section_name (ebl, idx), ".dynsym"))/' \
29 -e 's/__fini_array_start.*/&\n\t\t\t\t\&\& strcmp (name, "__bss_start") != 0\n\t\t\t\t\&\& strcmp (name, "__TMC_END__") != 0/' \
30 src/elflint.c
31 sed -i 's/run-strip-reloc.sh//' tests/Makefile* # Need cc -g !
32 ./configure $CONFIGURE_ARGS &&
33 # Disable check/tests when cross-compiling
34 case "$ARCH" in
35 arm) make && make install ;;
36 *) make && make check && make install ;;
37 esac
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/bin
44 for i in elfcmp findtextrel unstrip; do
45 cp -a $install/usr/bin/$i $fs/usr/bin
46 done
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 cp -a $install/usr/lib/elfutils $fs/usr/lib
49 }