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