aboutsummaryrefslogtreecommitdiffstats
path: root/main/build-base/APKBUILD
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-02-17 07:43:36 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-02-17 08:22:03 +0000
commit7b268e6114d17b132956ea45ae63976f184e5bc8 (patch)
tree0177534937e2aafb193d876f6de2a8e1637356f4 /main/build-base/APKBUILD
parentf68891bf2327d5f458a00279770f3e1a686f7e6f (diff)
downloadaports-7b268e6114d17b132956ea45ae63976f184e5bc8.tar.bz2
aports-7b268e6114d17b132956ea45ae63976f184e5bc8.tar.xz
main/build-base: add support for cross targets
Diffstat (limited to 'main/build-base/APKBUILD')
-rw-r--r--main/build-base/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/build-base/APKBUILD b/main/build-base/APKBUILD
index 9ae0ceb349..c9072f3f3d 100644
--- a/main/build-base/APKBUILD
+++ b/main/build-base/APKBUILD
@@ -1,10 +1,15 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=build-base
-pkgver=0.4
-pkgrel=1
+pkgver=0.5
+pkgrel=0
url=http://dev.alpinelinux.org/cgit
pkgdesc="Meta package for build base"
-depends="binutils gcc make libc-dev fortify-headers g++"
+depends="binutils gcc g++ make libc-dev fortify-headers"
+if [ "$CHOST" != "$CTARGET" ]; then
+ pkgname="$pkgname-$CTARGET_ARCH"
+ pkgdesc="$pkgdesc ($CTARGET_ARCH)"
+ depends="binutils-$CTARGET_ARCH gcc-$CTARGET_ARCH g++-$CTARGET_ARCH $depends"
+fi
arch="noarch"
license=none