summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-25 20:05:36 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-25 20:05:36 -0500
commit5872cddb5cbfea77d31fe4a90da2d0bb6e3b7e55 (patch)
treea2ce3a60321343870c61651645cb8bc8c8a26b8f /system
parentbe0e0d9410ae884f1ed0583602dbda4e52236aa2 (diff)
downloadpackages-5872cddb5cbfea77d31fe4a90da2d0bb6e3b7e55.tar.gz
packages-5872cddb5cbfea77d31fe4a90da2d0bb6e3b7e55.tar.bz2
packages-5872cddb5cbfea77d31fe4a90da2d0bb6e3b7e55.tar.xz
packages-5872cddb5cbfea77d31fe4a90da2d0bb6e3b7e55.zip
system/vim: support cross builds
Diffstat (limited to 'system')
-rw-r--r--system/vim/APKBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/system/vim/APKBUILD b/system/vim/APKBUILD
index df46d4b5d..8c233a041 100644
--- a/system/vim/APKBUILD
+++ b/system/vim/APKBUILD
@@ -11,7 +11,8 @@ arch="all"
license="custom"
depends=""
options="!check" # requires controlling TTY, and fails with musl locales
-makedepends="acl-dev ncurses-dev perl-dev python3-dev"
+makedepends_host="acl-dev ncurses-dev"
+[ "$CBUILD" != "$CHOST" ] || makedepends_host="$makedepends_host perl-dev python3-dev"
subpackages="$pkgname-doc ${pkgname}diff::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
vimrc
@@ -31,19 +32,29 @@ prepare() {
}
build() {
+ local _onlynative
cd "$builddir"
+ [ "$CBUILD" != "$CHOST" ] || _onlynative="--enable-perlinterp --enable-python3interp=dynamic"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --enable-perlinterp \
- --enable-python3interp=dynamic \
+ $_onlynative \
--without-x \
--enable-acl \
--enable-nls \
--enable-multibyte \
--enable-gui=no \
- --with-compiledby="Adélie Linux"
+ --with-compiledby="Adélie Linux" \
+ --with-tlib=ncurses \
+ vim_cv_toupper_broken=no \
+ vim_cv_terminfo=yes \
+ vim_cv_tgent=zero \
+ vim_cv_tty_group=world \
+ vim_cv_getcwd_broken=no \
+ vim_cv_stat_ignores_slash=no \
+ vim_cv_memmove_handles_overlap=yes \
+ STRIP=:
make
}