Lines 5-11
Link Here
|
5 |
%include /opt/cendio-build/lib/utils/macros |
5 |
%include /opt/cendio-build/lib/utils/macros |
6 |
|
6 |
|
7 |
%global component fltk |
7 |
%global component fltk |
8 |
%global use_cmake 1 |
|
|
9 |
|
8 |
|
10 |
Name: cendio-build-%{component}-%{_cendio_arch} |
9 |
Name: cendio-build-%{component}-%{_cendio_arch} |
11 |
Summary: %{component} package for Cendio build environment |
10 |
Summary: %{component} package for Cendio build environment |
Lines 32-43
BuildRequires: cendio-build-build%{?native:-native}-%{_cendio_arch}
Link Here
|
32 |
BuildRequires: cendio-build-zlib-%{_cendio_arch} |
31 |
BuildRequires: cendio-build-zlib-%{_cendio_arch} |
33 |
BuildRequires: cendio-build-libpng-%{_cendio_arch} |
32 |
BuildRequires: cendio-build-libpng-%{_cendio_arch} |
34 |
BuildRequires: cendio-build-libjpeg-%{_cendio_arch} |
33 |
BuildRequires: cendio-build-libjpeg-%{_cendio_arch} |
35 |
|
|
|
36 |
%if %{use_cmake} |
37 |
BuildRequires: cendio-build-cmake-%{_cendio_arch} |
34 |
BuildRequires: cendio-build-cmake-%{_cendio_arch} |
38 |
%else |
|
|
39 |
BuildRequires: cendio-build-autoconf-%{_cendio_arch} |
40 |
%endif |
41 |
|
35 |
|
42 |
Requires: cendio-build-base-%{_cendio_arch} |
36 |
Requires: cendio-build-base-%{_cendio_arch} |
43 |
Requires: cendio-build-zlib-%{_cendio_arch} |
37 |
Requires: cendio-build-zlib-%{_cendio_arch} |
Lines 77-95
Requires: cendio-build-libXinerama-%{_cendio_arch}
Link Here
|
77 |
# Enable ABI breaking features |
71 |
# Enable ABI breaking features |
78 |
sed -i 's@^//#define FLTK_ABI_VERSION@#define FLTK_ABI_VERSION@' FL/Enumerations.H |
72 |
sed -i 's@^//#define FLTK_ABI_VERSION@#define FLTK_ABI_VERSION@' FL/Enumerations.H |
79 |
|
73 |
|
80 |
%if ! %{use_cmake} |
|
|
81 |
# We modify configure.in so we need to regenerate it |
82 |
%{cbrun} autoconf |
83 |
%endif |
84 |
|
85 |
# FLTK has a really broken way of determining its platform |
86 |
%if 0%{?windows} |
87 |
sed -i 's%`uname`%MINGW32%' configure |
88 |
%endif |
89 |
%if 0%{?osx} |
90 |
sed -i 's%`uname`%Darwin%' configure |
91 |
%endif |
92 |
|
93 |
# We also need to avoid the tests as they assume that fluid can |
74 |
# We also need to avoid the tests as they assume that fluid can |
94 |
# be executed (which it can't if we're cross compiling |
75 |
# be executed (which it can't if we're cross compiling |
95 |
sed -i 's%fluid test%fluid%' Makefile |
76 |
sed -i 's%fluid test%fluid%' Makefile |
Lines 109-115
export HAVE_PTHREAD=1
Link Here
|
109 |
export OSX_FRAMEWORKS=1 |
90 |
export OSX_FRAMEWORKS=1 |
110 |
%endif |
91 |
%endif |
111 |
|
92 |
|
112 |
%if %{use_cmake} |
|
|
113 |
# Note: Keep Cendio specific flags to the end, since we are |
93 |
# Note: Keep Cendio specific flags to the end, since we are |
114 |
# documenting the rest of the options in the TigerVNC upstream |
94 |
# documenting the rest of the options in the TigerVNC upstream |
115 |
# BUILDING.txt. |
95 |
# BUILDING.txt. |
Lines 119-139
export OSX_FRAMEWORKS=1
Link Here
|
119 |
${HAVE_PTHREAD+-DTHREADS_PTHREAD_ARG=0} \ |
99 |
${HAVE_PTHREAD+-DTHREADS_PTHREAD_ARG=0} \ |
120 |
${OSX_FRAMEWORKS+-DCMAKE_SHARED_LINKER_FLAGS="-framework Cocoa -framework Carbon"} \ |
100 |
${OSX_FRAMEWORKS+-DCMAKE_SHARED_LINKER_FLAGS="-framework Cocoa -framework Carbon"} \ |
121 |
--debug-output |
101 |
--debug-output |
122 |
%else |
|
|
123 |
# I hate silent builds |
124 |
perl -pi -e 's|.SILENT:||g' makeinclude.in |
125 |
%{_cendio_configure} \ |
126 |
--disable-localjpeg \ |
127 |
--disable-localzlib --disable-localpng \ |
128 |
--enable-xft --enable-shared |
129 |
%endif |
130 |
%{_cendio_make} VERBOSE=1 |
102 |
%{_cendio_make} VERBOSE=1 |
131 |
|
103 |
|
132 |
%install |
104 |
%install |
133 |
rm -rf $RPM_BUILD_ROOT |
105 |
rm -rf $RPM_BUILD_ROOT |
134 |
%{_cendio_makeinstall} |
106 |
%{_cendio_makeinstall} |
135 |
|
107 |
|
136 |
%if %{use_cmake} |
|
|
137 |
# When building with cmake, extra cmake files are installed. Get rid |
108 |
# When building with cmake, extra cmake files are installed. Get rid |
138 |
# of them. Unfortunately, the location various depending on platform. |
109 |
# of them. Unfortunately, the location various depending on platform. |
139 |
# Can be /usr/i686-pc-mingw32/sys-root/mingw/CMake or |
110 |
# Can be /usr/i686-pc-mingw32/sys-root/mingw/CMake or |
Lines 170-214
rm -rf $RPM_BUILD_ROOT%{_cendio_archdir}/%{_cendio_prefix}/FLTK
Link Here
|
170 |
rm -rf $RPM_BUILD_ROOT%{_cendio_archdir}/%{_cendio_libdir}/fltk |
141 |
rm -rf $RPM_BUILD_ROOT%{_cendio_archdir}/%{_cendio_libdir}/fltk |
171 |
%endif |
142 |
%endif |
172 |
|
143 |
|
173 |
%else |
|
|
174 |
# FLTK still uses the old foo-config system, which means that the |
175 |
# tool must be reachable via $PATH |
176 |
%if 0%{?crosscompile} |
177 |
mkdir -p $RPM_BUILD_ROOT%{_cendio_archdir}/usr/bin |
178 |
ln -s %{_cendio_bindir}/fltk-config \ |
179 |
$RPM_BUILD_ROOT%{_cendio_archdir}/usr/bin/fltk-config |
180 |
%endif |
181 |
|
182 |
# Autotools installs stuff in legacy cat directories |
183 |
rm -rf $RPM_BUILD_ROOT%{_cendio_archdir}/%{_cendio_mandir}/cat? |
184 |
%endif |
185 |
|
186 |
%clean |
144 |
%clean |
187 |
rm -rf $RPM_BUILD_ROOT |
145 |
rm -rf $RPM_BUILD_ROOT |
188 |
|
146 |
|
189 |
%files |
147 |
%files |
190 |
%defattr(-,root,root) |
148 |
%defattr(-,root,root) |
191 |
%if ! %{use_cmake} |
|
|
192 |
%{_cendio_archdir}/%{_cendio_bindir}/fltk-config |
193 |
%if 0%{?crosscompile} |
194 |
%{_cendio_archdir}/usr/bin/fltk-config |
195 |
%endif |
196 |
%endif |
197 |
|
149 |
|
198 |
# Cmake does not build fluid when cross compiling |
150 |
# Cmake does not build fluid when cross compiling |
199 |
%if ! 0%{?crosscompile} || ! %{use_cmake} |
151 |
%if ! 0%{?crosscompile} |
200 |
%{_cendio_archdir}/%{_cendio_bindir}/fluid* |
152 |
%{_cendio_archdir}/%{_cendio_bindir}/fluid* |
201 |
%endif |
153 |
%endif |
202 |
|
154 |
|
203 |
%if 0%{?windows} |
155 |
%if 0%{?windows} |
204 |
# With Autotools you get mgwfltknox DLL files. With cmake |
|
|
205 |
# you get DLLs with normal names. |
206 |
%if ! %{use_cmake} |
207 |
%{_cendio_archdir}/%{_cendio_bindir}/mgwfltknox*.dll |
208 |
%else |
209 |
%{_cendio_archdir}/%{_cendio_bindir}/libfltk*.dll |
156 |
%{_cendio_archdir}/%{_cendio_bindir}/libfltk*.dll |
210 |
%endif |
157 |
%endif |
211 |
%endif |
|
|
212 |
|
158 |
|
213 |
%{_cendio_archdir}/%{_cendio_includedir}/FL |
159 |
%{_cendio_archdir}/%{_cendio_includedir}/FL |
214 |
|
160 |
|
215 |
- |
|
|
216 |
-- |
217 |
fltk/fltk.spec | 47 ++++----------------- |
161 |
fltk/fltk.spec | 47 ++++----------------- |
218 |
fltk/src/fltk-1.3.3-source.tar.gz | Bin 4986376 -> 0 bytes |
162 |
fltk/src/fltk-1.3.3-source.tar.gz | Bin 4986376 -> 0 bytes |
219 |
fltk/src/fltk-1.3.4-source.tar.bz2 | Bin 0 -> 4535833 bytes |
163 |
fltk/src/fltk-1.3.4-source.tar.bz2 | Bin 0 -> 4535833 bytes |
220 |
fltk/src/fltk-1.3.x-clipbox.patch | 24 ---------- |
164 |
fltk/src/fltk-1.3.x-clipbox.patch | 24 ---------- |
221 |
fltk/src/fltk-1.3.x-crlf.patch | 30 ------------- |
165 |
fltk/src/fltk-1.3.x-crlf.patch | 30 ------------- |
222 |
fltk/src/fltk-1.3.x-libdl.patch | 32 -------------- |
166 |
fltk/src/fltk-1.3.x-libdl.patch | 32 -------------- |
223 |
fltk/src/fltk-1.3.x-net_wm_pid.patch | 34 --------------- |
167 |
fltk/src/fltk-1.3.x-net_wm_pid.patch | 34 --------------- |
224 |
fltk/src/fltk-1.3.x-osx-clip.patch | 77 ---------------------------------- |
168 |
fltk/src/fltk-1.3.x-osx-clip.patch | 77 ---------------------------------- |
225 |
8 files changed, 9 insertions(+), 235 deletions(-) |
169 |
8 files changed, 9 insertions(+), 235 deletions(-) |
226 |
delete mode 100644 fltk/src/fltk-1.3.3-source.tar.gz |
170 |
delete mode 100644 fltk/src/fltk-1.3.3-source.tar.gz |
227 |
create mode 100644 fltk/src/fltk-1.3.4-source.tar.bz2 |
171 |
create mode 100644 fltk/src/fltk-1.3.4-source.tar.bz2 |
228 |
delete mode 100644 fltk/src/fltk-1.3.x-clipbox.patch |
172 |
delete mode 100644 fltk/src/fltk-1.3.x-clipbox.patch |
229 |
delete mode 100644 fltk/src/fltk-1.3.x-crlf.patch |
173 |
delete mode 100644 fltk/src/fltk-1.3.x-crlf.patch |
230 |
delete mode 100644 fltk/src/fltk-1.3.x-libdl.patch |
174 |
delete mode 100644 fltk/src/fltk-1.3.x-libdl.patch |
231 |
delete mode 100644 fltk/src/fltk-1.3.x-net_wm_pid.patch |
175 |
delete mode 100644 fltk/src/fltk-1.3.x-net_wm_pid.patch |
232 |
delete mode 100644 fltk/src/fltk-1.3.x-osx-clip.patch |
176 |
delete mode 100644 fltk/src/fltk-1.3.x-osx-clip.patch |