the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libjpeg
Version: 6b
Revision: 17
Depends: %N-shlibs (= %v-%r), %N-bin
BuildDepends: fink (>= 0.24.12)
Source: ftp://ftp.uunet.de/pub/graphics/jpeg/jpegsrc.v%v.tar.gz
Source-MD5: dbd5f3b47ed13132f04c685d608a7547
SourceDirectory: jpeg-%v
PatchFile: %n.patch
PatchFile-MD5: 208caa4948c897b488892724601901f7
UpdateConfigGuess: true
UpdateLibtool: true
ConfigureParams: --enable-shared --enable-static
CompileScript: <<
./configure %c
perl -pi.bak -e 's,-undefined suppress,,g; s,-flat_namespace,,g' libtool
make
<<
InstallScript: <<
mkdir -p %i/bin %i/include %i/lib %i/share/man/man1
make install prefix=%i mandir=%i/share/man/man1
mv %i/bin/jpegtran %i/bin/jpegtran.bin
<<
DocFiles: README
BuildDependsOnly: True
SplitOff: <<
Package: %N-shlibs
Replaces: libjpeg (<< 6b-3)
Suggests: %N-bin
Files: lib/libjpeg.62.0.0.dylib lib/libjpeg.62.dylib
Shlibs: %p/lib/libjpeg.62.dylib 63.0.0 %n (>= 6b-5)
Description: Shared libraries for libjpeg package
DocFiles: README
<<
SplitOff2: <<
Package: %N-bin
Replaces: libjpeg (<< 6b-3)
Depends: %N-shlibs (= %v-%r)
Files: bin share/man
Description: Executables for libjpeg package
DocFiles: README libjpeg.doc structure.doc usage.doc wizard.doc
PostInstScript: <<
update-alternatives --install %p/bin/jpegtran jpegtran %p/bin/jpegtran.bin 40
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove jpegtran %p/bin/jpegtran.bin
fi
<<
<<
Description: JPEG image format handling library
DescPort: <<
Uses autoconf and libtool. Requires the usual fixes.
As of revision 6, the header file is patched to include a wrapper for use
with C++, thanks to Rob Peters.
Previous versions by Christoph Pfisterer.
<<
Maintainer: Dave Morrison
Homepage: http://www.ijg.org/
License: OSI-Approved
diff -ru jpeg-6b/jpeglib.h jpeg-6b-patched/jpeglib.h
--- jpeg-6b/jpeglib.h Sat Feb 21 14:48:14 1998
+++ jpeg-6b-patched/jpeglib.h Tue Feb 25 16:49:36 2003
@@ -13,6 +13,10 @@
#ifndef JPEGLIB_H
#define JPEGLIB_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* First we include the configuration files that record how this
* installation of the JPEG library is set up. jconfig.h can be
@@ -1091,6 +1095,10 @@
#ifdef JPEG_INTERNALS
#include "jpegint.h" /* fetch private declarations */
#include "jerror.h" /* fetch error codes too */
+#endif
+
+#ifdef __cplusplus
+}
#endif
#endif /* JPEGLIB_H */
Package: libjpeg
Version: 6b
Revision: 17
Depends: %N-shlibs (= %v-%r), %N-bin
BuildDepends: fink (>= 0.24.12)
Source: ftp://ftp.uunet.de/pub/graphics/jpeg/jpegsrc.v%v.tar.gz
Source-MD5: dbd5f3b47ed13132f04c685d608a7547
SourceDirectory: jpeg-%v
PatchFile: %n.patch
PatchFile-MD5: 208caa4948c897b488892724601901f7
UpdateConfigGuess: true
UpdateLibtool: true
ConfigureParams: --enable-shared --enable-static
CompileScript: <<
./configure %c
perl -pi.bak -e 's,-undefined suppress,,g; s,-flat_namespace,,g' libtool
make
<<
InstallScript: <<
mkdir -p %i/bin %i/include %i/lib %i/share/man/man1
make install prefix=%i mandir=%i/share/man/man1
mv %i/bin/jpegtran %i/bin/jpegtran.bin
<<
DocFiles: README
BuildDependsOnly: True
SplitOff: <<
Package: %N-shlibs
Replaces: libjpeg (<< 6b-3)
Suggests: %N-bin
Files: lib/libjpeg.62.0.0.dylib lib/libjpeg.62.dylib
Shlibs: %p/lib/libjpeg.62.dylib 63.0.0 %n (>= 6b-5)
Description: Shared libraries for libjpeg package
DocFiles: README
<<
SplitOff2: <<
Package: %N-bin
Replaces: libjpeg (<< 6b-3)
Depends: %N-shlibs (= %v-%r)
Files: bin share/man
Description: Executables for libjpeg package
DocFiles: README libjpeg.doc structure.doc usage.doc wizard.doc
PostInstScript: <<
update-alternatives --install %p/bin/jpegtran jpegtran %p/bin/jpegtran.bin 40
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
update-alternatives --remove jpegtran %p/bin/jpegtran.bin
fi
<<
<<
Description: JPEG image format handling library
DescPort: <<
Uses autoconf and libtool. Requires the usual fixes.
As of revision 6, the header file is patched to include a wrapper for use
with C++, thanks to Rob Peters.
Previous versions by Christoph Pfisterer.
<<
Maintainer: Dave Morrison
Homepage: http://www.ijg.org/
License: OSI-Approved
diff -ru jpeg-6b/jpeglib.h jpeg-6b-patched/jpeglib.h
--- jpeg-6b/jpeglib.h Sat Feb 21 14:48:14 1998
+++ jpeg-6b-patched/jpeglib.h Tue Feb 25 16:49:36 2003
@@ -13,6 +13,10 @@
#ifndef JPEGLIB_H
#define JPEGLIB_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* First we include the configuration files that record how this
* installation of the JPEG library is set up. jconfig.h can be
@@ -1091,6 +1095,10 @@
#ifdef JPEG_INTERNALS
#include "jpegint.h" /* fetch private declarations */
#include "jerror.h" /* fetch error codes too */
+#endif
+
+#ifdef __cplusplus
+}
#endif
#endif /* JPEGLIB_H */