From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl <stefan.schantl@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] compat-ncurses: New package Date: Sun, 23 Jun 2019 11:12:04 +0200 Message-ID: <20190623091204.31715-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0544325274155005137==" List-Id: <development.lists.ipfire.org> --===============0544325274155005137== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This package is used to keep compatibility for binaries which are linked to the series 5 of ncurses. Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org> --- compat-ncurses/compat-ncurses.nm | 106 +++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 compat-ncurses/compat-ncurses.nm diff --git a/compat-ncurses/compat-ncurses.nm b/compat-ncurses/compat-ncurses= .nm new file mode 100644 index 000000000..677060fdf --- /dev/null +++ b/compat-ncurses/compat-ncurses.nm @@ -0,0 +1,106 @@ +############################################################################= ### +# IPFire.org - An Open Source Firewall Solution = # +# Copyright (C) - IPFire Development Team <info(a)ipfire.org> = # +############################################################################= ### + +name =3D compat-ncurses +version =3D 5.9 +revision =3D 20150117 +release =3D 12.%{revision} +thisapp =3D ncurses-%{version}-%{revision} + +groups =3D System/Base +url =3D http://invisible-island.net/ncurses/ncurses.html +license =3D MIT +summary =3D Ncurses support utilities. + +description + The curses library routines are a terminal-independent method of + updating character screens with reasonable optimization. The ncurses + (new curses) library is a freely distributable replacement for the + discontinued 4.4 BSD classic curses library. +end + +source_dl =3D ftp://invisible-island.net/ncurses/current/ +sources =3D %{thisapp}.tgz + +build + requires + gcc-c++ + end + + configure_options +=3D \ + --with-shared \ + --without-debug \ + --without-ada \ + --with-ospeed=3Dunsigned \ + --with-chtype=3Dlong \ + --enable-hard-tabs \ + --enable-xmc-glitch \ + --enable-colorfgbg \ + --with-terminfo-dirs=3D%{sysconfdir}/terminfo:%{datadir}/terminfo \ + --enable-overwrite \ + --enable-pc-files \ + --with-termlib=3Dtinfo + + export PKG_CONFIG_LIBDIR=3D%{libdir}/pkgconfig + + build + mkdir -pv narrowc widec + + # Build narrowc version. + cd narrowc + ln -svf ../configure . + ./configure %{configure_options} --with-ticlib + make %{PARALLELISMFLAGS} libs + make %{PARALLELISMFLAGS} -C progs + + # Build widec version. + cd ../widec + ln -svf ../configure . + ./configure %{configure_options} --enable-widec --without-progs + make %{PARALLELISMFLAGS} libs + cd .. + end + + install + make -C narrowc DESTDIR=3D%{BUILDROOT} install.libs + rm -rvf %{BUILDROOT}%{libdir}/libtinfo.* + make -C widec DESTDIR=3D%{BUILDROOT} install.libs + + chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.* + + # don't require -ltinfo when linking with --no-add-needed + for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do + soname=3D$(basename $(readlink $l)) + rm -f $l + echo "INPUT($soname -ltinfo)" > $l + done + + rm -f %{BUILDROOT}%{libdir}/libcurses{,w}.so + echo "INPUT(-lncurses)" > %{BUILDROOT}%{libdir}/libcurses.so + echo "INPUT(-lncursesw)" > %{BUILDROOT}%{libdir}/libcursesw.so + echo "INPUT(-ltinfo)" > %{BUILDROOT}%{libdir}/libtermcap.so + + rm -vf %{BUILDROOT}%{libdir}/terminfo + rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc + end +end + +packages + package %{name} + template LIBS + + provides + ncurses-libs =3D %{thisver} + end + + obsoletes + ncurses-libs <=3D %{thisver} + end + end + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.20.1 --===============0544325274155005137==--