1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUP = System/Base
33 PKG_URL = http://invisible-island.net/ncurses/ncurses.html
35 PKG_SUMMARY = Ncurses support utilities.
37 PKG_BUILD_DEPS+= gcc-c++
39 define PKG_DESCRIPTION
40 The curses library routines are a terminal-independent method of \
41 updating character screens with reasonable optimization. The ncurses \
42 (new curses) library is a freely distributable replacement for the \
43 discontinued 4.4 BSD classic curses library.
46 PKG_TARBALL = $(THISAPP).tar.gz
48 PKG_PACKAGES += $(PKG_NAME_REAL)-devel
50 CONFIGURE_OPTIONS += \
51 --mandir=/usr/share/man \
57 --disable-root-environ
59 define STAGE_INSTALL_CMDS
60 -mkdir -pv $(BUILDROOT)/lib
61 mv -v $(BUILDROOT)/usr/lib/libncursesw.so.5* $(BUILDROOT)/lib
62 ln -sfv ../../lib/libncursesw.so.5 $(BUILDROOT)/usr/lib/libncursesw.so
63 for lib in curses ncurses form panel menu; do \
64 rm -vf $(BUILDROOT)/usr/lib/lib$${lib}.so ; \
65 echo "INPUT(-l$${lib}w)" >$(BUILDROOT)/usr/lib/lib$${lib}.so ; \
68 rm -vf $(BUILDROOT)/usr/lib/libcursesw.so
69 echo "INPUT(-lncursesw)" >$(BUILDROOT)/usr/lib/libcursesw.so
70 ln -sfv libncurses.so $(BUILDROOT)/usr/lib/libcurses.so