]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/core/ncurses/ncurses.nm
naoki: Initial checkin.
[people/amarx/ipfire-3.x.git] / pkgs / core / 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 ../../Config
26
27 PKG_NAME = ncurses
28 PKG_VER = 5.7
29 PKG_REL = 0
30
31 PKG_MAINTAINER =
32 PKG_GROUP = System/Base
33 PKG_URL = http://invisible-island.net/ncurses/ncurses.html
34 PKG_LICENSE = MIT
35 PKG_SUMMARY = Ncurses support utilities.
36
37 define PKG_DESCRIPTION
38 The curses library routines are a terminal-independent method of \
39 updating character screens with reasonable optimization. The ncurses \
40 (new curses) library is a freely distributable replacement for the \
41 discontinued 4.4 BSD classic curses library.
42 endef
43
44 PKG_TARBALL = $(THISAPP).tar.gz
45
46 include ../../Rules
47
48 ###############################################################################
49 # Installation Details
50 ###############################################################################
51
52 $(STAGE_BUILD): $(STAGE_PREPARE)
53 @$(PRE_BUILD)
54
55 cd $(DIR_APP) && \
56 ./configure \
57 $(CONFIGURE_ARCH) \
58 --prefix=/usr \
59 --with-shared \
60 --without-debug \
61 --enable-widec \
62 --disable-static \
63 --enable-symlinks \
64 --disable-root-environ
65
66 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
67
68 @$(POST_BUILD)
69
70 $(STAGE_INSTALL): $(STAGE_BUILD)
71 @$(PRE_INSTALL)
72
73 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
74
75 mv -v $(BUILDROOT)/usr/lib/libncursesw.so.5* $(BUILDROOT)/lib
76 ln -sfv ../../lib/libncursesw.so.5 $(BUILDROOT)/usr/lib/libncursesw.so
77 for lib in curses ncurses form panel menu; do \
78 rm -vf $(BUILDROOT)/usr/lib/lib$${lib}.so ; \
79 echo "INPUT(-l$${lib}w)" >$(BUILDROOT)/usr/lib/lib$${lib}.so ; \
80 done
81
82 rm -vf $(BUILDROOT)/usr/lib/libcursesw.so
83 echo "INPUT(-lncursesw)" >$(BUILDROOT)/usr/lib/libcursesw.so
84 ln -sfv libncurses.so $(BUILDROOT)/usr/lib/libcurses.so
85
86 @$(POST_INSTALL)