| 1 |
Combined patches from git. |
| 2 |
--- /dev/null |
| 3 |
+++ fltk1.3-1.3.11/.gitignore |
| 4 |
@@ -0,0 +1,295 @@ |
| 5 |
+# Start Debian additions |
| 6 |
+/.pc |
| 7 |
+/CMakeTmp |
| 8 |
+/aclocal.m4 |
| 9 |
+/cairo/libfltk_cairo.so* |
| 10 |
+/documentation/doxygen_sqlite3.db |
| 11 |
+# End Debian additions |
| 12 |
+ |
| 13 |
+# ignore file for git - generated from subversion with: |
| 14 |
+# git svn show-ignore |
| 15 |
+ |
| 16 |
+*.o |
| 17 |
+*.exe |
| 18 |
+ |
| 19 |
+# / |
| 20 |
+/autom4te*.cache |
| 21 |
+/clang |
| 22 |
+/config.cache |
| 23 |
+/config.guess |
| 24 |
+/config.h |
| 25 |
+/config.log |
| 26 |
+/config.status |
| 27 |
+/config.sub |
| 28 |
+/configure |
| 29 |
+/fltk-config |
| 30 |
+/fltk.list |
| 31 |
+/fltk.spec |
| 32 |
+/makeinclude |
| 33 |
+/*.bck |
| 34 |
+/TAGS |
| 35 |
+ |
| 36 |
+# /FL |
| 37 |
+/FL/abi-version.h |
| 38 |
+/FL/Makefile |
| 39 |
+/FL/*.bck |
| 40 |
+ |
| 41 |
+# /documentation/ |
| 42 |
+/documentation/.xvpics |
| 43 |
+/documentation/blocks.0 |
| 44 |
+/documentation/blocks.6 |
| 45 |
+/documentation/blocks.z |
| 46 |
+/documentation/checkers.0 |
| 47 |
+/documentation/checkers.6 |
| 48 |
+/documentation/checkers.z |
| 49 |
+/documentation/Doxybook |
| 50 |
+/documentation/Doxyfile |
| 51 |
+/documentation/fltk.0 |
| 52 |
+/documentation/fltk.3 |
| 53 |
+/documentation/fltk-config.0 |
| 54 |
+/documentation/fltk-config.1 |
| 55 |
+/documentation/fltk-config.z |
| 56 |
+/documentation/fltk.d |
| 57 |
+/documentation/fltk.pdf |
| 58 |
+/documentation/fltk.z |
| 59 |
+/documentation/fluid.0 |
| 60 |
+/documentation/fluid.1 |
| 61 |
+/documentation/fluid.z |
| 62 |
+/documentation/html |
| 63 |
+/documentation/latex |
| 64 |
+/documentation/sudoku.0 |
| 65 |
+/documentation/sudoku.6 |
| 66 |
+/documentation/sudoku.z |
| 67 |
+/documentation/*.bck |
| 68 |
+/documentation/*.bak |
| 69 |
+/documentation/*.log |
| 70 |
+ |
| 71 |
+# /documentation/src/ |
| 72 |
+/documentation/src/*.0 |
| 73 |
+/documentation/src/*.1 |
| 74 |
+/documentation/src/*.3 |
| 75 |
+/documentation/src/*.6 |
| 76 |
+/documentation/src/*.z |
| 77 |
+/documentation/src/fltk-book.tex |
| 78 |
+ |
| 79 |
+# /examples/ |
| 80 |
+/examples/*.exe |
| 81 |
+/examples/clipboard |
| 82 |
+/examples/fltk-versions |
| 83 |
+/examples/howto-add_fd-and-popen |
| 84 |
+/examples/howto-browser-with-icons |
| 85 |
+/examples/howto-drag-and-drop |
| 86 |
+/examples/howto-parse-args |
| 87 |
+/examples/howto-text-over-image-button |
| 88 |
+/examples/menubar-add |
| 89 |
+/examples/nativefilechooser-simple-app |
| 90 |
+/examples/progress-simple |
| 91 |
+/examples/shapedwindow |
| 92 |
+/examples/table-as-container |
| 93 |
+/examples/table-simple |
| 94 |
+/examples/table-sort |
| 95 |
+/examples/table-spreadsheet |
| 96 |
+/examples/table-spreadsheet-with-keyboard-nav |
| 97 |
+/examples/table-with-keynav |
| 98 |
+/examples/tabs-simple |
| 99 |
+/examples/textdisplay-with-colors |
| 100 |
+/examples/texteditor-simple |
| 101 |
+/examples/tree-as-container |
| 102 |
+/examples/tree-custom-draw-items |
| 103 |
+/examples/tree-custom-sort |
| 104 |
+/examples/tree-of-tables |
| 105 |
+/examples/tree-simple |
| 106 |
+/examples/wizard-simple |
| 107 |
+ |
| 108 |
+# /fluid/ |
| 109 |
+/fluid/fluid |
| 110 |
+/fluid/fluid-shared |
| 111 |
+/fluid/*.bck |
| 112 |
+/fluid/*.exe |
| 113 |
+/fluid/*.ilk |
| 114 |
+/fluid/*.pdb |
| 115 |
+/fluid/TAGS |
| 116 |
+ |
| 117 |
+# /fluid/fluid.app/Contents/MacOS/ |
| 118 |
+/fluid/fluid.app/Contents/MacOS/fluid |
| 119 |
+ |
| 120 |
+# /fluid/pixmaps/ |
| 121 |
+/fluid/pixmaps/*.bck |
| 122 |
+ |
| 123 |
+# /ide/VisualC2008/ |
| 124 |
+/ide/VisualC2008/fltk.ncb |
| 125 |
+/ide/VisualC2008/*.pdb |
| 126 |
+/ide/VisualC2008/*.user |
| 127 |
+/ide/VisualC2008/*_/ |
| 128 |
+/ide/VisualC2008/*__0/ |
| 129 |
+/ide/VisualC2008/fltkdll/ |
| 130 |
+/ide/VisualC2008/fltkdlld/ |
| 131 |
+/ide/VisualC2008/Debug/ |
| 132 |
+/ide/VisualC2008/Debug Cairo/ |
| 133 |
+/ide/VisualC2008/Release/ |
| 134 |
+/ide/VisualC2008/Release Cairo/ |
| 135 |
+ |
| 136 |
+# /ide/VisualC2010/ |
| 137 |
+/ide/VisualC2010/*.user |
| 138 |
+/ide/VisualC2010/*_debug/ |
| 139 |
+/ide/VisualC2010/*_release/ |
| 140 |
+/ide/VisualC2010/fltk.*sdf |
| 141 |
+/ide/VisualC2010/fltk.suo |
| 142 |
+/ide/VisualC2010/fltkdlld.pdb |
| 143 |
+/ide/VisualC2010/fltkdll/ |
| 144 |
+/ide/VisualC2010/fltkdlld/ |
| 145 |
+/ide/VisualC2010/Debug/ |
| 146 |
+/ide/VisualC2010/Debug Cairo/ |
| 147 |
+/ide/VisualC2010/Release/ |
| 148 |
+/ide/VisualC2010/Release Cairo/ |
| 149 |
+ |
| 150 |
+# /ide/Xcode3/ |
| 151 |
+/ide/Xcode3/build |
| 152 |
+ |
| 153 |
+# /ide/Xcode3/FLTK.xcodeproj/ |
| 154 |
+/ide/Xcode3/FLTK.xcodeproj/*.pbxuser |
| 155 |
+/ide/Xcode3/FLTK.xcodeproj/*.perspectivev3 |
| 156 |
+ |
| 157 |
+# /ide/Xcode4/ |
| 158 |
+/ide/Xcode4/build |
| 159 |
+ |
| 160 |
+# /ide/Xcode4/FLTK.xcodeproj/ |
| 161 |
+/ide/Xcode4/FLTK.xcodeproj/*.pbxuser |
| 162 |
+/ide/Xcode4/FLTK.xcodeproj/*.perspectivev3 |
| 163 |
+ |
| 164 |
+# /lib/ |
| 165 |
+/lib/lib* |
| 166 |
+/lib/*.lib |
| 167 |
+/lib/*.a |
| 168 |
+/lib/*.bsc |
| 169 |
+ |
| 170 |
+# /misc/ |
| 171 |
+/misc/doxystar |
| 172 |
+ |
| 173 |
+# /src/ |
| 174 |
+/src/*.so* |
| 175 |
+/src/*.sl* |
| 176 |
+/src/*.a |
| 177 |
+/src/*.bck |
| 178 |
+/src/*.sav |
| 179 |
+/src/*.dylib |
| 180 |
+ |
| 181 |
+# /test/ |
| 182 |
+/test/*.pdb |
| 183 |
+/test/CubeView |
| 184 |
+/test/CubeViewUI.cxx |
| 185 |
+/test/CubeViewUI.h |
| 186 |
+/test/adjuster |
| 187 |
+/test/animated |
| 188 |
+/test/arc |
| 189 |
+/test/ask |
| 190 |
+/test/bitmap |
| 191 |
+/test/blocks |
| 192 |
+/test/boxtype |
| 193 |
+/test/browser |
| 194 |
+/test/button |
| 195 |
+/test/buttons |
| 196 |
+/test/cairo_test |
| 197 |
+/test/checkers |
| 198 |
+/test/clock |
| 199 |
+/test/colbrowser |
| 200 |
+/test/color_chooser |
| 201 |
+/test/cube |
| 202 |
+/test/cursor |
| 203 |
+/test/curve |
| 204 |
+/test/demo |
| 205 |
+/test/device |
| 206 |
+/test/doublebuffer |
| 207 |
+/test/editor |
| 208 |
+/test/fast_slow |
| 209 |
+/test/fast_slow.cxx |
| 210 |
+/test/fast_slow.h |
| 211 |
+/test/file_chooser |
| 212 |
+/test/fonts |
| 213 |
+/test/forms |
| 214 |
+/test/fractals |
| 215 |
+/test/fullscreen |
| 216 |
+/test/gl_overlay |
| 217 |
+/test/glpuzzle |
| 218 |
+/test/hello |
| 219 |
+/test/help |
| 220 |
+/test/icon |
| 221 |
+/test/iconize |
| 222 |
+/test/image |
| 223 |
+/test/inactive |
| 224 |
+/test/inactive.cxx |
| 225 |
+/test/inactive.h |
| 226 |
+/test/input |
| 227 |
+/test/input_choice |
| 228 |
+/test/keyboard |
| 229 |
+/test/keyboard_ui.cxx |
| 230 |
+/test/keyboard_ui.h |
| 231 |
+/test/label |
| 232 |
+/test/line_style |
| 233 |
+/test/list_visuals |
| 234 |
+/test/mandelbrot |
| 235 |
+/test/mandelbrot_ui.cxx |
| 236 |
+/test/mandelbrot_ui.h |
| 237 |
+/test/menubar |
| 238 |
+/test/message |
| 239 |
+/test/minimum |
| 240 |
+/test/native-filechooser |
| 241 |
+/test/navigation |
| 242 |
+/test/offscreen |
| 243 |
+/test/output |
| 244 |
+/test/overlay |
| 245 |
+/test/pack |
| 246 |
+/test/pixmap |
| 247 |
+/test/pixmap_browser |
| 248 |
+/test/preferences |
| 249 |
+/test/preferences.cxx |
| 250 |
+/test/preferences.h |
| 251 |
+/test/print |
| 252 |
+/test/radio |
| 253 |
+/test/radio.cxx |
| 254 |
+/test/radio.h |
| 255 |
+/test/resize |
| 256 |
+/test/resize.cxx |
| 257 |
+/test/resize.h |
| 258 |
+/test/resizebox |
| 259 |
+/test/rotated_text |
| 260 |
+/test/scroll |
| 261 |
+/test/shape |
| 262 |
+/test/shiny |
| 263 |
+/test/shiny_panel.cxx |
| 264 |
+/test/shiny_panel.h |
| 265 |
+/test/subwindow |
| 266 |
+/test/sudoku |
| 267 |
+/test/symbols |
| 268 |
+/test/table |
| 269 |
+/test/tabs |
| 270 |
+/test/tabs.cxx |
| 271 |
+/test/tabs.h |
| 272 |
+/test/threads |
| 273 |
+/test/tile |
| 274 |
+/test/tiled_image |
| 275 |
+/test/tree |
| 276 |
+/test/tree.cxx |
| 277 |
+/test/tree.h |
| 278 |
+/test/twowin |
| 279 |
+/test/unittests |
| 280 |
+/test/utf8 |
| 281 |
+/test/valuators |
| 282 |
+/test/valuators.cxx |
| 283 |
+/test/valuators.h |
| 284 |
+/test/windowfocus |
| 285 |
+/test/*.bck |
| 286 |
+/test/*.exe |
| 287 |
+/test/*.ilk |
| 288 |
+/test/fltk*.lib |
| 289 |
+/test/fltk*.exp |
| 290 |
+/test/fltk*.dll |
| 291 |
+ |
| 292 |
+# /test/blocks.app/Contents/MacOS/ |
| 293 |
+/test/blocks.app/Contents/MacOS/blocks |
| 294 |
+ |
| 295 |
+# /test/checkers.app/Contents/MacOS/ |
| 296 |
+/test/checkers.app/Contents/MacOS/checkers |
| 297 |
+ |
| 298 |
+# /test/sudoku.app/Contents/MacOS/ |
| 299 |
+/test/sudoku.app/Contents/MacOS/sudoku |
| 300 |
--- fltk1.3-1.3.11.orig/CMake/UseFLTK.cmake.in |
| 301 |
+++ fltk1.3-1.3.11/CMake/UseFLTK.cmake.in |
| 302 |
@@ -6,8 +6,6 @@ |
| 303 |
# automatically generated - do not edit |
| 304 |
# |
| 305 |
|
| 306 |
-include_directories("@FLTK_INCLUDE_DIRS@") |
| 307 |
- |
| 308 |
message(AUTHOR_WARNING |
| 309 |
" * Warning: UseFLTK.cmake is deprecated and will be removed in FLTK 1.4.0 |
| 310 |
* or later. Please use 'include_directories(\${FLTK_INCLUDE_DIRS})' or |
| 311 |
--- fltk1.3-1.3.11.orig/Makefile |
| 312 |
+++ fltk1.3-1.3.11/Makefile |
| 313 |
@@ -101,8 +101,8 @@ makeinclude: configure configh.in makein |
| 314 |
touch config.h |
| 315 |
chmod +x fltk-config |
| 316 |
|
| 317 |
-configure: configure.ac |
| 318 |
- autoconf |
| 319 |
+# configure: configure.ac |
| 320 |
+# autoconf |
| 321 |
|
| 322 |
config.guess config.sub: |
| 323 |
-automake --add-missing 2> /dev/null |
| 324 |
--- fltk1.3-1.3.11.orig/cairo/Makefile |
| 325 |
+++ fltk1.3-1.3.11/cairo/Makefile |
| 326 |
@@ -21,6 +21,8 @@ |
| 327 |
FLTKFLAGS = -DFL_LIBRARY |
| 328 |
include ../makeinclude |
| 329 |
|
| 330 |
+CXXFLAGS := $(CXXFLAGS:-fPIE=-fPIC) |
| 331 |
+ |
| 332 |
# |
| 333 |
# Object files... |
| 334 |
# |
| 335 |
--- fltk1.3-1.3.11.orig/configure |
| 336 |
+++ fltk1.3-1.3.11/configure |
| 337 |
@@ -732,6 +732,9 @@ FL_DSO_VERSION |
| 338 |
FLTK_VERSION_PATCH |
| 339 |
FLTK_VERSION_MINOR |
| 340 |
FLTK_VERSION_MAJOR |
| 341 |
+PKG_CONFIG_LIBDIR |
| 342 |
+PKG_CONFIG_PATH |
| 343 |
+PKG_CONFIG |
| 344 |
ac_ct_CXX |
| 345 |
CXXFLAGS |
| 346 |
CXX |
| 347 |
@@ -828,6 +831,9 @@ CPPFLAGS |
| 348 |
CXX |
| 349 |
CXXFLAGS |
| 350 |
CCC |
| 351 |
+PKG_CONFIG |
| 352 |
+PKG_CONFIG_PATH |
| 353 |
+PKG_CONFIG_LIBDIR |
| 354 |
XMKMF |
| 355 |
CPP' |
| 356 |
|
| 357 |
@@ -1495,6 +1501,11 @@ Some influential environment variables: |
| 358 |
you have headers in a nonstandard directory <include dir> |
| 359 |
CXX C++ compiler command |
| 360 |
CXXFLAGS C++ compiler flags |
| 361 |
+ PKG_CONFIG path to pkg-config utility |
| 362 |
+ PKG_CONFIG_PATH |
| 363 |
+ directories to add to pkg-config's search path |
| 364 |
+ PKG_CONFIG_LIBDIR |
| 365 |
+ path overriding pkg-config's built-in search path |
| 366 |
XMKMF Path to xmkmf, Makefile generator for X Window System |
| 367 |
CPP C preprocessor |
| 368 |
|
| 369 |
@@ -4521,6 +4532,126 @@ ac_link='$CC -o conftest$ac_exeext $CFLA |
| 370 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 371 |
|
| 372 |
|
| 373 |
+ |
| 374 |
+ |
| 375 |
+ |
| 376 |
+ |
| 377 |
+ |
| 378 |
+ |
| 379 |
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 380 |
+ if test -n "$ac_tool_prefix"; then |
| 381 |
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 382 |
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 383 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 384 |
+$as_echo_n "checking for $ac_word... " >&6; } |
| 385 |
+if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| 386 |
+ $as_echo_n "(cached) " >&6 |
| 387 |
+else |
| 388 |
+ case $PKG_CONFIG in |
| 389 |
+ [\\/]* | ?:[\\/]*) |
| 390 |
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 391 |
+ ;; |
| 392 |
+ *) |
| 393 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 394 |
+for as_dir in $PATH |
| 395 |
+do |
| 396 |
+ IFS=$as_save_IFS |
| 397 |
+ test -z "$as_dir" && as_dir=. |
| 398 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 399 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 400 |
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 401 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 402 |
+ break 2 |
| 403 |
+ fi |
| 404 |
+done |
| 405 |
+ done |
| 406 |
+IFS=$as_save_IFS |
| 407 |
+ |
| 408 |
+ ;; |
| 409 |
+esac |
| 410 |
+fi |
| 411 |
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 412 |
+if test -n "$PKG_CONFIG"; then |
| 413 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 414 |
+$as_echo "$PKG_CONFIG" >&6; } |
| 415 |
+else |
| 416 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 417 |
+$as_echo "no" >&6; } |
| 418 |
+fi |
| 419 |
+ |
| 420 |
+ |
| 421 |
+fi |
| 422 |
+if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 423 |
+ ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 424 |
+ # Extract the first word of "pkg-config", so it can be a program name with args. |
| 425 |
+set dummy pkg-config; ac_word=$2 |
| 426 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 427 |
+$as_echo_n "checking for $ac_word... " >&6; } |
| 428 |
+if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| 429 |
+ $as_echo_n "(cached) " >&6 |
| 430 |
+else |
| 431 |
+ case $ac_pt_PKG_CONFIG in |
| 432 |
+ [\\/]* | ?:[\\/]*) |
| 433 |
+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 434 |
+ ;; |
| 435 |
+ *) |
| 436 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 437 |
+for as_dir in $PATH |
| 438 |
+do |
| 439 |
+ IFS=$as_save_IFS |
| 440 |
+ test -z "$as_dir" && as_dir=. |
| 441 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 442 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 443 |
+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 444 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 445 |
+ break 2 |
| 446 |
+ fi |
| 447 |
+done |
| 448 |
+ done |
| 449 |
+IFS=$as_save_IFS |
| 450 |
+ |
| 451 |
+ ;; |
| 452 |
+esac |
| 453 |
+fi |
| 454 |
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 455 |
+if test -n "$ac_pt_PKG_CONFIG"; then |
| 456 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 457 |
+$as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 458 |
+else |
| 459 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 460 |
+$as_echo "no" >&6; } |
| 461 |
+fi |
| 462 |
+ |
| 463 |
+ if test "x$ac_pt_PKG_CONFIG" = x; then |
| 464 |
+ PKG_CONFIG="" |
| 465 |
+ else |
| 466 |
+ case $cross_compiling:$ac_tool_warned in |
| 467 |
+yes:) |
| 468 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 469 |
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 470 |
+ac_tool_warned=yes ;; |
| 471 |
+esac |
| 472 |
+ PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 473 |
+ fi |
| 474 |
+else |
| 475 |
+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 476 |
+fi |
| 477 |
+ |
| 478 |
+fi |
| 479 |
+if test -n "$PKG_CONFIG"; then |
| 480 |
+ _pkg_min_version=0.9.0 |
| 481 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 482 |
+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 483 |
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 484 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 485 |
+$as_echo "yes" >&6; } |
| 486 |
+ else |
| 487 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 488 |
+$as_echo "no" >&6; } |
| 489 |
+ PKG_CONFIG="" |
| 490 |
+ fi |
| 491 |
+fi |
| 492 |
+ |
| 493 |
case $host_os in |
| 494 |
darwin*) |
| 495 |
if test "x$with_archflags" != x ; then |
| 496 |
@@ -4619,7 +4750,7 @@ if test x$enable_cairoext = xyes; then |
| 497 |
printf "%s\n" "#define FLTK_HAVE_CAIRO 1" >>confdefs.h |
| 498 |
|
| 499 |
CAIRODIR="cairo" |
| 500 |
- CAIROFLAGS="`pkg-config --cflags cairo`" |
| 501 |
+ CAIROFLAGS="`$PKG_CONFIG --cflags cairo`" |
| 502 |
CAIROLIBS="-lcairo -lpixman-1" |
| 503 |
CXXFLAGS="$CAIROFLAGS $CXXFLAGS" |
| 504 |
LINKFLTKCAIRO="../lib/libfltk_cairo.a" |
| 505 |
@@ -4631,7 +4762,7 @@ else |
| 506 |
printf "%s\n" "#define FLTK_HAVE_CAIRO 1" >>confdefs.h |
| 507 |
|
| 508 |
CAIRODIR="cairo" |
| 509 |
- CAIROFLAGS="`pkg-config --cflags cairo`" |
| 510 |
+ CAIROFLAGS="`$PKG_CONFIG --cflags cairo`" |
| 511 |
CAIROLIBS="-lcairo -lpixman-1" |
| 512 |
CXXFLAGS="$CAIROFLAGS $CXXFLAGS" |
| 513 |
LINKFLTKCAIRO="../lib/libfltk_cairo.a" |
| 514 |
@@ -4886,9 +5017,9 @@ printf "%s\n" "$ac_cv_cxx_fvisibility_in |
| 515 |
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 516 |
fi |
| 517 |
|
| 518 |
- if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then |
| 519 |
- DSOLINK="-Wl,-rpath,$libdir" |
| 520 |
- fi |
| 521 |
+# if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then |
| 522 |
+# DSOLINK="-Wl,-rpath,$libdir" |
| 523 |
+# fi |
| 524 |
;; |
| 525 |
aix*) |
| 526 |
DSONAME="libfltk_s.a" |
| 527 |
@@ -8587,8 +8718,9 @@ fi |
| 528 |
xft_found=no |
| 529 |
if test x$enable_xft != xno; then |
| 530 |
# Try pkg-config first (freetype2 deprecated freetype-config from some version on) |
| 531 |
- # Extract the first word of "pkg-config", so it can be a program name with args. |
| 532 |
-set dummy pkg-config; ac_word=$2 |
| 533 |
+ if test -n "$ac_tool_prefix"; then |
| 534 |
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 535 |
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 536 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 537 |
printf %s "checking for $ac_word... " >&6; } |
| 538 |
if test ${ac_cv_path_PKGCONFIG+y} |
| 539 |
@@ -8632,6 +8764,63 @@ printf "%s\n" "no" >&6; } |
| 540 |
fi |
| 541 |
|
| 542 |
|
| 543 |
+fi |
| 544 |
+if test -z "$ac_cv_path_PKGCONFIG"; then |
| 545 |
+ ac_pt_PKGCONFIG=$PKGCONFIG |
| 546 |
+ # Extract the first word of "pkg-config", so it can be a program name with args. |
| 547 |
+set dummy pkg-config; ac_word=$2 |
| 548 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 549 |
+$as_echo_n "checking for $ac_word... " >&6; } |
| 550 |
+if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 551 |
+ $as_echo_n "(cached) " >&6 |
| 552 |
+else |
| 553 |
+ case $ac_pt_PKGCONFIG in |
| 554 |
+ [\\/]* | ?:[\\/]*) |
| 555 |
+ ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 556 |
+ ;; |
| 557 |
+ *) |
| 558 |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 559 |
+for as_dir in $PATH |
| 560 |
+do |
| 561 |
+ IFS=$as_save_IFS |
| 562 |
+ test -z "$as_dir" && as_dir=. |
| 563 |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
| 564 |
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 565 |
+ ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 566 |
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 567 |
+ break 2 |
| 568 |
+ fi |
| 569 |
+done |
| 570 |
+ done |
| 571 |
+IFS=$as_save_IFS |
| 572 |
+ |
| 573 |
+ ;; |
| 574 |
+esac |
| 575 |
+fi |
| 576 |
+ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 577 |
+if test -n "$ac_pt_PKGCONFIG"; then |
| 578 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 579 |
+$as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 580 |
+else |
| 581 |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 582 |
+$as_echo "no" >&6; } |
| 583 |
+fi |
| 584 |
+ |
| 585 |
+ if test "x$ac_pt_PKGCONFIG" = x; then |
| 586 |
+ PKGCONFIG="" |
| 587 |
+ else |
| 588 |
+ case $cross_compiling:$ac_tool_warned in |
| 589 |
+yes:) |
| 590 |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 591 |
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 592 |
+ac_tool_warned=yes ;; |
| 593 |
+esac |
| 594 |
+ PKGCONFIG=$ac_pt_PKGCONFIG |
| 595 |
+ fi |
| 596 |
+else |
| 597 |
+ PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 598 |
+fi |
| 599 |
+ |
| 600 |
FT_FLAGS="" |
| 601 |
if test "x$PKGCONFIG" != x; then |
| 602 |
FT_FLAGS="`$PKGCONFIG --cflags xft`" |
| 603 |
@@ -9562,7 +9751,7 @@ case $host_os in |
| 604 |
printf "%s\n" "#define FLTK_DOCDIR \"/usr/local/share/doc/fltk\"" >>confdefs.h |
| 605 |
|
| 606 |
else |
| 607 |
- printf "%s\n" "#define FLTK_DOCDIR \"$prefix/share/doc/fltk\"" >>confdefs.h |
| 608 |
+ printf "%s\n" "#define FLTK_DOCDIR \"$prefix/share/doc/fltk1.3-doc/HTML\"" >>confdefs.h |
| 609 |
|
| 610 |
fi |
| 611 |
;; |
| 612 |
--- fltk1.3-1.3.11.orig/configure.ac |
| 613 |
+++ fltk1.3-1.3.11/configure.ac |
| 614 |
@@ -38,6 +38,7 @@ OPTIM="${OPTIM:=}" |
| 615 |
dnl Find compiler commands... |
| 616 |
AC_PROG_CC |
| 617 |
AC_PROG_CXX |
| 618 |
+PKG_PROG_PKG_CONFIG |
| 619 |
|
| 620 |
dnl So --with-archflags option is used during "checking size of long" |
| 621 |
case $host_os in |
| 622 |
@@ -124,7 +125,7 @@ if test x$enable_cairoext = xyes; then |
| 623 |
dnl FIXME This part should be fixed so configure do not depend on |
| 624 |
dnl we do not rely on pkg-config . |
| 625 |
CAIRODIR="cairo" |
| 626 |
- CAIROFLAGS="`pkg-config --cflags cairo`" |
| 627 |
+ CAIROFLAGS="`$PKG_CONFIG --cflags cairo`" |
| 628 |
CAIROLIBS="-lcairo -lpixman-1" |
| 629 |
CXXFLAGS="$CAIROFLAGS $CXXFLAGS" |
| 630 |
LINKFLTKCAIRO="../lib/libfltk_cairo.a" |
| 631 |
@@ -138,7 +139,7 @@ else |
| 632 |
dnl FIXME This part should be fixed so configure do not depend on |
| 633 |
dnl we do not rely on pkg-config . |
| 634 |
CAIRODIR="cairo" |
| 635 |
- CAIROFLAGS="`pkg-config --cflags cairo`" |
| 636 |
+ CAIROFLAGS="`$PKG_CONFIG --cflags cairo`" |
| 637 |
CAIROLIBS="-lcairo -lpixman-1" |
| 638 |
CXXFLAGS="$CAIROFLAGS $CXXFLAGS" |
| 639 |
LINKFLTKCAIRO="../lib/libfltk_cairo.a" |
| 640 |
@@ -302,9 +303,9 @@ if test x$enable_shared = xyes; then |
| 641 |
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 642 |
fi |
| 643 |
|
| 644 |
- if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then |
| 645 |
- DSOLINK="-Wl,-rpath,$libdir" |
| 646 |
- fi |
| 647 |
+# if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib64"; then |
| 648 |
+# DSOLINK="-Wl,-rpath,$libdir" |
| 649 |
+# fi |
| 650 |
;; |
| 651 |
aix*) |
| 652 |
DSONAME="libfltk_s.a" |
| 653 |
@@ -1035,7 +1036,7 @@ case $host_os_gui in |
| 654 |
xft_found=no |
| 655 |
if test x$enable_xft != xno; then |
| 656 |
# Try pkg-config first (freetype2 deprecated freetype-config from some version on) |
| 657 |
- AC_PATH_PROG(PKGCONFIG, pkg-config) |
| 658 |
+ AC_PATH_TOOL(PKGCONFIG, pkg-config) |
| 659 |
FT_FLAGS="" |
| 660 |
if test "x$PKGCONFIG" != x; then |
| 661 |
FT_FLAGS="`$PKGCONFIG --cflags xft`" |
| 662 |
@@ -1498,7 +1499,7 @@ case $host_os in |
| 663 |
if test x$prefix = xNONE; then |
| 664 |
AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "/usr/local/share/doc/fltk") |
| 665 |
else |
| 666 |
- AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "$prefix/share/doc/fltk") |
| 667 |
+ AC_DEFINE_UNQUOTED(FLTK_DOCDIR, "$prefix/share/doc/fltk1.3-doc/HTML") |
| 668 |
fi |
| 669 |
;; |
| 670 |
esac |
| 671 |
--- fltk1.3-1.3.11.orig/documentation/Doxyfile.in |
| 672 |
+++ fltk1.3-1.3.11/documentation/Doxyfile.in |
| 673 |
@@ -1025,6 +1025,17 @@ EXTRA_PACKAGES = |
| 674 |
|
| 675 |
LATEX_HEADER = @LATEX_HEADER@ |
| 676 |
|
| 677 |
+# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined |
| 678 |
+# LaTeX style sheets that are included after the standard style sheets created |
| 679 |
+# by doxygen. Using this option one can overrule certain style aspects. Doxygen |
| 680 |
+# will copy the style sheet files to the output directory. |
| 681 |
+# Note: The order of the extra style sheet files is of importance (e.g. the last |
| 682 |
+# style sheet in the list overrules the setting of the previous ones in the |
| 683 |
+# list). |
| 684 |
+# This tag requires that the tag GENERATE_LATEX is set to YES. |
| 685 |
+ |
| 686 |
+LATEX_EXTRA_STYLESHEET = latex-extras.sty |
| 687 |
+ |
| 688 |
# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated |
| 689 |
# is prepared for conversion to pdf (using ps2pdf). The pdf file will |
| 690 |
# contain links (just like the HTML output) instead of page references |
| 691 |
--- fltk1.3-1.3.11.orig/documentation/Makefile |
| 692 |
+++ fltk1.3-1.3.11/documentation/Makefile |
| 693 |
@@ -52,6 +52,8 @@ MANPAGES = $(SRC_DOCDIR)/fltk.$(CAT3EXT) |
| 694 |
$(SRC_DOCDIR)/fluid.$(CAT1EXT) $(SRC_DOCDIR)/blocks.$(CAT6EXT) \ |
| 695 |
$(SRC_DOCDIR)/checkers.$(CAT6EXT) $(SRC_DOCDIR)/sudoku.$(CAT6EXT) |
| 696 |
|
| 697 |
+export DEB_DATE := $(shell cd .. && dpkg-parsechangelog -S Date) |
| 698 |
+ |
| 699 |
all: $(MANPAGES) |
| 700 |
|
| 701 |
# Use `make docs' to create all docs for distribution files. |
| 702 |
@@ -75,10 +77,10 @@ depend: |
| 703 |
|
| 704 |
install: $(MANPAGES) |
| 705 |
echo "Installing documentation files in $(DESTDIR)$(docdir) ..." |
| 706 |
- -$(INSTALL_DIR) $(DESTDIR)$(docdir) |
| 707 |
+ -$(INSTALL_DIR) $(DESTDIR)$(docdir)/HTML |
| 708 |
if test -f html/index.html ; then \ |
| 709 |
for file in html/* ; do \ |
| 710 |
- $(INSTALL_DATA) $$file $(DESTDIR)$(docdir); \ |
| 711 |
+ $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/HTML; \ |
| 712 |
done \ |
| 713 |
fi |
| 714 |
if test -f fltk.pdf ; then \ |
| 715 |
@@ -173,19 +175,23 @@ html: $(HTMLFILES) Doxyfile |
| 716 |
pdf: refman.pdf |
| 717 |
cp -f latex/refman.pdf fltk.pdf |
| 718 |
|
| 719 |
-refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex |
| 720 |
+refman.pdf: $(HTMLFILES) Doxybook src/fltk-book.tex latex-extras.sty |
| 721 |
-$(RMDIR) latex |
| 722 |
echo "Generating PDF documentation ..." |
| 723 |
$(DOXYDOC) Doxybook |
| 724 |
./make_pdf |
| 725 |
+ MD5=`(echo $(DEB_DATE) && du -b $@) | md5sum | cut -c -32` && \ |
| 726 |
+ sed -i "s|^/ID \\[\\(<[0-9A-F]\\{32\\}>\\) \\1]$$|/ID [<$$MD5> <$$MD5>]|" $@ |
| 727 |
|
| 728 |
src/fltk-book.tex: src/fltk-book.tex.in |
| 729 |
echo "Generating $@ ..." |
| 730 |
DOXY_VERSION=`$(DOXYDOC) --version|cut -f1 -d' '`; \ |
| 731 |
- YEAR=`date +%Y`; \ |
| 732 |
+ YEAR=`date -ud'$(DEB_DATE)' +%Y`; \ |
| 733 |
+ TODAY=`LC_ALL=C date -ud'$(DEB_DATE)' +'%B %e, %Y'`; \ |
| 734 |
sed -e"s/@YEAR@/$$YEAR/g" \ |
| 735 |
-e"s/@FLTK_VERSION@/$(FLTK_VERSION)/g" \ |
| 736 |
-e"s/@DOXY_VERSION@/$$DOXY_VERSION/g" \ |
| 737 |
+ -e"s/\\\\today{}/$$TODAY/g" \ |
| 738 |
< $< > $@ |
| 739 |
|
| 740 |
src/fltk-book.tex.in: src/fltk-title.tex.in |
| 741 |
--- /dev/null |
| 742 |
+++ fltk1.3-1.3.11/documentation/latex-extras.sty |
| 743 |
@@ -0,0 +1,22 @@ |
| 744 |
+\usepackage{fontawesome5} |
| 745 |
+ |
| 746 |
+% \insert@column from .../latex/tools/array-2016-10-06.sty through |
| 747 |
+% .../array-2023-11-01.sty with a \relax added to the end of the |
| 748 |
+% first line per the only applicable difference between current |
| 749 |
+% array.sty's \insert@column and \insert@pcolumn. |
| 750 |
+\providecommand{\insert@pcolumn}{% |
| 751 |
+ \the@toks \the \@tempcnta \relax |
| 752 |
+ \ignorespaces \@sharp \unskip |
| 753 |
+ \the@toks \the \count@ \relax} |
| 754 |
+ |
| 755 |
+\DeclareUnicodeCharacter{02DA}{\r{}} |
| 756 |
+\DeclareUnicodeCharacter{0394}{\ensuremath{\Delta}} |
| 757 |
+\DeclareUnicodeCharacter{2202}{\ensuremath{\partial}} |
| 758 |
+\DeclareUnicodeCharacter{2211}{\ensuremath{\sum}} |
| 759 |
+\DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
| 760 |
+\DeclareUnicodeCharacter{221E}{\ensuremath{\infty}} |
| 761 |
+\DeclareUnicodeCharacter{2260}{\ensuremath{\ne}} |
| 762 |
+\DeclareUnicodeCharacter{2264}{\ensuremath{\le}} |
| 763 |
+\DeclareUnicodeCharacter{2265}{\ensuremath{\ge}} |
| 764 |
+\DeclareUnicodeCharacter{25CA}{\ensuremath{\lozenge}} |
| 765 |
+\DeclareUnicodeCharacter{F8FF}{\faApple} |
| 766 |
--- fltk1.3-1.3.11.orig/documentation/make_pdf |
| 767 |
+++ fltk1.3-1.3.11/documentation/make_pdf |
| 768 |
@@ -26,16 +26,24 @@ |
| 769 |
# |
| 770 |
# Used in: Makefile and CMakeLists.txt |
| 771 |
|
| 772 |
+PDF_DATE=`date -ud "$DEB_DATE" +D:%Y%m%d%H%M%SZ` |
| 773 |
+run_pdflatex() { |
| 774 |
+ pdflatex --interaction=nonstopmode \ |
| 775 |
+ "\pdfinfo{/CreationDate($PDF_DATE)/ModDate($PDF_DATE)}\input{refman.tex}" |
| 776 |
+} |
| 777 |
+ |
| 778 |
( cd latex |
| 779 |
- pdflatex --interaction=nonstopmode refman.tex |
| 780 |
+ sed -i 's/\(\\caption{\(\\mbox{\)\?\)\\hyperlink{[^}]*}/\1/' \ |
| 781 |
+ classFl__Input.tex classFl__Tree.tex |
| 782 |
+ run_pdflatex |
| 783 |
makeindex refman.idx |
| 784 |
- pdflatex --interaction=nonstopmode refman.tex |
| 785 |
+ run_pdflatex |
| 786 |
latex_count=5 |
| 787 |
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log \ |
| 788 |
&& [ $latex_count -gt 0 ] |
| 789 |
do |
| 790 |
echo "Rerunning pdflatex ..." |
| 791 |
- pdflatex --interaction=nonstopmode refman.tex |
| 792 |
+ run_pdflatex |
| 793 |
latex_count=`expr $latex_count - 1` |
| 794 |
done |
| 795 |
cd ..) > pdfall.log 2>&1 |
| 796 |
--- fltk1.3-1.3.11.orig/documentation/src/fltk-title.tex.in |
| 797 |
+++ fltk1.3-1.3.11/documentation/src/fltk-title.tex.in |
| 798 |
@@ -8,7 +8,7 @@ |
| 799 |
\vspace*{2cm} |
| 800 |
\begin{DoxyImageNoCaption} |
| 801 |
\mbox{\includegraphics[width=6cm]{FL200.png}} |
| 802 |
-\end{DoxyImageNoCaption}\\ |
| 803 |
+\end{DoxyImageNoCaption} |
| 804 |
\vspace*{2cm} |
| 805 |
{\Large |
| 806 |
Revision 9.10 by F. Costantini, D. Gibson, M. Melcher, \\ |
| 807 |
--- fltk1.3-1.3.11.orig/fltk-config.in |
| 808 |
+++ fltk1.3-1.3.11/fltk-config.in |
| 809 |
@@ -226,26 +226,26 @@ if test "$BINARY_DIR" != ""; then |
| 810 |
includes="-I$BINARY_DIR $includes" |
| 811 |
fi |
| 812 |
|
| 813 |
-if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then |
| 814 |
- libs=-L$libdir |
| 815 |
-else |
| 816 |
- libs= |
| 817 |
-fi |
| 818 |
+# if test "$libdir" != /usr/lib -a "$libdir" != /usr/lib32; then |
| 819 |
+# libs=-L$libdir |
| 820 |
+# else |
| 821 |
+# libs= |
| 822 |
+# fi |
| 823 |
|
| 824 |
# Calculate needed libraries |
| 825 |
LDSTATIC="$libdir/libfltk.a $LDLIBS" |
| 826 |
-LDLIBS="-lfltk$SHAREDSUFFIX $LDLIBS" |
| 827 |
+LDLIBS="-lfltk$SHAREDSUFFIX -lX11" |
| 828 |
|
| 829 |
if test x$use_forms = xyes; then |
| 830 |
LDLIBS="-lfltk_forms$SHAREDSUFFIX $LDLIBS" |
| 831 |
LDSTATIC="$libdir/libfltk_forms.a $LDSTATIC" |
| 832 |
fi |
| 833 |
if test x$use_gl = xyes; then |
| 834 |
- LDLIBS="-lfltk_gl$SHAREDSUFFIX @GLLIBS@ $LDLIBS" |
| 835 |
+ LDLIBS="-lfltk_gl$SHAREDSUFFIX $LDLIBS" |
| 836 |
LDSTATIC="$libdir/libfltk_gl.a @GLLIBS@ $LDSTATIC" |
| 837 |
fi |
| 838 |
if test x$use_images = xyes; then |
| 839 |
- LDLIBS="-lfltk_images$SHAREDSUFFIX $IMAGELIBS $LDLIBS" |
| 840 |
+ LDLIBS="-lfltk_images$SHAREDSUFFIX $LDLIBS" |
| 841 |
LDSTATIC="$libdir/libfltk_images.a $STATICIMAGELIBS $LDSTATIC" |
| 842 |
fi |
| 843 |
|
| 844 |
@@ -284,8 +284,8 @@ if test -n "$compile"; then |
| 845 |
|
| 846 |
post="$prog" |
| 847 |
|
| 848 |
- echo $CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o "'$prog'" "'$compile'" $LDSTATIC |
| 849 |
- $CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o "$prog" "$compile" $LDSTATIC || exit 1 |
| 850 |
+ echo $CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o "'$prog'" "'$compile'" $LDLIBS |
| 851 |
+ $CXX $ARCHFLAGS $includes $CXXFLAGS $debug -o "$prog" "$compile" $LDLIBS || exit 1 |
| 852 |
fi |
| 853 |
|
| 854 |
if test -n "$post"; then |
| 855 |
@@ -337,11 +337,11 @@ EOF |
| 856 |
fi |
| 857 |
|
| 858 |
if test "$echo_cflags" = "yes"; then |
| 859 |
- echo $includes $CFLAGS |
| 860 |
+ echo "$includes $CFLAGS" | sed -e 's/ -[DfgOW][^ ]*//g' -e 's/^ *//' |
| 861 |
fi |
| 862 |
|
| 863 |
if test "$echo_cxxflags" = "yes"; then |
| 864 |
- echo $includes $CXXFLAGS |
| 865 |
+ echo "$includes $CXXFLAGS" | sed -e 's/ -[DfgOW][^ ]*//g' -e 's/^ *//' |
| 866 |
fi |
| 867 |
|
| 868 |
if test "$echo_optim" = "yes"; then |
| 869 |
@@ -361,11 +361,11 @@ if test "$echo_ldflags" = "yes"; then |
| 870 |
fi |
| 871 |
fi |
| 872 |
done |
| 873 |
- echo $libdirs $my_libs |
| 874 |
+ echo " $libdirs $my_libs" | sed -e 's/ -W[^ ]*//g' -e 's/^ *//' |
| 875 |
fi |
| 876 |
|
| 877 |
if test "$echo_ldstaticflags" = "yes"; then |
| 878 |
- echo $LDSTATIC |
| 879 |
+ echo " $LDSTATIC" | sed -e 's/ -W[^ ]*//g' -e 's/^ *//' |
| 880 |
fi |
| 881 |
|
| 882 |
if test "$echo_libs" = "yes"; then |
| 883 |
--- fltk1.3-1.3.11.orig/fluid/Makefile |
| 884 |
+++ fltk1.3-1.3.11/fluid/Makefile |
| 885 |
@@ -89,8 +89,8 @@ install-linux: |
| 886 |
fi; \ |
| 887 |
$(INSTALL_DATA) icons/fluid-$$size.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/fluid.png; \ |
| 888 |
done |
| 889 |
- -$(INSTALL_DIR) $(DESTDIR)/usr/share/mimelnk/application |
| 890 |
- $(INSTALL_DATA) x-fluid.desktop $(DESTDIR)/usr/share/mimelnk/application |
| 891 |
+ -$(INSTALL_DIR) $(DESTDIR)/usr/share/mime/packages |
| 892 |
+ $(INSTALL_DATA) fluid.xml $(DESTDIR)/usr/share/mime/packages |
| 893 |
|
| 894 |
install-osx: |
| 895 |
echo Installing Fluid in $(DESTDIR)/Applications... |
| 896 |
--- fltk1.3-1.3.11.orig/makeinclude.in |
| 897 |
+++ fltk1.3-1.3.11/makeinclude.in |
| 898 |
@@ -35,7 +35,7 @@ includedir = @includedir@ |
| 899 |
libdir = @libdir@ |
| 900 |
mandir = @mandir@ |
| 901 |
srcdir = @srcdir@ |
| 902 |
-docdir = $(datadir)/doc/fltk |
| 903 |
+docdir = $(datadir)/doc/fltk1.3-doc |
| 904 |
VPATH = @srcdir@ |
| 905 |
USEMMFILES = @USEMMFILES@ |
| 906 |
|
| 907 |
@@ -145,7 +145,7 @@ INSTALL_DESKTOP = @INSTALL_DESKTOP@ |
| 908 |
UNINSTALL_DESKTOP = @UNINSTALL_DESKTOP@ |
| 909 |
|
| 910 |
# Be quiet when building... |
| 911 |
-.SILENT: |
| 912 |
+#.SILENT: |
| 913 |
|
| 914 |
# Build commands and filename extensions... |
| 915 |
.SUFFIXES: .0 .1 .3 .6 .c .cxx .mm .h .fl .man .o .z $(EXEEXT) |
| 916 |
--- fltk1.3-1.3.11.orig/src/Makefile |
| 917 |
+++ fltk1.3-1.3.11/src/Makefile |
| 918 |
@@ -217,6 +217,9 @@ UTF8CFILES = \ |
| 919 |
FLTKFLAGS = -DFL_LIBRARY |
| 920 |
include ../makeinclude |
| 921 |
|
| 922 |
+CFLAGS := $(CFLAGS:-fPIE=-fPIC) |
| 923 |
+CXXFLAGS := $(CXXFLAGS:-fPIE=-fPIC) |
| 924 |
+ |
| 925 |
MMFILES = $(shell if test $(USEMMFILES) = Yes; then echo $(OBJCPPFILES); fi) |
| 926 |
|
| 927 |
OBJECTS = $(MMFILES:.mm=.o) $(CPPFILES:.cxx=.o) $(CFILES:.c=.o) $(UTF8CFILES:.c=.o) |
| 928 |
@@ -237,7 +240,7 @@ $(LIBNAME): $(OBJECTS) |
| 929 |
|
| 930 |
libfltk.so.$(FL_DSO_VERSION): $(OBJECTS) |
| 931 |
echo $(DSOCOMMAND) $@ ... |
| 932 |
- $(DSOCOMMAND) $@ $(OBJECTS) $(LDLIBS) |
| 933 |
+ $(DSOCOMMAND) $@ $(OBJECTS) $(LDLIBS) -lpthread |
| 934 |
$(RM) libfltk.so |
| 935 |
$(LN) libfltk.so.$(FL_DSO_VERSION) libfltk.so |
| 936 |
|
| 937 |
--- fltk1.3-1.3.11.orig/test/Makefile |
| 938 |
+++ fltk1.3-1.3.11/test/Makefile |
| 939 |
@@ -16,6 +16,12 @@ |
| 940 |
|
| 941 |
include ../makeinclude |
| 942 |
|
| 943 |
+LINKFLTK = -L../src -Wl,-rpath-link,../src -lfltk |
| 944 |
+LINKFLTKFORMS = -L../src -Wl,-rpath-link,../src -lfltk_forms -lfltk |
| 945 |
+LINKFLTKGL = -L../src -Wl,-rpath-link,../src -lfltk_gl -lfltk |
| 946 |
+LINKFLTKIMG = -L../src -Wl,-rpath-link,../src -lfltk_images -lfltk |
| 947 |
+LINKSHARED = -L../src -Wl,-rpath-link,../src -lfltk_images -lfltk_forms -lfltk |
| 948 |
+ |
| 949 |
CPPFILES =\ |
| 950 |
adjuster.cxx \ |
| 951 |
animated.cxx \ |