Package: fltk-x11 Version: 1.1.10 Revision: 3 # # old libversion, not bringing forward unless someone wants it # (new version has no -x11 variant, not sure it's possible) Distribution: 10.7, 10.8, 10.9, 10.10 # Maintainer: Daniel Macks # Description: GUI toolkit DescDetail: << FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes. << DescUsage: << Documentation is available on the website, or in the installed manpages and HTML. << DescPort: << When `uname` is Darwin will try to link against Carbon, and use Quartz or QuickDraw graphics. To force x11, remove case that sets Darwin Carbon compiler flags (so fall through to unix/xll) and that sets config.h flags to use Apple-specific graphics. HFS+ is not case sensitive, but there is an important variable (HLINKS) involving this that is set in the same case blocks, so factor out the setting of that variable. Sylvain says to undefine __APPLE__, a practice which I reluctantly continue for now. This flag affects many features, some of which are FS-dependent (similar to HLINKS) and others are Carbon-vs-x11 issues. The use of -U is especially bad since this setting may propagate (via bin/fltk-config) to programs compiled against fltk which may use that token for other platform issues but if it doesn't then fltk headers may give incorrect behavior (it is -D but library was built with it -U). Actions should be made based on (tokens resulting from) specific feature-related checks. I haven't had a chance to go through every occurance to see what the desired behavior is in each case. Patch Makefile to not build test programs. Patch to show actual compiling commands, not synopses of them. Don't continue if any make target fails. Patch to always pass uchar to array indices. Patch for libjpeg9 as described in http://www.fltk.org/str.php?L2920. Patch for libpng16 as described in http://www.mail-archive.com/fltk-bugs@easysw.com/msg04840.html Patch fluid/Fl_Type.h for stricter clang from Xcode 5.1. << DescPackaging: << We need different packages for different XFree86 versions. If >=4.3 then libfltk must link against libfontconfig (thanks Jerry Talkington), but if 4.2 then there is no libfontconfig. By 10.3, we're all up to 4.3; drop the special handling and Provides mess, just have real fltk-x11. Installing preformatted manpages makes the package difficult to remove cleanly (presence of man/cat? causes `man` to populate it). No need to install them since we also install the sources. Previous versions by Sylvain Cuaz (the static-only fltk package). << Homepage: http://www.fltk.org/ License: LGPL # BuildDepends: << fink-package-precedence, fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.6-1), libjpeg9, libpng16, x11-dev, xft2-dev (>= 2.2.0-1) << Depends: << %n-shlibs (= %v-%r), libjpeg9-shlibs, libpng16-shlibs, x11-shlibs, xft2-shlibs (>= 2.2.0-1) << Conflicts: fltk,fltk-aqua,fltk13-aqua,fltk13-x11 Replaces: fltk,fltk-aqua,fltk13-aqua,fltk13-x11 BuildDependsOnly: true # #Source: mirror:sourceforge:fltk/fltk-%v-source.tar.bz2 Source: mirror:custom:fltk/%v/fltk-%v-source.tar.bz2 CustomMirror: << nam-US: http://ftp.easysw.com/pub nam-US: ftp://ftp.easysw.com/pub eur-SE: http://mirror.nu6.org//ftp.easysw.com/pub eur-FI: http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub eur-FI: ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub eur-DE: ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub eur-DE: http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub << SourceDirectory: fltk-%v Source-Checksum: SHA256(37ada22bf2586b8dd30d84209b8b58bdcb864627e5d02ae3f2c323a29261b19a) # PatchFile: %n.patch PatchFile-MD5: 915ddfe7b7c86647ca2a9cfe2542899c PatchScript: << #!/bin/sh -ev sed 's|@FINKPREFIX@|%p|g' <%{PatchFile} | patch -p1 perl -pi -e 's/\*l=0/*l/g' fluid/Fl_Type.h perl -ni -e 'print unless /echo.*COMMAND/' src/Makefile perl -pi -e 's/\|\| break//' Makefile perl -pi -e 's/ 755 / 644 / if /\/lib.*\.{a,dylib}/' src/Makefile perl -ni -e 'print unless /mandir\)\/cat/' documentation/Makefile perl -pi -e 's|share/doc/fltk|share/doc/%n/html|g' configure perl -pi -e 's| -arch i386||g' configure # Mountain Lion+ issue. Thanks, Apple. osversion=`uname -r | cut -d . -f 1` if [ $osversion -ge 12 ] ; then # 10.8+ has different scandir() prototype. perl -pi -e 's|ifndef HAVE_SCANDIR|if 0|g' src/filename_list.cxx fi # autoconf2.6ish patch for modern XQuartz paths perl -pi -e "s|/usr/lpp/Xamples|/opt/X11|" configure << # GCC: 4.0 SetCPPFLAGS: -U__APPLE__ -MD -DHAVE_SCANDIR SetLDFLAGS: -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib ConfigureParams: --mandir=%p/share/man --enable-shared --enable-threads --without-links --with-x --enable-xft CompileScript: << ./configure %c make FONTCONFIGLIB=-lfontconfig perl -pi -e 's|\@FONTCONFIGLIB\@|-lfontconfig|g' fltk-config fink-package-precedence --depfile-ext='\.d' --prohibit-bdep %n . << InstallScript: << make install DESTDIR=%d docdir=%p/share/doc/%n/html ln -s html/index.html %i/share/doc/%n << DocFiles: ANNOUNCEMENT CHANGES COPYING CREDITS README Splitoff: << Package: %N-shlibs Description: Runtime code for fltk-x11 Depends: << fontconfig2-shlibs (>= 2.10.0-1), libjpeg9-shlibs, libpng16-shlibs, x11-shlibs, xft2-shlibs (>= 2.2.0-1) << Conflicts: fltk Replaces: fltk Files: << lib/libfltk.*.dylib lib/libfltk_forms.*.dylib lib/libfltk_gl.*.dylib lib/libfltk_images.*.dylib << Shlibs: << %p/lib/libfltk.1.1.dylib 1.1.0 %n (>= 1.1.4-23) %p/lib/libfltk_forms.1.1.dylib 1.1.0 %n (>= 1.1.4-23) %p/lib/libfltk_gl.1.1.dylib 1.1.0 %n (>= 1.1.4-23) %p/lib/libfltk_images.1.1.dylib 1.1.0 %n (>= 1.1.4-23) << DocFiles: ANNOUNCEMENT CHANGES COPYING CREDITS README <<