diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-02-17 07:43:36 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-17 08:22:03 +0000 |
commit | 7b268e6114d17b132956ea45ae63976f184e5bc8 (patch) | |
tree | 0177534937e2aafb193d876f6de2a8e1637356f4 /main/build-base/APKBUILD | |
parent | f68891bf2327d5f458a00279770f3e1a686f7e6f (diff) | |
download | aports-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/APKBUILD | 11 |
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 |