From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/ncurses/Config.in | 16 ++++++ package/ncurses/Makefile | 70 +++++++++++++++++++++++++++ package/ncurses/ipkg/libncurses.control | 4 ++ package/ncurses/patches/patch-misc_run_tic_in | 12 +++++ 4 files changed, 102 insertions(+) create mode 100644 package/ncurses/Config.in create mode 100644 package/ncurses/Makefile create mode 100644 package/ncurses/ipkg/libncurses.control create mode 100644 package/ncurses/patches/patch-misc_run_tic_in (limited to 'package/ncurses') diff --git a/package/ncurses/Config.in b/package/ncurses/Config.in new file mode 100644 index 000000000..4847013b6 --- /dev/null +++ b/package/ncurses/Config.in @@ -0,0 +1,16 @@ +config ADK_COMPILE_NCURSES + tristate + depends ADK_PACKAGE_LIBNCURSES + +config ADK_PACKAGE_LIBNCURSES + prompt "libncurses........................ Terminal handling library" + tristate + default n + select ADK_COMPILE_NCURSES + help + A terminal handling library + + Comes with: libcurses libform libmenu libncurses libpanel + + http://www.gnu.org/software/ncurses/ + diff --git a/package/ncurses/Makefile b/package/ncurses/Makefile new file mode 100644 index 000000000..63030766d --- /dev/null +++ b/package/ncurses/Makefile @@ -0,0 +1,70 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= ncurses +PKG_VERSION:= 5.7 +PKG_RELEASE:= 1 +PKG_MD5SUM:= cce05daf61a64501ef6cd8da1f727ec6 +MASTER_SITES:= ${MASTER_SITE_GNU:=ncurses/} + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE= gnu +CONFIGURE_ENV+= ac_cv_linux_vers=2 +CONFIGURE_ARGS+= --without-cxx \ + --without-cxx-binding \ + --without-progs \ + --with-fallbacks \ + --without-ada \ + --with-shared \ + --with-normal \ + --without-debug \ + --without-profile \ + --without-gpm \ + --enable-overwrite \ + --with-terminfo-dirs=/usr/share/terminfo \ + --with-default-terminfo-dir=/usr/share/terminfo \ + --disable-big-core \ + --disable-home-terminfo \ + --without-rcs-ids \ + --enable-const \ + --enable-echo +BUILD_STYLE= auto +INSTALL_STYLE= auto confprog +ALL_TARGET:= libs +INSTALL_TARGET:= install.libs install.data + + +pre-configure: + (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ + ./configure \ + --with-build-cc=${HOSTCC} \ + --with-progs \ + ); + ${MAKE} -C ${WRKBUILD}/include + ${MAKE} -C ${WRKBUILD}/progs + +post-install: + # this is installed as libncurses - make libcurses a "link" + rm -f ${WRKINST}/usr/lib/libcurses.so* + echo 'GROUP(-lncurses)' >${WRKINST}/usr/lib/libcurses.so + # libcurses will not show up in the IPKG, only in STAGING_DIR + ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo + ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/lib + ${CP} ${WRKINST}/usr/lib/lib{form,menu,ncurses,panel}.so.* \ + ${IDIR_LIBNCURSES}/usr/lib + for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \ + v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \ + ${INSTALL_DIR} \ + ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \ + ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \ + ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \ + done + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/ncurses/ipkg/libncurses.control b/package/ncurses/ipkg/libncurses.control new file mode 100644 index 000000000..0eff1cea0 --- /dev/null +++ b/package/ncurses/ipkg/libncurses.control @@ -0,0 +1,4 @@ +Package: libncurses +Priority: optional +Section: libs +Description: a terminal handling library and common terminal definitions diff --git a/package/ncurses/patches/patch-misc_run_tic_in b/package/ncurses/patches/patch-misc_run_tic_in new file mode 100644 index 000000000..c2d76c4f7 --- /dev/null +++ b/package/ncurses/patches/patch-misc_run_tic_in @@ -0,0 +1,12 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- ncurses-5.7.orig/misc/run_tic.in 2006-10-28 21:43:30.000000000 +0200 ++++ ncurses-5.7/misc/run_tic.in 2009-05-07 18:43:38.156250000 +0200 +@@ -61,7 +61,7 @@ test -z "${DESTDIR}" && DESTDIR= + # Allow tic to run either from the install-path, or from the build-directory. + # Do not do this if we appear to be cross-compiling. In that case, we rely + # on the host's copy of tic to compile the terminfo database. +-if test "$THAT_CC" = "$THIS_CC" ; then ++if test "$THAT_CC" != "$THIS_CC" ; then + case "$PATH" in + :*) PATH=../progs:../lib:${DESTDIR}$bindir$PATH ;; + *) PATH=../progs:../lib:${DESTDIR}$bindir:$PATH ;; -- cgit v1.2.3