# -*- coding: ascii; tab-width: 4; x-counterpart: libdevil1.patch -*- Package: libdevil1 # v1.8.0 switches to cmake # requires uptream patching to use SOVERSION (commit 1763633) # which prob needs bumping due to symbol removals. Version: 1.7.8 Revision: 113 Description: Developer's Image Library DescDetail: << Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use. Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats. Currently, DevIL can load .bmp, .cut, .dds, .doom, .exr, .hdr, .gif, .ico, .jp2, .jpg,.lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files. Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif. << DescPackaging: << configure gives warning about not being able to compile squish.h. This is a bug in configure (uses gcc instead of g++ to test) and can be safely ignored. Doesn't effect building. Enabled openexr support once I was sure linking to a static lib wouldn't break anything if it wasn't propagated. Add patch from Debian to use lcms2. Fix linking on 10.10+. << License: LGPL2 Homepage: http://openil.sourceforge.net/ Maintainer: Daniel Johnson Source: mirror:sourceforge:openil/DevIL-%v.tar.gz Source-Checksum: SHA256(682ffa3fc894686156337b8ce473c954bf3f4fb0f3ecac159c73db632d28a8fd) SourceDirectory: devil-%v PatchFile: %n.patch PatchFile-MD5: 413002b4806ae75ef2c6b0bdbf000e8d PatchScript: << %{default_script} # Patch configure to not link like Puma on Yosemite perl -pi.bak -e 's|10\.\[012\]\*|10.[012][,.]*|g' configure << Depends: %n-shlibs (= %v-%r) BuildDepends: << fink (>= 0.24.12), fink-package-precedence, ilmbase12, lcms2, libgl-dev, libjasper.1, libjpeg9 (>= 9-3), libmng2, libopenexr22, libpng16, libsquish0, libtiff6, pkgconfig, sdl, x11-dev << BuildDependsOnly: true ConfigureParams: << --enable-dependency-tracking \ --disable-static \ --disable-allegro \ --enable-ILU \ --enable-ILUT \ --enable-x86_64 \ --disable-sdltest \ --without-nvtt \ --x-includes="$X11DIR/include" \ --x-libraries="$X11DIR/libs" << GCC: 4.0 SetCFLAGS: -Os SetCXXFLAGS: -Os CompileScript: << #!/bin/sh -ex darwin_vers=`uname -r | cut -d. -f1` if [ "$darwin_vers" -ge 12 ]; then X11DIR=/opt/X11 else X11DIR=/usr/X11 fi %{default_script} fink-package-precedence . << InfoTest: << #Test suite needs GNU expr to run properly. TestDepends: coreutils TestScript: << perl -pi -e 's/expr/gexpr/g' test/format_test/format_checks.sh make check || exit 2 << << InstallScript: << make install install-html DESTDIR=%d rm -rf %i/share/devil mv %i/share/doc/devil %i/share/doc/%n # install-info doesn't like DevIL_manual.info anymore. What changed? #No `START-INFO-DIR-ENTRY' and no `This file documents'. #install-info(%p/share/info/DevIL_manual.info): unable to determine description for `dir' entry - giving up rm -rf %i/share/info << #InfoDocs: DevIL_manual.info DocFiles: AUTHORS ChangeLog COPYING CREDITS NEWS README* TODO SplitOff: << Package: %N-shlibs Depends: << lcms2-shlibs, libgl-shlibs, libjasper.1-shlibs, libjpeg9-shlibs (>= 9-3), libmng2-shlibs, libopenexr22-shlibs, libpng16-shlibs, libsquish0-shlibs, libtiff6-shlibs, sdl-shlibs, x11-shlibs << Files: lib/libIL*1.dylib Shlibs: << %p/lib/libIL.1.dylib 3.0.0 %n (>= 1.7.8-1) %p/lib/libILU.1.dylib 3.0.0 %n (>= 1.7.8-1) %p/lib/libILUT.1.dylib 3.0.0 %n (>= 1.7.8-1) << DocFiles: AUTHORS ChangeLog COPYING CREDITS NEWS README* TODO << SplitOff2: << Package: %N-bin Depends: %N-shlibs (= %v-%r) Files: bin DocFiles: AUTHORS ChangeLog COPYING CREDITS NEWS README* TODO <<