Package: fltk13-aqua Version: 1.3.8 Revision: 1 Maintainer: None # Description: GUI toolkit (Aqua graphics) DescDetail: << FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX(R)/Linux(R) (X11), Microsoft(R) Windows(R), and MacOS(R) X. FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL(R) and its built-in GLUT emulation. FLTK is designed to be small and modular enough to be statically linked, but works fine as a shared library. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes. << DescUsage: << This package contains the FLUID UI builder and the headers. Documentation is available on the website, or in the installed manpages and HTML. << DescPackaging: << 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. %p/bin/fltk13-aqua-config needs to be in the -shlibs because dependent packages that build app bundles may need to use it at install time. The FLUID development tool is built additionally as an app bundle, included in the main package. Previous versions by Sylvain Cuaz (the static-only fltk package). Former maintainer through 1.3.3-3: Alexander Hansen << DescPort: << Patch Makefile not to build test programs. Patch to show actual compiling commands, not synopses of them. Don't continue if any make target fails. As of 1.3.3-3: Patch FL/mac.h to assume Fl_Font.H is in FL/ rather than in ../src, and manually install that header After install in root directory, comment out XUtf8FontStruct reference in Fl_Font.H--empirically, by not doing that, one needs also to include Xutf8.h from the FLTK sources, and then that brings in X11, and that in turn causes conflicts between X11 and FLTK definitions of window variables. Patch Fl_Tree_item.cxx to avoid the following build failure under Xcode 9: g++ -I.. -Os -Wno-deprecated-declarations -Wall -Wunused -Wno-format-y2k -fPIC -fno-exceptions -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/sw/include -O2 -g -std=c++0x -DFL_LIBRARY -c Fl_Tree_Item_Array.cxx -o Fl_Tree_Item_Array.o Fl_Tree_Item.cxx:552:38: error: ordered comparison between pointer and zero ('Fl_Tree_Item *' and 'int') if ( from_parent->deparent(from) < 0 ) // deparent self from cu... ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ << # Homepage: http://www.fltk.org/ License: LGPL # BuildDepends: << fink ( >= 0.30.0 ), libjpeg9, libpng16 << Depends: << %N-shlibs (= %v-%r), libjpeg9-shlibs, libpng16-shlibs, macosx << Conflicts: fltk-x11, fltk, fltk-aqua, fltk13-x11 Replaces: fltk-x11, fltk, fltk-aqua, fltk13-x11 BuildDependsOnly: true # Source: https://www.fltk.org/pub/fltk/%v/fltk-%v-source.tar.bz2 SourceDirectory: fltk-%v Source-Checksum: SHA256(1d9832409fc08c908c64ab40ad9fd8b0e8af5d203651eb9690b810f41e2f412d) PatchFile: %n.patch PatchFile-MD5: 7def8a4cb4ac70620b47bab56667e20e PatchScript: << #!/bin/sh -ev sed 's|@FINKPREFIX@|%p|' %{PatchFile} | patch -p1 #perl -pi -e 's/\*l=0/*l/g' fluid/Fl_Type.h #mv fltk-config.in fltk-config.in.old #sed 's: prefix=$optarg: prefix=$optarg; includedir=${prefix}/include:' < fltk-config.in.old > fltk-config.in #mv fluid/Makefile fluid/Makefile.old #sed 's;$(bindir)/fltk-config;$(bindir)/fltk-config --prefix=$(prefix);' < fluid/Makefile.old > fluid/Makefile # Don't print the silent versions of the compiler commands 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 # don't install manpages (see DescPackaging) perl -ni -e 'print unless /mandir\)\/cat/' documentation/Makefile # variantize doc install location perl -pi -e 's|share/doc/fltk|share/doc/%n/html|g' configure #perl -pi -e 's|from_parent\-\>deparent\(from\) \< 0|\!\(from_parent\-\>deparent\(from\)\)|g' src/Fl_Tree_Item.cxx << # GCC: 4.0 ConfigureParams: << --mandir=%p/share/man \ --libdir=%p/lib/%n/lib \ --enable-shared \ --enable-threads \ --without-links \ --without-x << SetCXXFLAGS: -O2 -g -std=c++0x # #### Default CompileScript #### # InstallScript: << #!/bin/bash -ev install -d %i/lib/%n install -d %i/lib/%n/lib install -d %i/lib/%n/include make install DESTDIR=%d docdir=%p/share/doc/%n/html install -d %i/include/FL perl -pi -e 's,\.\./src/,,' %i/include/FL/mac.h cp src/Fl_Font.H %i/include/FL perl -pi -e 's,(XUtf8FontStruct),//\1,' %i/include/FL/Fl_Font.H pushd %i/bin mv fltk-config %N-config ln -s %N-config fltk-config << AppBundles: fluid/fluid.app DocFiles: CHANGES COPYING CREDITS README README.OSX.txt # Splitoff: << Package: %N-shlibs Depends: << libjpeg9-shlibs, libpng16-shlibs, macosx << Conflicts: fltk Replaces: fltk BuildDependsOnly: false Files: << lib/%N/lib/*.1.3.dylib bin/%N-config << Shlibs: << %p/lib/fltk13-aqua/lib/libfltk.1.3.dylib 1.3.0 %n (>=1.3.0-1) %p/lib/fltk13-aqua/lib/libfltk_forms.1.3.dylib 1.3.0 %n (>=1.3.0-1) %p/lib/fltk13-aqua/lib/libfltk_gl.1.3.dylib 1.3.0 %n (>=1.3.0-1) %p/lib/fltk13-aqua/lib/libfltk_images.1.3.dylib 1.3.0 %n (>=1.3.0-1) << DescUsage: << This package contains the shared libraries. Any package that Depends on this one and builds an app bundle may need to have the following in a PostInstScript: fltk13-aqua-config.aqua --post where is the real executable, not just the app bundle. This is because even if the package is set up properly, packing the .deb appears to clobber the resource fork. << DocFiles: CHANGES COPYING CREDITS README README.OSX.txt <<