]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/ncurses/ncurses.nm
Merge remote-tracking branch 'maniacikarus/proxy'
[ipfire-3.x.git] / pkgs / ncurses / ncurses.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = ncurses
28 PKG_VER = 5.9
29 PKG_REL = 1
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = System/Base
33 PKG_URL = http://invisible-island.net/ncurses/ncurses.html
34 PKG_LICENSE = MIT
35 PKG_SUMMARY = Ncurses support utilities.
36
37 PKG_BUILD_DEPS+= gcc-c++
38
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.
44 endef
45
46 PKG_TARBALL = $(THISAPP).tar.gz
47
48 PKG_PACKAGES += $(PKG_NAME_REAL)-devel
49
50 CONFIGURE_OPTIONS += \
51 --mandir=/usr/share/man \
52 --with-shared \
53 --without-debug \
54 --enable-widec \
55 --disable-static \
56 --enable-symlinks \
57 --disable-root-environ
58
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 ; \
66 done
67
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
71 endef