Difference between revisions of "Barcode"

From CBLFS
Jump to navigationJump to search
(Contents)
(Contents)
Line 121: Line 121:
 
|-valign="top"
 
|-valign="top"
 
! Installed Directories:
 
! Installed Directories:
|  
+
| /usr/share/doc/barcode-0.98
 
|}
 
|}
  
 
[[Category:General_Utilities]]
 
[[Category:General_Utilities]]

Revision as of 23:52, 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

Save the previously built 32 Bit Library:

mv /usr/lib/libbarcode.a /usr/lib/libbarcode.a-32

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

Restore the saved 32 Bit Library:

mv /usr/lib/libbarcode.a-32 /usr/lib/libbarcode.a

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/lib/libbarcode.a, /usr/lib64/libbarcode.a
Installed Directories: /usr/share/doc/barcode-0.98