2012-02-28 11:02:28 +00:00
|
|
|
# Template file for 'chroot-binutils'
|
|
|
|
pkgname=chroot-binutils
|
2012-10-25 05:04:51 +00:00
|
|
|
version=2.23.51.0.3
|
2013-02-02 17:00:39 +00:00
|
|
|
revision=2
|
2012-06-12 08:43:35 +00:00
|
|
|
wrksrc="binutils-${version}"
|
2012-02-28 11:02:28 +00: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 08:43:35 +00:00
|
|
|
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
|
2012-10-25 05:04:51 +00:00
|
|
|
checksum=2162905dabf191a2a803eab8d31e7be52d96d6ccd1e0ce42e25d82c6be918cd0
|
2012-02-28 11:02:28 +00:00
|
|
|
|
2012-06-12 08:43:35 +00:00
|
|
|
if [ -n "$IN_CHROOT" ]; then
|
|
|
|
makedepends="flex perl"
|
|
|
|
fi
|
2013-02-05 13:34:52 +00:00
|
|
|
crossmakedepends="zlib-devel"
|
2012-06-12 08:43:35 +00:00
|
|
|
|
2013-02-02 17:00:39 +00:00
|
|
|
noverifyrdeps=yes
|
2012-10-25 05:04:51 +00:00
|
|
|
bootstrap=yes
|
|
|
|
provides="binutils-${version}"
|
|
|
|
conflicts="binutils>=0"
|
|
|
|
|
2012-06-12 08:43:35 +00:00
|
|
|
do_configure() {
|
2013-02-02 17:00:39 +00:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
|
|
|
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"
|
|
|
|
fi
|
|
|
|
|
2012-06-12 08:43:35 +00:00
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} --disable-shared \
|
2013-02-02 17:00:39 +00:00
|
|
|
--enable-threads --disable-plugins \
|
|
|
|
--with-mmap --disable-bootstrap ${CONFIGFLAG}
|
2012-06-12 08:43:35 +00:00
|
|
|
}
|
2012-02-28 11:02:28 +00:00
|
|
|
|
2012-06-12 08:43:35 +00:00
|
|
|
do_build() {
|
2013-02-02 17:00:39 +00:00
|
|
|
make ${makejobs}
|
2012-06-12 08:43:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-02-28 11:02:28 +00: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 08:43:35 +00:00
|
|
|
make DESTDIR=${DESTDIR} tooldir=/usr install
|
|
|
|
|
2012-02-28 11:02:28 +00:00
|
|
|
[ -h ${DESTDIR}/usr/lib64 ] && rm -f ${DESTDIR}/usr/lib64
|
|
|
|
rm -f ${DESTDIR}/usr/lib/*.a
|
|
|
|
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/include
|
|
|
|
}
|