Package: fltk13-aqua Version: 1.3.2 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 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 avoid chmod +x on libraries. Patch to always pass uchar to array indices. Patch for libjpeg9 as described in http://www.fltk.org/str.php?L2920. << # Homepage: http://www.fltk.org/ License: LGPL # BuildDepends: libjpeg9, libpng16, fink ( >= 0.25.0 ) Depends: %N-shlibs, macosx, libjpeg9-shlibs, libpng16-shlibs Conflicts: fltk-x11, fltk, fltk-aqua, fltk13-x11 Replaces: fltk-x11, fltk, fltk-aqua, fltk13-x11 BuildDependsOnly: true # Source: mirror:custom:fltk/%v/fltk-%v-source.tar.gz CustomMirror: << nam-US: ftp://ftp.easysw.com/pub << SourceDirectory: fltk-%v Source-MD5: 9f7e707d4fb7a5a76f0f9b73ff70623d # PatchFile: %n.patch PatchFile-MD5: 256a53c162001dd0c815eac4b91f8b1b PatchScript: << #!/bin/sh -ev sed 's|@FINKPREFIX@|%p|' %{PatchFile} | patch -p1 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 # Mountain Lion+ issue. Thanks, Apple. osversion=`uname -r | cut -d . -f 1` if [ $osversion -ge 12 ] ; then perl -pi -e 's/(.*POSIX).*APPLE.*/\1)/' src/filename_list.cxx fi << # GCC: 4.0 ConfigureParams: --mandir=%p/share/man --libdir=%p/lib/%n/lib --enable-shared --enable-threads --without-links --without-x # #### 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 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 << <<