Difference between revisions of "Barcode"
From CBLFS
Jump to navigationJump to search (→Contents) |
m |
||
Line 46: | Line 46: | ||
== Multilib == | == Multilib == | ||
− | |||
=== 32Bit === | === 32Bit === |
Latest revision as of 08:06, 2 July 2009
Contents
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
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 |