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