summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/build b/build
index a2b854f..e85ea13 100755
--- a/build
+++ b/build
@@ -4,6 +4,7 @@ include ../source.mk
builddir = obj_$$(printf '%s' $@ | sed 's/^[^_]*_//')
abi_ver = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | sed 's/[.].*//')
+legacy_abi_ver = $$(($(abi_ver) - 1))
common_opts = \
--without-ada \
--without-tests \
@@ -27,9 +28,11 @@ build_ncursesw_opts = $(common_opts) \
--disable-overwrite \
--enable-widec
build_ncurses_legacy_opts = $(build_ncurses_opts) \
- --with-abi-version=$$(($(abi_ver) - 1))
+ --with-install-prefix="$${PWD}/dest-legacy" \
+ --with-abi-version=$(legacy_abi_ver)
build_ncursesw_legacy_opts = $(build_ncurses_opts) \
- --with-abi-version=$$(($(abi_ver) - 1))
+ --with-install-prefix="$${PWD}/dest-legacy" \
+ --with-abi-version=$(legacy_abi_ver)
nop:
@:
@@ -56,5 +59,12 @@ install: build
mkdir -p terminfo-linux.data/usr/share/terminfo/l/
mv dest/usr/share/terminfo/l/linux \
terminfo-linux.data/usr/share/terminfo/l/linux
- oh-installfiles
+ OPK_PACKAGES="\
+ $$(printf '%s\n' $${OPK_PACKAGES} | \
+ grep -Ev "lib.*[.]$(legacy_abi_ver)(-dev)?") \
+ "oh-installfiles
+ OPK_PACKAGES="\
+ $$(printf '%s\n' $${OPK_PACKAGES} | \
+ grep -E "lib.*[.]$(legacy_abi_ver)(-dev)?") \
+ " oh-installfiles -d dest-legacy
oh-shlibdeps