summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 14:04:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-24 14:06:17 (EDT)
commit7f51d77557f1f443958634c1c887c7844fc132d4 (patch)
tree7d1b275e294ed835ff05371681ceb91d3f1a7915
parentd5491945f76830cdb9c4fc83099a0567f653f21f (diff)
build: Install legacy ABI files
-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