Difference between revisions of "Libpng"

From CBLFS
Jump to navigationJump to search
 
(40 intermediate revisions by 14 users not shown)
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://prdownloads.sourceforge.net/libpng/libpng-1.2.12.tar.bz2
+
| http://downloads.sourceforge.net/libpng/libpng-{{Libpng-Version}}.tar.xz
|-
 
!Download Source:
 
| ftp://ftp.cross-lfs.org/pub/cblfs/conglomeration/libpng/libpng-1.2.12.tar.bz2
 
 
|}
 
|}
  
 
----
 
----
  
== Dependencies ==
+
{{Package-Introduction|libpng is a PNG reference library.|http://www.libpng.org/pub/png/libpng.html}}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 22: Line 19:
  
 
  make install &&
 
  make install &&
  install -v -m755 -d /usr/share/doc/libpng-1.2.12 &&
+
  install -v -m755 -d /usr/share/doc/libpng-{{Libpng-Version}} &&
  install -v -m644 README libpng.txt /usr/share/doc/libpng-1.2.12
+
  install -v -m644 README libpng-{{Libpng-Version}}.txt /usr/share/doc/libpng-{{Libpng-Version}}
  
 
== Multilib ==
 
== Multilib ==
 +
 +
{{Note| Where a symlink points to a program or script which is now to be linked to the multiarch_wrapper, the symlinks must not loop.  In the case of libpng we point libpng-config-32 to libpng12-config-32 instead of to libpng-config because that would loop to the multiarch_wrapper.}}
  
 
=== 32Bit ===
 
=== 32Bit ===
Line 37: Line 36:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/libpng12-config{,-32}
+
  mv -v /usr/bin/libpng12-config{,-32} &&
 +
ln -sfv libpng12-config-32 /usr/bin/libpng-config-32
 +
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
 +
ln -sfv multiarch_wrapper /usr/bin/libpng-config
  
 
=== N32 ===
 
=== N32 ===
Line 49: Line 51:
  
 
  make install &&
 
  make install &&
  mv -v /usr/bin/libpng12-config{,-n32}
+
  mv -v /usr/bin/libpng12-config{,-n32} &&
 +
ln -sfv libpng12-config-n32 /usr/bin/libpng-config-n32
 +
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
 +
ln -sfv multiarch_wrapper /usr/bin/libpng-config
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 62: Line 67:
 
  make install &&
 
  make install &&
 
  mv -v /usr/bin/libpng12-config{,-64} &&
 
  mv -v /usr/bin/libpng12-config{,-64} &&
  ln -sv multiarch_wrapper /usr/bin/libpng12-config &&
+
  ln -sfv libpng12-config-64 /usr/bin/libpng-config-64 &&
  install -v -m755 -d /usr/share/doc/libpng-1.2.12 &&
+
ln -sfv multiarch_wrapper /usr/bin/libpng-config &&
  install -v -m644 README libpng.txt /usr/share/doc/libpng-1.2.12
+
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
 +
  install -v -m755 -d /usr/share/doc/libpng-{{Libpng-Version}} &&
 +
  install -v -m644 README libpng-{{Libpng-Version}}.txt /usr/share/doc/libpng-{{Libpng-Version}}
 +
 
 +
= Contents =
 +
 
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| libpng-config and libpng12-config
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libpng.so and libpng12.{so,a}
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/include/libpng12 and /usr/share/doc/libpng-{{Libpng-Version}}
 +
|}
 +
 
 +
=== Short Descriptions ===
 +
 
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! libpng-config
 +
| is a symlink to '''libpng12-config'''.
 +
|-valign="top"
 +
! libpng12-config
 +
| provides configuration information for libpng.
 +
|-valign="top"
 +
! libpng.so and libpng12.{so,a}
 +
| are a collection of routines used to create and manipulate PNG format graphics files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.
 +
|}
 +
 
 +
[[Category:Graphics Libraries]]

Latest revision as of 07:10, 21 July 2014

Download Source: http://downloads.sourceforge.net/libpng/libpng-1.6.12.tar.xz

Introduction to Libpng

libpng is a PNG reference library.

Project Homepage: http://www.libpng.org/pub/png/libpng.html

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install &&
install -v -m755 -d /usr/share/doc/libpng-1.6.12 &&
install -v -m644 README libpng-1.6.12.txt /usr/share/doc/libpng-1.6.12

Multilib

Caution.png

Note

Where a symlink points to a program or script which is now to be linked to the multiarch_wrapper, the symlinks must not loop. In the case of libpng we point libpng-config-32 to libpng12-config-32 instead of to libpng-config because that would loop to the multiarch_wrapper.

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/libpng12-config{,-32} &&
ln -sfv libpng12-config-32 /usr/bin/libpng-config-32
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
ln -sfv multiarch_wrapper /usr/bin/libpng-config

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/libpng12-config{,-n32} &&
ln -sfv libpng12-config-n32 /usr/bin/libpng-config-n32
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
ln -sfv multiarch_wrapper /usr/bin/libpng-config

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/libpng12-config{,-64} &&
ln -sfv libpng12-config-64 /usr/bin/libpng-config-64 &&
ln -sfv multiarch_wrapper /usr/bin/libpng-config &&
ln -sfv multiarch_wrapper /usr/bin/libpng12-config &&
install -v -m755 -d /usr/share/doc/libpng-1.6.12 &&
install -v -m644 README libpng-1.6.12.txt /usr/share/doc/libpng-1.6.12

Contents

Installed Programs: libpng-config and libpng12-config
Installed Libraries: libpng.so and libpng12.{so,a}
Installed Directories: /usr/include/libpng12 and /usr/share/doc/libpng-1.6.12

Short Descriptions

libpng-config is a symlink to libpng12-config.
libpng12-config provides configuration information for libpng.
libpng.so and libpng12.{so,a} are a collection of routines used to create and manipulate PNG format graphics files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.
Retrieved from "?title=Libpng&oldid=21636"