Package: fltk13-aqua Version: 1.3.3 Revision: 3 Maintainer: Alexander Hansen # 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). << 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. Patch to avoid chmod +x on libraries. Patch for libjpeg9 as described in http://www.fltk.org/str.php?L2920. Patch fluid/Fl_Type.h for stricter clang from Xcode 5.1+. 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. << # Homepage: http://www.fltk.org/ License: LGPL # BuildDepends: libjpeg9, libpng16, fink ( >= 0.30.0 ) Depends: %N-shlibs (= %v-%r), macosx, libjpeg9-shlibs, libpng16-shlibs Conflicts: fltk-x11, fltk, fltk-aqua, fltk13-x11 Replaces: fltk-x11, fltk, fltk-aqua, fltk13-x11 BuildDependsOnly: true # Source: http://fltk.org/pub/fltk/%v/fltk-%v-source.tar.gz # SourceDirectory: fltk-%v Source-MD5: 9ccdb0d19dc104b87179bd9fd10822e3 Source-Checksum: SHA1(873aac49b277149e054b9740378e2ca87b0bd435) PatchFile: %n.patch PatchFile-MD5: 8186277b500f61fef0d1430233a6fef1 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 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 << # 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.mac << <<