Difference between revisions of "Barcode"

From CBLFS
Jump to navigationJump to search
(Created page with '{| style="text-align: left; background-color: AliceBlue;" |- !Download Source: | ftp://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz |- !Download Patches: | http://svn.cross-lfs.or…')
 
(32Bit)
Line 49: Line 49:
  
 
=== 32Bit ===
 
=== 32Bit ===
To be done
+
Apply the patches:
 +
patch -Np1 -i ../barcode-0.98-codabar-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-margin-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-manpage-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-crash-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-install-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-bookland-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-sample-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-info-01.patch &&
 +
patch -Np1 -i ../barcode-0.98-nohtml-01.patch
 +
 
 +
Configure and compile the package:
 +
CC="gcc ${BUILD32}" \
 +
  ./configure --prefix=/usr --sysconfdir=/etc \
 +
  --localstatedir=/var --libdir=/usr/lib \
 +
  --mandir=/usr/share/man --infodir=/usr/share/info \
 +
  --x-libraries=${XORG_PREFIX}/lib
 +
make
 +
 
 +
Install the package:
 +
make install
  
 
=== N32 ===
 
=== N32 ===

Revision as of 22:35, 1 July 2009

Download Source: ftp://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz
Download Patches: http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-codabar-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-margin-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-manpage-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-bookland-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-crash-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-sample-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-info-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-nohtml-01.patch
http://svn.cross-lfs.org/svn/repos/patches/barcode/barcode-0.98-install-01.patch

Introduction to Barcode

GNU barcode is a library that comes with a command line frontend to convert text strings to printed bars. It supports a variety of standard code to represent the strings and creates postscript output.

Project Homepage: http://www.gnu.org/software/barcode/barcode.html


Dependencies

Optional

Non-Multilib

To be done

Multilib

To be done

32Bit

Apply the patches:

patch -Np1 -i ../barcode-0.98-codabar-01.patch &&
patch -Np1 -i ../barcode-0.98-margin-01.patch &&
patch -Np1 -i ../barcode-0.98-manpage-01.patch &&
patch -Np1 -i ../barcode-0.98-crash-01.patch &&
patch -Np1 -i ../barcode-0.98-install-01.patch &&
patch -Np1 -i ../barcode-0.98-bookland-01.patch &&
patch -Np1 -i ../barcode-0.98-sample-01.patch &&
patch -Np1 -i ../barcode-0.98-info-01.patch &&
patch -Np1 -i ../barcode-0.98-nohtml-01.patch

Configure and compile the package:

CC="gcc ${BUILD32}" \
  ./configure --prefix=/usr --sysconfdir=/etc \
  --localstatedir=/var --libdir=/usr/lib \
  --mandir=/usr/share/man --infodir=/usr/share/info \
  --x-libraries=${XORG_PREFIX}/lib
make

Install the package:

make install

N32

To be done

64Bit

Apply the patches:

patch -Np1 -i ../barcode-0.98-codabar-01.patch &&
patch -Np1 -i ../barcode-0.98-margin-01.patch &&
patch -Np1 -i ../barcode-0.98-manpage-01.patch &&
patch -Np1 -i ../barcode-0.98-crash-01.patch &&
patch -Np1 -i ../barcode-0.98-install-01.patch &&
patch -Np1 -i ../barcode-0.98-bookland-01.patch &&
patch -Np1 -i ../barcode-0.98-sample-01.patch &&
patch -Np1 -i ../barcode-0.98-info-01.patch &&
patch -Np1 -i ../barcode-0.98-nohtml-01.patch

Configure and compile the package:

CC="gcc ${BUILD64}" \
  ./configure --prefix=/usr --sysconfdir=/etc \
  --localstatedir=/var --libdir=/usr/lib64 \
  --mandir=/usr/share/man --infodir=/usr/share/info \
  --x-libraries=${XORG_PREFIX}/lib64 &&
make

Install the package:

make install &&
mv -v /usr/lib/libbarcode.a /usr/lib64/ &&
cp bookland/bookland.py /usr/bin/ &&
install -v -m755 -d /usr/share/doc/barcode-0.98 &&
cp -v doc/barcode.pdf /usr/share/doc/barcode-0.98

Additionally you might want to configure your default papersize (if not already done with libpaper):

echo "a4" >> /etc/papersize

Contents

Installed Programs: /usr/bin/barcode, /usr/bin/bookland.py
Installed Libraries: /usr/lib64/libbarcode.a
Installed Directories:
Retrieved from "?title=Barcode&oldid=18552"