# $Id: Portfile 68053 2010-05-25 21:36:00Z takeshi@macports.org $

PortSystem			1.0

name				t1lib
version				5.1.2
revision                        1
categories			devel graphics fonts
maintainers			nomaintainer
use_parallel_build	no
description			Library for generating glyphs from Type 1 fonts
long_description \
	t1lib is a library distributed under the GNU General Public Library \
	License for generating character- and string-glyphs from Adobe Type 1 \
	fonts under UNIX. t1lib uses most of the code of the X11 rasterizer \
	donated by IBM to the X11-project. But some disadvantages of the \
	rasterizer being included in X11 have been eliminated.

homepage			ftp://metalab.unc.edu/pub/Linux/libs/graphics/

platforms			darwin

master_sites		ftp://sunsite.unc.edu/pub/Linux/libs/graphics/ \
					http://ftp.surfnet.nl/pub/sunsite/libs/graphics/
#					sourceforge:gnuwin32

checksums			md5 a5629b56b93134377718009df1435f3c \
					sha1 4b4fc22c8688eefaaa8cfc990f0039f95f4287de \
					rmd160 ab22aea390356750d743c0f4b08762aa76ca2a82

configure.args		--without-x
if {![variant_isset universal]} {
	configure.ldflags-append	${configure.cc_archflags}
}

depends_build		path:bin/glibtool:libtool
build.args			LIBTOOL=${prefix}/bin/glibtool
build.target		without_doc

variant x11 description {use the X Window System} {
	depends_lib-append		port:xorg-libX11
	configure.args-delete	--without-x
	configure.args-append	--with-x
}

variant psdoc description {build and install the PostScript documentation} {
	depends_lib-append		bin:tex:texlive
	build.target			all
}

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/
	move ${destroot}${prefix}/share/${name}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.url    "http://sunsite.unc.edu/pub/Linux/libs/graphics/?C=M;O=D"
livecheck.regex  ${name}-(\\d+(?:\\.\\d+)*)
