Difference between revisions of "Libmng"

From CBLFS
Jump to navigationJump to search
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
 
 
|}
 
|}
  
Line 17: Line 14:
 
*[[libjpeg]]
 
*[[libjpeg]]
 
*[[little cms]]
 
*[[little cms]]
 
== Configuration Information ==
 
 
{{Note|The patch makes the necessary alterations to the Makefile so that ''DESTDIR'' works for everything except the documentation.  You will need to create the necessary documentation directories manually.  Replace <DESTDIR> in the commands below with your desired destination directory.}}
 
 
  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}}
 
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 32: 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 58: 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 70: 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
+
  makeinstall
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 82: 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}}

Revision as of 09:46, 24 May 2009

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://gjuyn.xs4all.nl/libmng/

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

makeinstall

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.
Retrieved from "?title=Libmng&oldid=18341"