]>
Commit | Line | Data |
---|---|---|
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 |
6 | name = ncurses |
7 | version = 5.9 | |
83460ad1 | 8 | release = 8 |
166a6c21 | 9 | |
802ea3af MT |
10 | groups = System/Base |
11 | url = http://invisible-island.net/ncurses/ncurses.html | |
12 | license = MIT | |
13 | summary = Ncurses support utilities. | |
166a6c21 | 14 | |
802ea3af MT |
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 | |
166a6c21 | 19 | discontinued 4.4 BSD classic curses library. |
802ea3af MT |
20 | end |
21 | ||
22 | source_dl = | |
23 | ||
24 | build | |
25 | requires | |
26 | gcc-c++ | |
27 | end | |
28 | ||
29 | configure_options += \ | |
802ea3af MT |
30 | --with-shared \ |
31 | --without-debug \ | |
e1b31c03 MT |
32 | --without-ada \ |
33 | --with-ospeed=unsigned \ | |
34 | --with-chtype=long \ | |
35 | --enable-hard-tabs \ | |
36 | --enable-xmc-glitch \ | |
37 | --enable-colorfgbg \ | |
83460ad1 | 38 | --with-terminfo-dirs=%{sysconfdir}/terminfo:%{datadir}/terminfo \ |
e1b31c03 MT |
39 | --enable-overwrite \ |
40 | --enable-pc-files \ | |
41 | --with-termlib=tinfo | |
802ea3af | 42 | |
06eef4c6 | 43 | export PKG_CONFIG_LIBDIR=%{libdir}/pkgconfig |
e1b31c03 MT |
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} | |
06eef4c6 | 65 | rm -rvf %{BUILDROOT}%{libdir}/libtinfo.* |
e1b31c03 MT |
66 | make -C widec DESTDIR=%{BUILDROOT} install.{libs,includes,man} |
67 | ||
06eef4c6 | 68 | chmod -v 755 %{BUILDROOT}%{libdir}/lib*.so.*.* |
e1b31c03 | 69 | |
83460ad1 | 70 | mkdir -pv %{BUILDROOT}/etc/terminfo |
e1b31c03 MT |
71 | |
72 | # don't require -ltinfo when linking with --no-add-needed | |
06eef4c6 | 73 | for l in %{BUILDROOT}%{libdir}/libncurses{,w}.so; do |
e1b31c03 MT |
74 | soname=$(basename $(readlink $l)) |
75 | rm -f $l | |
76 | echo "INPUT($soname -ltinfo)" > $l | |
77 | done | |
78 | ||
06eef4c6 MT |
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 | |
802ea3af | 83 | |
06eef4c6 MT |
84 | rm -vf %{BUILDROOT}%{libdir}/terminfo |
85 | rm -vf %{BUILDROOT}%{libdir}/pkgconfig/{*_g,ncurses++*}.pc | |
802ea3af MT |
86 | end |
87 | end | |
88 | ||
89 | packages | |
90 | package %{name} | |
1f9bc2f0 | 91 | |
802ea3af MT |
92 | package %{name}-libs |
93 | template LIBS | |
1f9bc2f0 | 94 | |
802ea3af | 95 | requires |
b98d319e | 96 | %{name}-base=%{thisver} |
802ea3af MT |
97 | end |
98 | end | |
1f9bc2f0 | 99 | |
802ea3af MT |
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 | ||
e5ec988f MT |
111 | provides += /usr/share/terminfo |
112 | ||
802ea3af MT |
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 | ||
e5ec988f MT |
125 | conflicts = ncurses<=5.9-1 |
126 | ||
802ea3af MT |
127 | files |
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 | |
83460ad1 MT |
159 | /usr/share/terminfo/*/xterm |
160 | /usr/share/terminfo/*/xterm-* | |
802ea3af MT |
161 | end |
162 | end | |
1f9bc2f0 MT |
163 | |
164 | package %{name}-debuginfo | |
165 | template DEBUGINFO | |
166 | end | |
802ea3af | 167 | end |