summaryrefslogtreecommitdiff
path: root/fltk-config.in
AgeCommit message (Collapse)Author
2025-03-27Update fltk-config.in (minor comment changes only)Albrecht Schlosser
2025-01-21fltk-config: reorder include dirs of bundled image libsAlbrecht Schlosser
1. prepend include dirs of bundled image libs and append Cairo include dirs and flags 2. remove forgotten debug statement from previous commit
2025-01-21fltk-config: fix "Check bundled image libraries in source tree"Albrecht Schlosser
Avoid adding a non-existent folder to include directories (-I) in `fltk-config --cxxflags` etc.
2024-08-28Remove single-quotes from fltk-config.in (again)Albrecht Schlosser
This commit removes all single-quotes (') that have been added to support /installing/ FLTK in paths with spaces (see PR #17).
2024-08-12Re-enable quoting in fltk-config(.in) [fix PR #17]Albrecht Schlosser
- add some more missing quotes - use `eval` to execute the compile/build command. Tested with both configure/Make and CMake (Ninja) after installing in a path that contains spaces (Linux only so far).
2024-08-10Revert quoting variables in fltk-config.in partiallyAlbrecht Schlosser
Fix regression: commit b83a6abe01664245a2319c58b02063ba924fe912 broke `fltk-config --compile` even in the build folder and in folders not containing spaces. This commit partially reverts the above mentioned commit so `fltk-config` works as before. To do: fltk-config does not work if installed in a directory that contains spaces, check if this can be fixed.
2024-08-10Configure/make: Quote variables that may contain spacesmid-kid
This allows installing FLTK to directories that contain spaces.
2023-04-13Fix more missing quotes in fltk-config.in (#714)Albrecht Schlosser
Sorry for the noise.
2023-04-10Fix fltk-config check for local invocation and libs (#717)Albrecht Schlosser
This updates the changes done for issues #647 and #656.
2023-04-10Fix missing quotes in fltk-config.in (#714)Albrecht Schlosser
2023-04-09Allow more input files and compiler flags in fltk-config (#647, #656)Albrecht Schlosser
Also refactor, reformat, and simplify code: - move all variable substitutions to the beginning of the file - simplify Cairo support and nesting of 'if' clauses - unify indenting: 4 spaces, no tabs
2023-03-09CMake: build shared libs with OPTION_CAIROEXT (issue #250)Albrecht Schlosser
- remove separate libfltk_cairo to avoid cyclic dependencies, but - keep a dummy libfltk_cairo in 1.4.0 for backwards compatibility - move cairo/Fl_Cairo.cxx to src/Fl_Cairo.cxx - add preliminary Cairo support for Visual Studio (MSVC) Static linking is not affected by this change, but users building with hand-made Makefiles will have to remove libfltk_cairo starting with FLTK 1.4.0. The dummy library can be linked for backwards compatibility but it will be removed later (in 1.4.x or 1.5.0). The shared FLTK library libfltk.{so|dylib|dll|..} depends on libcairo if and only if FLTK is built with one of the Cairo options. This has always been the case for OPTION_CAIROEXT but is now also true if only OPTION_CAIRO is selected, i.e. FLTK programs linked with a Cairo enabled shared FLTK library will also be linked with libcairo. The same is true for configure options --enable-cairo and --enable-cairoext, respectively. Preliminary Cairo support for MSVC now detects a Cairo installation using the CMake variable FLTK_CAIRO_DIR which must be set by the user. Note that this feature is temporary and may be changed in the future for a better and more comfortable version.
2022-01-23Fix for fltk when make install usedGreg Ercolano
2022-01-16For issue #358 - adds examples/cairo-draw-x.cxxGreg Ercolano
Since this is the first cairo example in the examples directory, it necessarily involved changes to the Makefile and to fltk-config to properly handle the absence/existance of the cairo libs. TBD: Add docs to the cario widget describing coordinate system and how it differs from the default cairo normalized coordinate system.
2020-07-15CMake: refactor and reformat CMake filesAlbrecht Schlosser
- raise minimum CMake version from 2.6.3 to 3.2.3 (Jun 01, 2015) - indent all CMake files according to the CMP (2 col.) - refactor FLTK version number definitions and usage - unify CMake and autoconf/configure variable names: - FL_VERSION -> FLTK_VERSION - FL_MAJOR_VERSION -> FLTK_VERSION_MAJOR - etc. for _MINOR_ and _PATCH_, respectively - note: this does not affect FL_VERSION etc. in source code - generate "export headers" for all libraries (experimental: OFF) - port some forgotten goodies from branch-1.3 to master - merge and improve macro 'create_example' (WIP) - remove "temporary" options and code for older CMake versions - include and use 'GenerateExportHeader' (experimental, WIP: OFF) - note: created header files are not yet used - build only *one* DLL with Visual Studio (tested, works) - similar to the bundled IDE projects in 1.3.x - add some dynamically linked test/demo programs ('*-shared') if shared libraries are built (WIP) - split 'macros.cmake': use one file per macro
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2018-08-03Fix line endings and other (svn) properties of fltk-config.in.Albrecht Schlosser
Remove executable property. Set line ending to LF. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-23CMake: Fix fltk-config for Windows and Unix/Linux.Albrecht Schlosser
This update ought to work with fltk-config [--use-images] [--use-gl] --compile <c source file> on both Windows and Unix/Linux when built with CMake. It was tested under Windows and Linux using fltk-config directly from the build tree, but it should work as well after installation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-19When targetting MacOS+X11, fltk-config should not bundle the executable.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Fix compiler warnings (STR 2988), porting from branch-1.3.Albrecht Schlosser
This commit is the accumulated patch introduced in branch 1.3 in svn r 11094, 11095, and 11096. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12Fix fltk-config for CMake build.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06Remove unused variable 'bindir' from fltk-config and fix CMake local usage.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05Added the NSHighResolutionCapable item to fltk-config --post for fltk apps ↵Manolo Gouy
to be high-resolution ready. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-01Fix fltk-config --post - script wrapper for app bundle had broken dirname call.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-13added --prefix and --includedir flags to fltk-config (STR #2137)engelsman
also fixed typo in fltk-config.cmake.in (STR #2443) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-10Fixed fltk-config to give --use on one line (STR #2408)engelsman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Changed the copyright to 2009 for header files. Still todo: src and test ↵Matthias Melcher
directory. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-29STR #1962: I tried to fix the configuration scripts so that the image ↵Matthias Melcher
support libraries (fltk_jpeg fltk_png fltk_z) are linked in the same fashion as the fltk_image library. Please verify this fix. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-19Cairo increment 2: Finer cairo granularity, less deps, new fltk_cairo libFabien Costantini
+ added new USE_CAIRO config preprocessor def. to differentiate from HAVE_CAIRO so that we can use the cairo lib without forcing the full fltk lib to be linked against it. In that case, cairo autolink context functionality which needs fltk lib instrumentation is disabled. + added new --enable-cairoext, which correspond to previous --enable-cairo. now, --enable-cairo only adds HAVE_CAIRO def. and keeps fltk lib from referencing cairo. In both cases (--enable-cairo & --enable-cairoext), a new fltk_cairo lib is created. This lib, similarly to local versions of png,jpeg and zlib, is not generated if cairo is not enabled. + added cairo to fltk-config : now new --use-cairo flag is available + modified all unix like makefiles to now generate minimum cairo deps and also new libfltk_cairo lib. + added new cairo subdir to permit conditional fltk_cairo lib generation. + vc2005 project minimum update to compile without be broken, but still needs to create a similar fltk_cairo independent lib. For now, it works as before with a dedicated cairo env. similar to --enable-cairoext context in unix. + regression tested ok with cairo disabled on win32, mac osx, mingw. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-29STR#2028 new fix: replace ' by \" for the $compile var wrapping in ↵Fabien Costantini
fltk-config.in. Tested successfully on _both_ bash and sh shells, on Mac OS X 10.5,linux fedora 4,latest cygwin/mingw. Should also works under IRIX sh, please report feedback on other non bashed based unix platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-28Revert change for STR #2028, which is not correct.Michael R Sweet
$(foo) is NOT portable, and nested quotes like "'$foo'" are required to do variable expansion for POSIX compatibility. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-28STR #2028 fix: single quotes changed to double quotes around the variable ↵Fabien Costantini
$compile to make it interpreted, Thanks alvin git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26Make sure script double-quotes $0...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26Use $@ for arguments passed to the bundled executable.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-07-13Make --post create a basic Mac OS X application bundle with a shell scriptMichael R Sweet
that executes the bundled program. Change the defaults for Quartz, threading, large file support, XDBE, Xft, and Xinerama to "yes". Remove the old Mac OS X resource fork file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20STR 1875: fixed missing return value from 'fltk-config' for compiles that ↵Matthias Melcher
require a post run git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-16Fix copy/paste error.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-20Remove unused variables.Michael R Sweet
Fix fltk-config --libs and fltk-config --ldstaticflags (STR #1799) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06STR #1624: Added --optim option for fltk-config which returns all flags for ↵Matthias Melcher
compilation that are not returned by --cflags or --cxxflags. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06Added POSTBUILD changes for fltk-config.in which I forgot earlierMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-06Update packaging files.Michael R Sweet
Remove --post code from fltk-config (--post is now ignore on all platforms) Remove outdated information from README.mac. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-05Update pthreads configure test to work on more platforms.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28Fix indentation of elements (STR #1549)Michael R Sweet
Update layout of help dialog to look like other help dialogs. Drop resource fork stuff from fltk-config (no more --post, it is a no-op) Use a single table for the header on the documentation page. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24Tweak gtk+ drawing of Fl_Choice.Michael R Sweet
Add support for "-Dname" option in fltk-config. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19Add --with-archflags option to configure script, and use it in the rightMichael R Sweet
places. Update changes file. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-31Update copyrights.Michael R Sweet
Also check for feof() when the character returned by getc is < 0 to work around a bug in Cygwin. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-31Fix fl_filename_list() bug (STR #1159) caused by changing of the ABIMichael R Sweet
(dirent size is different for large file mode) The default is now --disable-largefile; if you use --enable-largefile, the large file support definitions are propagated to the fltk-config script as well. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-07Don't use readlink, it is non-standard.Michael R Sweet
Sorry, no symlink support for fltk-config, you'll need to use wrapper scripts. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-15Fix typo in fltk-config script.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121