Difference between revisions of "Libjpeg"

From CBLFS
Jump to navigationJump to search
(I added the package description from BLFS.)
(I added the "Contents" section from BLFS.)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
 
| http://www.ijg.org/files/jpegsrc.v6b.tar.gz
 
| http://www.ijg.org/files/jpegsrc.v6b.tar.gz
|-
+
|-valign="top"
 
!Required Patch:
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-config_update-1.patch
 
| http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-config_update-1.patch
|-
+
|-valign="top"
 
!Required Patch for PowerPC:
 
!Required Patch for PowerPC:
 
| http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-ppc-1.patch
 
| http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-ppc-1.patch
Line 30: Line 30:
  
 
  make install
 
  make install
 +
 +
=== Command Explanations ===
 +
 +
''--enable-static --enable-shared'': These switches tell libjpeg to build both shared and static libraries.
  
 
== Multilib ==
 
== Multilib ==
Line 70: Line 74:
  
 
  make libdir=/usr/lib64 install
 
  make libdir=/usr/lib64 install
 +
 +
= Contents =
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| cjpeg, djpeg, jpegtran, rdjpgcom, and wrjpgcom
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libjpeg.{so,a}
 +
|-valign="top"
 +
! Installed Directories:
 +
| None
 +
|}
 +
 +
=== Short Descriptions ===
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! cjpeg
 +
| compresses image files to produce a JPEG/JFIF file on the standard output. Currently supported input file formats are: PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, and Targa.
 +
|-valign="top"
 +
! djpeg
 +
| decompresses image files from JPEG/JFIF format to either PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, or Targa format.
 +
|-valign="top"
 +
! jpegtran
 +
| is used for lossless transformation of JPEG files.
 +
|-valign="top"
 +
! rdjpgcom
 +
| displays text comments from within a JPEG file.
 +
|-valign="top"
 +
! wrjpgcom
 +
| inserts text comments into a JPEG file.
 +
|-valign="top"
 +
! libjpeg.{so,a}
 +
| library is used by many programs for reading and writing JPEG format files.
 +
|}

Revision as of 00:12, 12 December 2006

Download Source: http://www.ijg.org/files/jpegsrc.v6b.tar.gz
Required Patch: http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-config_update-1.patch
Required Patch for PowerPC: http://svn.cross-lfs.org/svn/repos/patches/jpeg/jpeg-6b-ppc-1.patch

Introduction to libjpeg

The libjpeg package contains libraries that allow compression of image files based on the Joint Photographic Experts Group standard. It is a "lossy" compression algorithm.

Dependencies

Non-Multilib

Compile the package:

patch -Np1 -i ../jpeg-6b-config_update-1.patch &&
./configure --prefix=/usr --enable-static --enable-shared &&
make

Install the package

make install

Command Explanations

--enable-static --enable-shared: These switches tell libjpeg to build both shared and static libraries.

Multilib

32Bit

Compile the package:

patch -Np1 -i ../jpeg-6b-config_update-1.patch &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr --enable-static --enable-shared &&
make

Install the package

make install

N32

Compile the package:

patch -Np1 -i ../jpeg-6b-config_update-1.patch &&
CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 \
    --enable-static --enable-shared &&
make libdir=/usr/lib32

Install the package

make libdir=/usr/lib32 install

64Bit

Compile the package:

patch -Np1 -i ../jpeg-6b-config_update-1.patch &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 \
    --enable-static --enable-shared &&
make libdir=/usr/lib64

Install the package

make libdir=/usr/lib64 install

Contents

Installed Programs: cjpeg, djpeg, jpegtran, rdjpgcom, and wrjpgcom
Installed Libraries: libjpeg.{so,a}
Installed Directories: None

Short Descriptions

cjpeg compresses image files to produce a JPEG/JFIF file on the standard output. Currently supported input file formats are: PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, and Targa.
djpeg decompresses image files from JPEG/JFIF format to either PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, or Targa format.
jpegtran is used for lossless transformation of JPEG files.
rdjpgcom displays text comments from within a JPEG file.
wrjpgcom inserts text comments into a JPEG file.
libjpeg.{so,a} library is used by many programs for reading and writing JPEG format files.