Netpbm
Download Source: | http://prdownloads.sourceforge.net/sourceforge/netpbm/netpbm-10.26.42.tgz |
---|
Contents
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
Required
- libjpeg
- svgalib (version 1.9.25+) ...enjoy the build...
- pkg-config
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. |