2012-10-15 13:04:42 +00:00
|
|
|
# Template file for 'elfutils'
|
|
|
|
pkgname=elfutils
|
2015-04-30 23:09:31 +00:00
|
|
|
version=0.161
|
2015-06-22 10:12:25 +00:00
|
|
|
revision=3
|
2012-10-15 13:04:42 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--program-prefix=eu-"
|
2014-10-30 06:32:30 +00:00
|
|
|
hostmakedepends="m4"
|
2013-10-27 07:24:13 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel liblzma-devel"
|
2012-10-15 13:04:42 +00:00
|
|
|
short_desc="Utilities to handle ELF object files"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-10-15 13:04:42 +00:00
|
|
|
license="GPL-3"
|
|
|
|
homepage="https://fedorahosted.org/elfutils/"
|
|
|
|
distfiles="https://fedorahosted.org/releases/e/l/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
|
2015-04-30 23:09:31 +00:00
|
|
|
checksum=570c91a1783fa5386aaa2dfdd08dda1de777c2b63bf3b9c1437d635ffdd7a070
|
|
|
|
|
|
|
|
CFLAGS="-Wno-unused-result"
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) makedepends+=" argp-standalone" ;;
|
|
|
|
esac
|
|
|
|
|
2015-06-05 09:03:32 +00:00
|
|
|
post_extract() {
|
|
|
|
sed -i '/<linux\/uio.h>/d' backends/*_initreg.c
|
2015-06-22 10:12:25 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) patch -Np0 <${FILESDIR}/009-no-fts.patch
|
|
|
|
esac
|
2015-06-05 09:03:32 +00:00
|
|
|
}
|
|
|
|
|
2015-04-30 23:09:31 +00:00
|
|
|
do_configure() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl) export LIBS="-largp" ;;
|
|
|
|
esac
|
|
|
|
./configure ${configure_args}
|
|
|
|
}
|
2013-04-12 08:23:11 +00:00
|
|
|
|
|
|
|
libelf_package() {
|
2013-09-20 14:06:31 +00:00
|
|
|
short_desc+=" - runtime library"
|
2013-04-12 08:23:11 +00:00
|
|
|
pkg_install() {
|
2013-09-25 09:03:24 +00:00
|
|
|
vmove "usr/lib/*.so*"
|
2013-04-12 08:23:11 +00:00
|
|
|
vmove usr/lib/elfutils
|
|
|
|
}
|
|
|
|
}
|
|
|
|
elfutils-devel_package() {
|
2014-02-12 17:51:49 +00:00
|
|
|
depends="libelf>=${version}_${revision}"
|
2013-09-20 14:06:31 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:23:11 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|