Difference between revisions of "Netpbm"

From CBLFS
Jump to navigationJump to search
(vanity)
(cleanup)
Line 33: Line 33:
 
{|
 
{|
 
|-
 
|-
|''make --keep-going:'' Usefull if the build fails on an unecessary tool.
+
|''make --keep-going:'' Useful if the build fails on an unnecessary tool.
 
|-
 
|-
 
|}
 
|}
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 +
 +
Setup the environment:
 +
 +
bash
 +
 +
export NETPBM_PREFIX=/usr
  
 
Compile the package:
 
Compile the package:
  
 
  cp Makefile.config{.in,} &&
 
  cp Makefile.config{.in,} &&
 +
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
 +
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
 +
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
 +
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
 +
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
 +
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
Line 47: Line 59:
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
  sed -i 's@PNGHDR_DIR \=@PNGHDR_DIR \= \`pkg\-config \-\-variable\=includedir libpng\`@g' Makefile.config &&  
+
  sed -i 's@PNGHDR_DIR \=@@g' Makefile.config &&  
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
Line 54: Line 66:
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@NETPBM_DOCURL \= file:/usr/share/doc/netpbm/@g' Makefile.config &&
+
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
 +
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
 +
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
 +
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
 +
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
 
  make &&
 
  make &&
 
  make package
 
  make package
Line 61: Line 77:
  
 
  ./installnetpbm
 
  ./installnetpbm
 +
 +
Exit the environment:
 +
 +
exit
  
 
== Multilib ==
 
== Multilib ==
Line 67: Line 87:
  
 
(The following needs to be refined... specifically the INTTYPES_H var)
 
(The following needs to be refined... specifically the INTTYPES_H var)
 +
 +
Setup the environment:
 +
 +
bash
 +
 +
export NETPBM_PREFIX=/usr
  
 
Compile the package:
 
Compile the package:
  
 
  cp Makefile.config{.in,} &&
 
  cp Makefile.config{.in,} &&
 +
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
 +
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
 +
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
 +
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
 +
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
 +
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
Line 76: Line 108:
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
  sed -i 's@PNGHDR_DIR \=@PNGHDR_DIR \= \`pkg\-config \-\-variable\=includedir libpng\`@g' Makefile.config &&  
+
  sed -i 's@PNGHDR_DIR \=@@g' Makefile.config &&  
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
Line 83: Line 115:
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@NETPBM_DOCURL \= file:/usr/share/doc/netpbm/@g' Makefile.config &&
+
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
 +
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
 +
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
 +
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
 +
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
 
  make &&
 
  make &&
  make package  
+
  make package
  
 
Install the package:
 
Install the package:
  
 
  ./installnetpbm
 
  ./installnetpbm
 +
 +
Exit the environment:
 +
 +
exit
  
 
=== 64Bit ===  
 
=== 64Bit ===  
  
 
(The following needs to be refined... specifically the INTTYPES_H var)
 
(The following needs to be refined... specifically the INTTYPES_H var)
 +
 +
Setup the environment:
 +
 +
bash
 +
 +
export NETPBM_PREFIX=/usr
  
 
Compile the package:
 
Compile the package:
  
 
  cp Makefile.config{.in,} &&
 
  cp Makefile.config{.in,} &&
 +
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
 +
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
 +
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
 +
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
 +
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
 +
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
Line 103: Line 155:
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
 
  sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config &&  
  sed -i 's@PNGHDR_DIR \=@PNGHDR_DIR \= \`pkg\-config \-\-variable\=includedir libpng\`@g' Makefile.config &&  
+
  sed -i 's@PNGHDR_DIR \=@@g' Makefile.config &&  
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
 
  sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
Line 110: Line 162:
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
 
  sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@NETPBM_DOCURL \= file:/usr/share/doc/netpbm/@g' Makefile.config &&
+
  sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
 +
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
 +
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
 +
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
 +
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
 
  make &&
 
  make &&
 
  make package
 
  make package
Line 117: Line 173:
  
 
  ./installnetpbm
 
  ./installnetpbm
 +
 +
Exit the environment:
 +
 +
exit
  
 
== Configuring ==  
 
== Configuring ==  
  
 
(The following needs to be refined...)
 
(The following needs to be refined...)
 +
 +
You may want to setup /etc/manweb.conf; in the meantime:
 +
 +
sed -i 's@webdir=/usr/man/web@\#webdir=/usr/man/web@g' /etc/manweb.conf &&
 +
echo "webdir=/dev/null" >> /etc/manweb.conf
 
   
 
   
 
 
== Contents ==  
 
== Contents ==  
  

Revision as of 23:10, 7 June 2007

Download Source: http://prdownloads.sourceforge.net/sourceforge/netpbm/netpbm-10.26.42.tgz

Introduction to Netpbm

Netpbm is a toolkit comprised of over 220 tools for manipulating graphics, including conversion of images between a variety of different formats.

Project Homepage: http://netpbm.sourceforge.net/

Dependencies

Caution.png

Note

This package is highly modulular; the dependencies vary. There are newer versions of netpbm available; this is the considered the stable version

