Portfile

# $Id: Portfile 21308 2007-01-20 08:07:37Z ryandesign@macports.org $

PortSystem 1.0

name cups-headers
version 1.1.15
revision 1
description CUPS (Common Unix Printing System) headers for Panther (Mac OS X 10.3.x)
platforms darwin
categories devel
maintainers nomaintainer@macports.org

distname cups
master_sites http://www.opensource.apple.com/projects/cups/
checksums md5 b2aed0b50372687a56f4e665fdd85bee

configure {}
build {}
destroot {
file mkdir ${destroot}${prefix}/share/doc/
file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
}

platform darwin 7 {
build {
system "perl -pi -e 's,includedir=/usr/include,includedir=${prefix}/include,' '${workpath}/${worksrcdir}/cups-config'"
}
destroot {
system "install -d -m 755 '${destroot}${prefix}/bin'"
system "install -c -m 755 '${workpath}/${worksrcdir}/cups-config' '${destroot}${prefix}/bin/'cups-config"
system "cd '${workpath}/${worksrcdir}' && make installhdrs INCLUDEDIR='${destroot}${prefix}/include'"
file mkdir ${destroot}${prefix}/share/doc/
file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc
}
}

files