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