1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = http://invisible-island.net/ncurses/ncurses.html
13 summary = Ncurses support utilities.
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.
29 configure_options += \
33 --with-ospeed=unsigned \
38 --with-terminfo-dirs=%{sysconfdir}/terminfo:%{datadir}/terminfo \
43 export PKG_CONFIG_LIBDIR=%{libdir}/pkgconfig
46 mkdir -pv narrowc widec
48 # Build narrowc version.
50 ln -svf ../configure .
51 ./configure %{configure_options} --with-ticlib
52 make %{PARALLELISMFLAGS} libs
53 make %{PARALLELISMFLAGS} -C progs
55 # Build widec version.
57 ln -svf ../configure .
58 ./configure %{configure_options} --enable-widec --without-progs
59 make %{PARALLELISMFLAGS} libs
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}
68 chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.*
70 mkdir -pv %{BUILDROOT}/etc/terminfo
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))
76 echo "INPUT($soname -ltinfo)" > $l
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
84 rm -vf %{BUILDROOT}%{libdir}/terminfo
85 rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc
96 %{name}-base=%{thisver}
100 package %{name}-devel
105 summary = Terminal descriptions for ncurses.
107 This package contains additional terminal descriptions not found in
108 the ncurses-base package.
111 provides += /usr/share/terminfo
119 summary = Terminal descriptions.
121 This package contains descriptions of common terminals. Other terminal
122 descriptions are included in the ncurses-term package.
125 conflicts = ncurses<=5.9-1
128 /usr/share/terminfo/*/Eterm*
129 /usr/share/terminfo/*/aterm
130 /usr/share/terminfo/*/bterm
131 /usr/share/terminfo/*/cons25
132 /usr/share/terminfo/*/cygwin
133 /usr/share/terminfo/*/eterm*
134 /usr/share/terminfo/*/gnome
135 /usr/share/terminfo/*/gnome-256color
136 /usr/share/terminfo/*/hurd
137 /usr/share/terminfo/*/jfbterm
138 /usr/share/terminfo/*/konsole
139 /usr/share/terminfo/*/konsole-256color
140 /usr/share/terminfo/*/mach*
141 /usr/share/terminfo/*/mlterm
142 /usr/share/terminfo/*/mrxvt
143 /usr/share/terminfo/*/nsterm
144 /usr/share/terminfo/*/putty*
145 /usr/share/terminfo/*/pcansi
146 /usr/share/terminfo/*/rxvt
147 /usr/share/terminfo/*/rxvt-*
148 /usr/share/terminfo/*/screen
149 /usr/share/terminfo/*/screen-*color
150 /usr/share/terminfo/*/screen.*
151 /usr/share/terminfo/*/sun
152 /usr/share/terminfo/*/teraterm
153 /usr/share/terminfo/*/teraterm2.3
154 /usr/share/terminfo/*/vte
155 /usr/share/terminfo/*/vte-256color
156 /usr/share/terminfo/*/vwmterm
157 /usr/share/terminfo/*/wsvt25*
158 /usr/share/terminfo/*/xfce
159 /usr/share/terminfo/*/xterm
160 /usr/share/terminfo/*/xterm-*
164 package %{name}-debuginfo