Convert packages to {host,}makedepends and XBPS_CROSS_BUILD.

This commit is contained in:
Juan RP
2013-03-24 10:21:58 +01:00
parent d83a901909
commit ea38e4719a
144 changed files with 338 additions and 455 deletions

View File

@@ -10,10 +10,10 @@ license="GPL-3"
distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz"
checksum=2162905dabf191a2a803eab8d31e7be52d96d6ccd1e0ce42e25d82c6be918cd0
if [ -n "$IN_CHROOT" ]; then
makedepends="flex perl"
if [ "$IN_CHROOT" ]; then
hostmakedepends="flex perl"
fi
crossmakedepends="zlib-devel"
makedepends="zlib-devel"
noverifyrdeps=yes
bootstrap=yes
@@ -21,7 +21,7 @@ provides="binutils-${version}"
conflicts="binutils>=0"
do_configure() {
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"
fi
@@ -35,7 +35,7 @@ do_build() {
}
do_install() {
if [ "$XBPS_MACHINE" = "x86_64" ]; then
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
mkdir -p ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
fi