Difference between revisions of "Libmng"

From CBLFS
Jump to navigationJump to search
m
 
(5 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
! Download Source:
 
! Download Source:
 
| http://prdownloads.sourceforge.net/libmng/libmng-{{Libmng-Version}}.tar.gz
 
| http://prdownloads.sourceforge.net/libmng/libmng-{{Libmng-Version}}.tar.gz
|-valign="top"
 
! Download Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/libmng/libmng-{{Libmng-Version}}-libdir-1.patch
 
 
|}
 
|}
  
 
----
 
----
  
{{Package-Introduction|The Libmng library supports decoding, displaying, encoding, and various other manipulations of the Multiple-image Network Graphics (MNG) format image files.|http://gjuyn.xs4all.nl/libmng/}}
+
{{Package-Introduction|The Libmng library supports decoding, displaying, encoding, and various other manipulations of the Multiple-image Network Graphics (MNG) format image files.|http://www.libmng.com/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 17: Line 14:
 
*[[libjpeg]]
 
*[[libjpeg]]
 
*[[little cms]]
 
*[[little cms]]
 
== Note to DESTDIR Fans ==
 
 
You will need to alter the installation of the documentation to:
 
 
  install -dv -m755 <DESTDIR>/usr/share/man/man{3,5}
 
  install -v -m644 doc/man/*.3 <DESTDIR>/usr/share/man/man3
 
  install -v -m644 doc/man/*.5 <DESTDIR>/usr/share/man/man5
 
  install -dv -m755 <DESTDIR>/usr/share/doc/libmng-{{Libmng-Version}}
 
  install -v -m644 doc/*.{png,txt} <DESTDIR>/usr/share/doc/libmng-{{Libmng-Version}}
 
 
Other than that - thanks to the patch - DESTDIR should work as it normally does.
 
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 34: Line 19:
 
Compile the package:
 
Compile the package:
  
  cp makefiles/makefile.linux Makefile &&
+
  ln -sf makefiles/configure.in . &&
  patch -Np1 -i ../libmng-{{Libmng-Version}}-libdir-1.patch &&
+
ln -sf makefiles/Makefile.am . &&
 +
  autoreconf -f -i &&
 +
./configure --prefix=/usr &&
 
  make
 
  make
  
 
Install the package
 
Install the package
  
  make install &&
+
  make install
install -v -m644 doc/man/*.3 /usr/share/man/man3 &&
 
install -v -m644 doc/man/*.5 /usr/share/man/man5 &&
 
 
  install -dv -m755 /usr/share/doc/libmng-{{Libmng-Version}} &&
 
  install -dv -m755 /usr/share/doc/libmng-{{Libmng-Version}} &&
 
  install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-{{Libmng-Version}}
 
  install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-{{Libmng-Version}}
 
=== Command Explanations ===
 
 
'''cp makefiles/makefile.linux Makefile''': There are no autotools shipped with this package. We copy the appropriate Makefile to the base directory so that we can use it.
 
 
'''patch -Np1 -i ../libmng-{{Libmng-Version}}-libdir-1.patch''': This patch makes it more sane to build libmng. Basically it makes the default prefix /usr and makes it so that all you have to do to change the library directory is pass ''libdir=/usr/lib64'' (or the equivalent) to '''make''' and '''make install'''. It also adds DESTDIR to the Makefile for those that want it.
 
 
'''install ...''': The documentation files are not installed by the installation procedure, so we copy them manually.
 
  
 
== Multilib ==
 
== Multilib ==
Line 60: Line 37:
 
Compile the package:
 
Compile the package:
  
  cp makefiles/makefile.linux Makefile
+
  ln -sf makefiles/configure.in . &&
  patch -Np1 -i ../libmng-{{Libmng-Version}}-libdir-1.patch
+
  ln -sf makefiles/Makefile.am . &&
  make CC="gcc ${BUILD32}"
+
autoreconf -f -i &&
 +
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
 +
make
  
 
Install the package
 
Install the package
Line 72: Line 51:
 
Compile the package
 
Compile the package
  
  cp makefiles/makefile.linux Makefile
+
  ln -sf makefiles/configure.in . &&
  patch -Np1 -i ../libmng-{{Libmng-Version}}-libdir-1.patch
+
  ln -sf makefiles/Makefile.am . &&
  make CC="gcc ${BUILDN32}" libdir=/usr/lib32
+
autoreconf -f -i &&
 +
  CC="gcc ${BUILD32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
 +
make
  
 
Install the package
 
Install the package
 
   
 
   
  make libdir=/usr/lib32 install
+
  make install
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 84: Line 65:
 
Compile the package
 
Compile the package
  
  cp makefiles/makefile.linux Makefile
+
  ln -sf makefiles/configure.in . &&
  patch -Np1 -i ../libmng-{{Libmng-Version}}-libdir-1.patch
+
  ln -sf makefiles/Makefile.am . &&
  make CC="gcc ${BUILD64}" libdir=/usr/lib64
+
autoreconf -f -i &&
 +
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
 +
make
  
 
Install the package
 
Install the package
 
   
 
   
  make libdir=/usr/lib64 install
+
  make install
install -v -m644 doc/man/*.3 /usr/share/man/man3 &&
 
install -v -m644 doc/man/*.5 /usr/share/man/man5 &&
 
 
  install -dv -m755 /usr/share/doc/libmng-{{Libmng-Version}} &&
 
  install -dv -m755 /usr/share/doc/libmng-{{Libmng-Version}} &&
 
  install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-{{Libmng-Version}}
 
  install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-{{Libmng-Version}}
Line 117: Line 98:
 
| provides functions for programs wishing to read and write MNG files which are animation files without the patent problems associated with certain other formats.
 
| provides functions for programs wishing to read and write MNG files which are animation files without the patent problems associated with certain other formats.
 
|}
 
|}
 +
 +
[[Category:Graphics Libraries]]

Latest revision as of 16:48, 5 February 2011

Download Source: http://prdownloads.sourceforge.net/libmng/libmng-1.0.10.tar.gz

Introduction to Libmng

The Libmng library supports decoding, displaying, encoding, and various other manipulations of the Multiple-image Network Graphics (MNG) format image files.

Project Homepage: http://www.libmng.com/

Dependencies

Required

Non-Multilib

Compile the package:

ln -sf makefiles/configure.in . &&
ln -sf makefiles/Makefile.am . &&
autoreconf -f -i &&
./configure --prefix=/usr &&
make

Install the package

make install
install -dv -m755 /usr/share/doc/libmng-1.0.10 &&
install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-1.0.10

Multilib

32Bit

Compile the package:

ln -sf makefiles/configure.in . &&
ln -sf makefiles/Makefile.am . &&
autoreconf -f -i &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install

N32

Compile the package

ln -sf makefiles/configure.in . &&
ln -sf makefiles/Makefile.am . &&
autoreconf -f -i &&
CC="gcc ${BUILD32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install

64Bit

Compile the package

ln -sf makefiles/configure.in . &&
ln -sf makefiles/Makefile.am . &&
autoreconf -f -i &&
CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install
install -dv -m755 /usr/share/doc/libmng-1.0.10 &&
install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-1.0.10

Contents

Installed Programs: None
Installed Libraries: libmng.{so,a}
Installed Directories: /usr/share/doc/libmng-1.0.10

Short Descriptions

libmng.{so,a} provides functions for programs wishing to read and write MNG files which are animation files without the patent problems associated with certain other formats.