]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - ncurses/ncurses.nm
glibc: Update to 2.19.
[people/ms/ipfire-3.x.git] / ncurses / ncurses.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ncurses
7 version = 5.9
8 release = 9
9
10 groups = System/Base
11 url = http://invisible-island.net/ncurses/ncurses.html
12 license = MIT
13 summary = Ncurses support utilities.
14
15 description
16 The curses library routines are a terminal-independent method of
17 updating character screens with reasonable optimization. The ncurses
18 (new curses) library is a freely distributable replacement for the
19 discontinued 4.4 BSD classic curses library.
20 end
21
22 source_dl =
23
24 build
25 requires
26 gcc-c++
27 end
28
29 configure_options += \
30 --with-shared \
31 --without-debug \
32 --without-ada \
33 --with-ospeed=unsigned \
34 --with-chtype=long \
35 --enable-hard-tabs \
36 --enable-xmc-glitch \
37 --enable-colorfgbg \
38 --with-terminfo-dirs=%{sysconfdir}/terminfo:%{datadir}/terminfo \
39 --enable-overwrite \
40 --enable-pc-files \
41 --with-termlib=tinfo
42
43 export PKG_CONFIG_LIBDIR=%{libdir}/pkgconfig
44
45 build
46 mkdir -pv narrowc widec
47
48 # Build narrowc version.
49 cd narrowc
50 ln -svf ../configure .
51 ./configure %{configure_options} --with-ticlib
52 make %{PARALLELISMFLAGS} libs
53 make %{PARALLELISMFLAGS} -C progs
54
55 # Build widec version.
56 cd ../widec
57 ln -svf ../configure .
58 ./configure %{configure_options} --enable-widec --without-progs
59 make %{PARALLELISMFLAGS} libs
60 cd ..
61 end
62
63 install
64 make -C narrowc DESTDIR=%{BUILDROOT} install.{libs,progs,data}
65 rm -rvf %{BUILDROOT}%{libdir}/libtinfo.*
66 make -C widec DESTDIR=%{BUILDROOT} install.{libs,includes,man}
67
68 chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.*
69
70 mkdir -pv %{BUILDROOT}/etc/terminfo
71
72 # don't require -ltinfo when linking with --no-add-needed
73 for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do
74 soname=$(basename $(readlink $l))
75 rm -f $l
76 echo "INPUT($soname -ltinfo)" > $l
77 done
78
79 rm -f %{BUILDROOT}%{libdir}/libcurses{,w}.so
80 echo "INPUT(-lncurses)" > %{BUILDROOT}%{libdir}/libcurses.so
81 echo "INPUT(-lncursesw)" > %{BUILDROOT}%{libdir}/libcursesw.so
82 echo "INPUT(-ltinfo)" > %{BUILDROOT}%{libdir}/libtermcap.so
83
84 rm -vf %{BUILDROOT}%{libdir}/terminfo
85 rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc
86 end
87 end
88
89 packages
90 package %{name}
91
92 package %{name}-libs
93 template LIBS
94
95 requires
96 %{name}-base=%{thisver}
97 end
98 end
99
100 package %{name}-devel
101 template DEVEL
102 end
103
104 package %{name}-term
105 summary = Terminal descriptions for ncurses.
106 description
107 This package contains additional terminal descriptions not found in
108 the ncurses-base package.
109 end
110
111 provides += /usr/share/terminfo
112
113 files
114 /usr/share/terminfo
115 end
116 end
117
118 package %{name}-base
119 summary = Terminal descriptions.
120 description
121 This package contains descriptions of common terminals. Other terminal
122 descriptions are included in the ncurses-term package.
123 end
124
125 conflicts = ncurses<=5.9-1
126
127 files
128 /usr/share/terminfo/*/Eterm*
129 /usr/share/terminfo/*/ansi
130 /usr/share/terminfo/*/aterm
131 /usr/share/terminfo/*/bterm
132 /usr/share/terminfo/*/cons25
133 /usr/share/terminfo/*/cygwin
134 /usr/share/terminfo/*/dumb
135 /usr/share/terminfo/*/eterm*
136 /usr/share/terminfo/*/gnome
137 /usr/share/terminfo/*/gnome-256color
138 /usr/share/terminfo/*/hurd
139 /usr/share/terminfo/*/jfbterm
140 /usr/share/terminfo/*/konsole
141 /usr/share/terminfo/*/konsole-256color
142 /usr/share/terminfo/*/linux
143 /usr/share/terminfo/*/mach*
144 /usr/share/terminfo/*/mlterm
145 /usr/share/terminfo/*/mrxvt
146 /usr/share/terminfo/*/nsterm
147 /usr/share/terminfo/*/putty*
148 /usr/share/terminfo/*/pcansi
149 /usr/share/terminfo/*/rxvt
150 /usr/share/terminfo/*/rxvt-*
151 /usr/share/terminfo/*/screen
152 /usr/share/terminfo/*/screen-*color
153 /usr/share/terminfo/*/screen.*
154 /usr/share/terminfo/*/sun
155 /usr/share/terminfo/*/teraterm
156 /usr/share/terminfo/*/teraterm2.3
157 /usr/share/terminfo/*/vt100
158 /usr/share/terminfo/*/vt100-nav
159 /usr/share/terminfo/*/vt102
160 /usr/share/terminfo/*/vt220
161 /usr/share/terminfo/*/vt52
162 /usr/share/terminfo/*/vte
163 /usr/share/terminfo/*/vte-256color
164 /usr/share/terminfo/*/vwmterm
165 /usr/share/terminfo/*/wsvt25*
166 /usr/share/terminfo/*/xfce
167 /usr/share/terminfo/*/xterm
168 /usr/share/terminfo/*/xterm-*
169 end
170 end
171
172 package %{name}-debuginfo
173 template DEBUGINFO
174 end
175 end