2008-10-22 02:43:20 +02:00
|
|
|
# Template build file for 'ncurses'.
|
|
|
|
pkgname=ncurses
|
2011-06-20 23:04:23 +02:00
|
|
|
version=5.9
|
2008-10-28 23:57:52 +01:00
|
|
|
distfiles="http://ftp.gnu.org/pub/gnu/ncurses/$pkgname-$version.tar.gz"
|
2011-02-27 14:51:11 +01:00
|
|
|
build_style=custom-install
|
2008-10-22 02:43:20 +02:00
|
|
|
short_desc="A System V Release 4.0 curses emulation library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 23:04:23 +02:00
|
|
|
homepage="http://www.gnu.org/software/ncurses/"
|
|
|
|
license="MIT"
|
|
|
|
checksum=9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b
|
2008-10-22 02:43:20 +02:00
|
|
|
long_desc="
|
|
|
|
The ncurses (new curses) library is a freeware emulation of System V Release
|
|
|
|
4.0 curses. It uses terminfo format, supports pads and color and multiple
|
|
|
|
highlights and forms characters and function-key mapping, and has all the
|
|
|
|
other SYSV-curses enhancements over BSD curses. The distribution includes
|
|
|
|
the library and support utilities, including a terminfo compiler tic, a
|
|
|
|
ecompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo.
|
|
|
|
Full manual pages are provided for the library and tools."
|
|
|
|
|
2011-07-06 08:16:56 +02:00
|
|
|
bootstrap=yes
|
2009-11-22 08:31:44 +01:00
|
|
|
subpackages="ncurses-base ncurses-devel ncurses-libs ncurses-term"
|
2009-02-24 07:13:11 +01:00
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run ncurses-libs
|
2009-10-09 10:07:40 +02:00
|
|
|
|
2011-02-27 14:51:11 +01:00
|
|
|
do_build()
|
2009-10-09 10:07:40 +02:00
|
|
|
{
|
2011-02-27 14:51:11 +01:00
|
|
|
mkdir ncurses-build ncursesw-build
|
|
|
|
cd ${wrksrc}/ncursesw-build
|
|
|
|
|
|
|
|
# widec build
|
|
|
|
CFLAGS="$XBPS_CFLAGS -fPIC" \
|
|
|
|
../configure --enable-widec --with-shared \
|
|
|
|
--prefix=/usr --mandir=/usr/share/man --without-debug \
|
|
|
|
--with-manpage-symlinks --without-ada --enable-ext-colors \
|
|
|
|
--with-install-prefix=${DESTDIR}
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
cd ${wrksrc}/ncurses-build
|
|
|
|
# non-widec build
|
|
|
|
CFLAGS="$XBPS_CFLAGS -fPIC" \
|
|
|
|
../configure --prefix=/usr --with-shared \
|
|
|
|
--without-debug --without-ada --with-install-prefix=${DESTDIR}
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
cd ${wrksrc}/ncursesw-build
|
|
|
|
make install
|
|
|
|
|
|
|
|
install -dm755 ${DESTDIR}/lib
|
|
|
|
mv ${DESTDIR}/usr/lib/libncursesw.so.* ${DESTDIR}/lib
|
|
|
|
ln -sf ../../lib/libncursesw.so.6 ${DESTDIR}/usr/lib/libncursesw.so
|
|
|
|
|
|
|
|
# Fool packages looking to link to non-wide-character ncurses libraries
|
|
|
|
for lib in curses ncurses form panel menu; do
|
|
|
|
rm -f ${DESTDIR}/usr/lib/lib${lib}.so
|
|
|
|
echo "INPUT(-l${lib}w)" >${DESTDIR}/usr/lib/lib${lib}.so
|
|
|
|
ln -sf lib${lib}w.a ${DESTDIR}/usr/lib/lib${lib}.a
|
|
|
|
done
|
|
|
|
ln -sf libncurses++w.a ${DESTDIR}/usr/lib/libncurses++.a
|
|
|
|
|
|
|
|
# install tput to /bin
|
|
|
|
install -dm755 ${DESTDIR}/bin/
|
|
|
|
mv ${DESTDIR}/usr/bin/tput ${DESTDIR}/bin/tput
|
|
|
|
|
|
|
|
# Some packages look for -lcurses during build
|
|
|
|
rm -f ${DESTDIR}/usr/lib/libcursesw.so
|
|
|
|
echo "INPUT(-lncursesw)" >${DESTDIR}/usr/lib/libcursesw.so
|
|
|
|
ln -sf libncurses.so ${DESTDIR}/usr/lib/libcurses.so
|
|
|
|
ln -sf libncursesw.a ${DESTDIR}/usr/lib/libcursesw.a
|
|
|
|
ln -sf libncurses.a ${DESTDIR}/usr/lib/libcurses.a
|
|
|
|
|
|
|
|
# non-widec compatibility library
|
|
|
|
cd ${wrksrc}/ncurses-build
|
|
|
|
install -Dm755 lib/libncurses.so.${version} \
|
|
|
|
${DESTDIR}/usr/lib/libncurses.so.${version}
|
|
|
|
ln -sf libncurses.so.${version} \
|
|
|
|
${DESTDIR}/usr/lib/libncurses.so.5
|
2009-10-09 10:07:40 +02:00
|
|
|
}
|