2012-02-28 12:02:28 +01:00
|
|
|
# Template file for 'chroot-binutils'
|
|
|
|
pkgname=chroot-binutils
|
2012-06-12 10:43:35 +02:00
|
|
|
version=2.22.52.0.4
|
2012-06-03 09:08:53 +02:00
|
|
|
revision=1
|
2012-06-12 10:43:35 +02:00
|
|
|
wrksrc="binutils-${version}"
|
|
|
|
bootstrap=yes
|
|
|
|
provides="binutils-${version}"
|
|
|
|
conflicts="binutils>=0"
|
2012-02-28 12:02:28 +01:00
|
|
|
short_desc="GNU binary utilities -- for xbps-src use"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.gnu.org/software/binutils/"
|
|
|
|
license="GPL-3"
|
2012-06-12 10:43:35 +02:00
|
|
|
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
|
|
|
|
checksum=d88ea0bc8591098a1666d9b97b93d81098816dd16faff90d3ed15072b40e1caf
|
2012-02-28 12:02:28 +01:00
|
|
|
long_desc="
|
|
|
|
The GNU binutils package contains essential tools to assemble, link and
|
|
|
|
manipulate binary and object files. They are often used with a compiler
|
|
|
|
and additional libraries for building software.
|
|
|
|
|
|
|
|
It includes the GNU linker, the portable GNU assembler, ar for modifying
|
|
|
|
archives (such as libraries), nm for listing symbols from object files,
|
|
|
|
objdump for displaying object file information, ranlib for generating
|
|
|
|
archive indexes, size for listing section sizes of object files,
|
|
|
|
strings for outputing the printable characters in files, strip for
|
|
|
|
stripping out symbols (like debugging information) from object files,
|
|
|
|
and other tools.
|
|
|
|
|
|
|
|
This package is only meant to be used by xbps-src, don't install it manually."
|
|
|
|
|
2012-06-12 10:43:35 +02:00
|
|
|
if [ -n "$IN_CHROOT" ]; then
|
|
|
|
makedepends="flex perl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --disable-shared \
|
|
|
|
--enable-threads --disable-plugins --enable-64-bit-bfd \
|
|
|
|
--with-mmap --disable-bootstrap --enable-multilib
|
|
|
|
}
|
2012-02-28 12:02:28 +01:00
|
|
|
|
2012-06-12 10:43:35 +02:00
|
|
|
do_build() {
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-02-28 12:02:28 +01:00
|
|
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
|
|
|
mkdir -p ${DESTDIR}/usr/lib
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
|
|
|
|
fi
|
|
|
|
|
2012-06-12 10:43:35 +02:00
|
|
|
make DESTDIR=${DESTDIR} tooldir=/usr install
|
|
|
|
|
2012-02-28 12:02:28 +01:00
|
|
|
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
|
|
|
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/include
|
|
|
|
}
|