Required

Recommended

Optional

Configuration Information

make --keep-going: Useful if the build fails on an unnecessary tool.

Non-Multilib

Setup the environment:

bash
export NETPBM_PREFIX=/usr 

Compile the package:

cp Makefile.config{.in,} &&
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@JPEGLIB \= NONE@JPEGLIB \= libjpeg\.so@g' Makefile.config &&
sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config && 
sed -i 's@PNGHDR_DIR \=@@g' Makefile.config && 
sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@LINUXSVGALIB \= NONE@LINUXSVGALIB \= libvga\.so @g' Makefile.config &&
sed -i 's@LINUXSVGAHDR_DIR \=@LINUXSVGAHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
make &&
make package

Install the package:

./installnetpbm

Exit the environment:

exit

Multilib

32Bit

(The following needs to be refined... specifically the INTTYPES_H var)

Setup the environment:

bash
export NETPBM_PREFIX=/usr

Compile the package:

cp Makefile.config{.in,} &&
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@JPEGLIB \= NONE@JPEGLIB \= libjpeg\.so@g' Makefile.config &&
sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config && 
sed -i 's@PNGHDR_DIR \=@@g' Makefile.config && 
sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@LINUXSVGALIB \= NONE@LINUXSVGALIB \= libvga\.so @g' Makefile.config &&
sed -i 's@LINUXSVGAHDR_DIR \=@LINUXSVGAHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
make &&
make package

Install the package:

./installnetpbm

Exit the environment:

exit

64Bit

(The following needs to be refined... specifically the INTTYPES_H var)

Setup the environment:

bash
export NETPBM_PREFIX=/usr

Compile the package:

cp Makefile.config{.in,} &&
sed -i 's@DEFAULT_TARGET \= nonmerge@DEFAULT_TARGET \= merge@g' Makefile.config &&
sed -i 's@INSTALL \= \$\(SRCDIR\)/buildtools/install\.sh@INSTALL \= install@g' Makefile.config &&
sed -i 's@LDRELOC \= NONE@LDRELOC \= ld \-r@g' Makefile.config &&
sed -i 's@CFLAGS_SHLIB \=@CFLAGS_SHLIB \= \-fpic@g' Makefile.config &&
sed -i 's@NEED_RUNTIME_PATH \= N@NEED_RUNTIME_PATH \= Y@g' Makefile.config &&
sed -i 's@NETPBMLIB_RUNTIME_PATH \=@@g' Makefile.config &&
sed -i 's@TIFFLIB \= NONE@TIFFLIB \= libtiff\.so@g' Makefile.config &&
sed -i 's@TIFFHDR_DIR \=@TIFFHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@JPEGLIB \= NONE@JPEGLIB \= libjpeg\.so@g' Makefile.config &&
sed -i 's@JPEGHDR_DIR \=@JPEGHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@PNGLIB \= NONE@PNGLIB \= libpng\.so@g' Makefile.config && 
sed -i 's@PNGHDR_DIR \=@@g' Makefile.config && 
sed -i 's@ZLIB \= NONE@ZLIB \= libz\.so@g' Makefile.config &&
sed -i 's@ZHDR_DIR \=@ZHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@LINUXSVGALIB \= NONE@LINUXSVGALIB \= libvga\.so @g' Makefile.config &&
sed -i 's@LINUXSVGAHDR_DIR \=@LINUXSVGAHDR_DIR \= /usr/include@g' Makefile.config &&
sed -i 's@OMIT_NETWORK \=@OMIT_NETWORK \= Y@g' Makefile.config &&
sed -i 's@STATICLIB_TOO \= y@STATICLIB_TOO \= n@g' Makefile.config &&
sed -i 's@NETPBM_DOCURL \= http\://netpbm\.sourceforge\.net/doc/@@g' Makefile.config &&
echo "PNGHDR_DIR = `pkg-config --variable=includedir libpng`" >> Makefile.config &&
echo "NETPBMLIB_RUNTIME_PATH = ${NETPBM_PREFIX}/lib" >> Makefile.config &&
echo "NETPBM_DOCURL = file:${NETPBM_PREFIX}/share/doc/netpbm" >> Makefile.config &&
sed -i 's@/usr/local/netpbm@/usr@g' buildtools/installnetpbm.pl &&
make &&
make package

Install the package:

./installnetpbm

Exit the environment:

exit

Configuring

(The following needs to be refined...)

You may want to setup /etc/manweb.conf; in the meantime:

sed -i 's@webdir=/usr/man/web@\#webdir=/usr/man/web@g' /etc/manweb.conf &&
echo "webdir=/dev/null" >> /etc/manweb.conf

Contents

(The following needs to be refined...)

Installed Directories: /path/to/dir
Installed Programs: Program 1, Program 2
Installed Libraries: library1.{a,so}, library2.{a,so}

Short Descriptions

(The following needs to be refined...)

Program 1 is a program that converts pennies to dollars.
Program 2 is a program that converts dollars to pennies.
library1.{so,a} is a library that contains functions necessary to convert from dollars to pennies and vice versa.