# $Id: Portfile 95543 2012-07-16 02:45:47Z jmr@macports.org $
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                barcode
version             0.98
revision            2
categories          textproc print
license             GPL-2+
maintainers         nomaintainer
description         convert text strings to printed barcodes
long_description    \
    Main features of GNU Barcode: \
    - Available as both a library and an executable program \
    - Supports UPC, EAN, ISBN, CODE39 and other encoding standards \
    - PostScript and Encapsulated PostScript output \
    - Accepts sizes and positions as inches, centimeters, millimeters \
    - Can create tables of barcodes (to print labels on sticker pages)
homepage            http://www.gnu.org/software/${name}/
platforms           darwin
master_sites        gnu
checksums           md5 7f10c3307b84a19a4ab2fa4b3f2974da

patch.pre_args      -p1
patchfiles          Makefile.in.patch \
                    01-codabar.patch \
                    02-margin.patch \
                    03-oversize.patch \
                    main.c.patch

use_autoreconf      yes

destroot.destdir    prefix=${destroot}${prefix} \
                    MAN1DIR=${destroot}${prefix}/share/man/man1 \
                    MAN3DIR=${destroot}${prefix}/share/man/man3 \
                    INFODIR=${destroot}${prefix}/share/info

depends_lib         port:libpaper
