Difference between revisions of "A2ps"

From CBLFS
Jump to navigationJump to search
 
Line 44: Line 44:
 
Compile the package:
 
Compile the package:
  
 +
 +
sed -i "s|emacs||" contrib/Makefile.in &&
 +
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
 +
sed -i "s|/usr/local/share|/usr/share|" configure &&
 +
sed -i "s|char \*malloc ();|/* & */|" lib/path-concat.c &&
 
  CC="gcc -m32" ./configure --prefix=/usr --enable-shared --with-medium=letter \
 
  CC="gcc -m32" ./configure --prefix=/usr --enable-shared --with-medium=letter \
 
  --sysconfdir=/etc/a2ps --localstatedir=/var \
 
  --sysconfdir=/etc/a2ps --localstatedir=/var \

Revision as of 13:58, 2 November 2006

Download Source: http://ftp.gnu.org/gnu/a2ps/a2ps-4.13b.tar.gz
Download Font: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz

Dependencies

Optional

Non-Multilib

Compile the package:

sed -i "s|emacs||" contrib/Makefile.in &&
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
sed -i "s|/usr/local/share|/usr/share|" configure &&
sed -i "s|char \*malloc ();|/* & */|" lib/path-concat.c &&
./configure --prefix=/usr --sysconfdir=/etc/a2ps --localstatedir=/var \
--enable-shared --with-medium=letter &&
make

Install the package

make install

Install the font

cp -v fonts/* /usr/share/a2ps/fonts &&
cp -v afm/* /usr/share/a2ps/afm &&
cd /usr/share/a2ps/afm &&
./make_fonts_map.sh &&
mv fonts.map.new fonts.map

Multilib

32Bit

Compile the package:


sed -i "s|emacs||" contrib/Makefile.in &&
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
sed -i "s|/usr/local/share|/usr/share|" configure &&
sed -i "s|char \*malloc ();|/* & */|" lib/path-concat.c &&
CC="gcc -m32" ./configure --prefix=/usr --enable-shared --with-medium=letter \
--sysconfdir=/etc/a2ps --localstatedir=/var \
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu &&
make

Install the package

make install

N32

TO DO!

64Bit

Compile the package:

cp /usr/share/libtool/config.sub ./auxdir/
cp /usr/share/libtool/config.guess ./auxdir/
sed -i "s|emacs||" contrib/Makefile.in &&
sed -i 's/+0 -1/-k 1,2/' afm/make_fonts_map.sh &&
sed -i "s|/usr/local/share|/usr/share|" configure &&
sed -i "s|char \*malloc ();|/* & */|" lib/path-concat.c
./configure --prefix=/usr \
--sysconfdir=/etc/a2ps --localstatedir=/var \
--enable-shared --with-medium=letter --libdir=/usr/lib64
make

Install the package

make install

Install the font

cp -v fonts/* /usr/share/a2ps/fonts &&
cp -v afm/* /usr/share/a2ps/afm &&
cd /usr/share/a2ps/afm &&
./make_fonts_map.sh &&
mv fonts.map.new fonts.map
Retrieved from "?title=A2ps&oldid=3599"