# $Id: Portfile 59971 2009-10-28 06:56:05Z pguyot@kallisys.net $

PortSystem			1.0
name            	ttf2pt1
version         	3.4.4
description     	TrueType Font to PostScript Type 1 Converter
long_description	TTF2PT1 is a modification of Andrew Weeks TTF2PFA True \
					Type to PostScript Type 3 converter. Which will convert \
					Most TrueType Fonts to an Adobe Type 1 .pfa file. And \
					also the other font formats supported by the FreeType \
					library to an Adobe Type 1 .pfa file. And the BDF fonts to \
					an Adobe Type 1 .pfa file. Yet another use is as a hinting \
					engine: feed it an unhinted or poorly hinted Adobe Type 1 \
					font through the FreeType library and get it back with \
					freshly generated hints. If you want .pfb files, don't \
					despair: they can be produced too. The files produced by \
					default are in human readable form, which further needs to \
					be encoded with the t1utilities, to work with most \
					software requiring type 1 fonts.
platforms       	darwin
categories      	print
maintainers     	nomaintainer
homepage			http://${name}.sourceforge.net/
master_sites		sourceforge
extract.suffix		.tgz
checksums			md5 cb143c07cc83167875ca09ea720d4932 \
					sha1 936771b11a740c16a8e0adb737b54b22cca18cb2
patchfiles			patch-ft.c
use_configure		no
depends_lib			port:freetype \
					lib:libz:zlib
build.post_args		CFLAGS_SYS="-I${prefix}/include \
					-I${prefix}/include/freetype2 \
					-DUSE_FREETYPE \
					-DPREFER_FREETYPE" \
					LIBS_SYS="-L${prefix}/lib \
					-lm -lfreetype"
destroot.post_args	INSTDIR=${destroot}${prefix} \
					MANDIR=${destroot}${prefix}/share/man/ \
					GROUP=admin
# wait for HEAD changes to be merged.
#					OWNER=${install.user} \
#					GROUP=${install.group}
