Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2000 21:51:07 -0400 (EDT)
From:      Mikhail Teterin <mi@privatelabs.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        babkin@bellatlantic.net
Subject:   ports/22328: new port -- print/ttf2pt1
Message-ID:  <200010270151.e9R1p7n15170@misha.privatelabs.com>

next in thread | raw e-mail | index | archive | help

>Number:         22328
>Category:       ports
>Synopsis:       new port -- print/ttf2pt1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 26 19:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 4.1.1-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	Convert True Type Fonts to PostScript Type 1 -- usable for
	printing and under X11. See http://sourceforge.net/projects/ttf2pt1/
	for more information.

>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ttf2pt1
#	ttf2pt1/files
#	ttf2pt1/files/patch-aa
#	ttf2pt1/pkg-plist
#	ttf2pt1/pkg-descr
#	ttf2pt1/pkg-comment
#	ttf2pt1/distinfo
#	ttf2pt1/Makefile
#	ttf2pt1/pkg-message
#
echo c - ttf2pt1
mkdir -p ttf2pt1 > /dev/null 2>&1
echo c - ttf2pt1/files
mkdir -p ttf2pt1/files > /dev/null 2>&1
echo x - ttf2pt1/files/patch-aa
sed 's/^X//' >ttf2pt1/files/patch-aa << 'END-of-ttf2pt1/files/patch-aa'
XCC and  CFLAGS on BSD  are controlled  centrally and make(1)  knows well
Xwhat they are. Unless there is a need to set them explicitly, one should
Xnot.
X
XAlso,  it appears,  that the  ttf2pfa  and t1asm  do not  need the  math
Xlibrary (-lm).
X
X	-mi
X
X--- Makefile	Fri Oct 13 20:09:29 2000
X+++ Makefile	Thu Oct 26 19:20:06 2000
X@@ -87,3 +87,3 @@
X 
X-CFLAGS= $(CFLAGS_SYS) $(CFLAGS_FT) $(CFLAGS_PREF)
X+#CFLAGS= $(CFLAGS_SYS) $(CFLAGS_FT) $(CFLAGS_PREF)
X LIBS= $(LIBS_SYS) $(LIBS_FT)
X@@ -121,3 +121,3 @@
X t1asm: t1asm.c
X-	$(CC) $(CFLAGS) -o t1asm -DSTANDALONE t1asm.c $(LIBS)
X+	$(CC) $(CFLAGS) -o t1asm -DSTANDALONE t1asm.c
X 
X@@ -124,3 +124,3 @@
X ttf2pfa:	ttf2pfa.c ttf.h
X-	$(CC) $(CFLAGS) -o ttf2pfa ttf2pfa.c $(LIBS)
X+	$(CC) $(CFLAGS) -o ttf2pfa ttf2pfa.c
X 
X--- other/Makefile	Tue Jul 25 15:47:51 2000
X+++ other/Makefile	Thu Oct 26 19:31:13 2000
X@@ -6,2 +6,0 @@
X-CFLAGS= -g
X-
END-of-ttf2pt1/files/patch-aa
echo x - ttf2pt1/pkg-plist
sed 's/^X//' >ttf2pt1/pkg-plist << 'END-of-ttf2pt1/pkg-plist'
Xbin/cmpf
Xbin/nsfix
Xbin/ttf2pfa
Xbin/t1asm
Xbin/ttf2pt1
Xbin/bz
Xbin/dmpf
Xshare/doc/ttf2pt1/app/X11/README.html
Xshare/doc/ttf2pt1/app/netscape/README.html
Xshare/doc/ttf2pt1/CHANGES.html
Xshare/doc/ttf2pt1/INSTALL.hpux.html
Xshare/doc/ttf2pt1/INSTALL.html
Xshare/doc/ttf2pt1/README.html
Xshare/doc/ttf2pt1/encodings/README.html
Xshare/doc/ttf2pt1/other/README.html
Xshare/ttf2pt1/scripts/x2gs
Xshare/ttf2pt1/scripts/convert.cfg.sample
Xshare/ttf2pt1/scripts/forceiso
Xshare/ttf2pt1/scripts/frommap
Xshare/ttf2pt1/scripts/mkrel
Xshare/ttf2pt1/scripts/t1fdir
Xshare/ttf2pt1/scripts/trans
Xshare/ttf2pt1/scripts/unhtml
Xshare/ttf2pt1/scripts/convert
Xshare/ttf2pt1/scripts/lst.pl
Xshare/ttf2pt1/maps/CP1250.map
Xshare/ttf2pt1/maps/adobe-standard-encoding.map
Xshare/ttf2pt1/maps/unicode-sample.map
Xshare/ttf2pt1/encodings/russian/encodings.alias
Xshare/ttf2pt1/encodings/russian/ibm-1251.tbl
Xshare/ttf2pt1/encodings/russian/ibm-866.tbl
Xshare/ttf2pt1/encodings/russian/iso8859-5.tbl
Xshare/ttf2pt1/encodings/russian/koi8-r.tbl
Xshare/ttf2pt1/encodings/adobestd/adobe-std.tbl
Xshare/ttf2pt1/encodings/latin5/iso8859-9
Xshare/ttf2pt1/encodings/latin4/iso8859-4
Xshare/ttf2pt1/encodings/latin4/iso8859-4.tbl
Xshare/ttf2pt1/encodings/latin2/iso8859-2.tbl
Xshare/ttf2pt1/encodings/latin1/iso8859-1.tbl
Xshare/ttf2pt1/encodings/bulgarian
X@dirrm share/doc/ttf2pt1/app/X11
X@dirrm share/doc/ttf2pt1/app/netscape
X@dirrm share/doc/ttf2pt1/app
X@dirrm share/doc/ttf2pt1/encodings
X@dirrm share/doc/ttf2pt1/other
X@dirrm share/doc/ttf2pt1
X@dirrm share/ttf2pt1/encodings/russian
X@dirrm share/ttf2pt1/encodings/adobestd
X@dirrm share/ttf2pt1/encodings/latin5
X@dirrm share/ttf2pt1/encodings/latin4
X@dirrm share/ttf2pt1/encodings/latin2
X@dirrm share/ttf2pt1/encodings/latin1
X@dirrm share/ttf2pt1/encodings
X@dirrm share/ttf2pt1/maps
X@dirrm share/ttf2pt1/scripts
X@dirrm share/ttf2pt1
END-of-ttf2pt1/pkg-plist
echo x - ttf2pt1/pkg-descr
sed 's/^X//' >ttf2pt1/pkg-descr << 'END-of-ttf2pt1/pkg-descr'
X	Based on ttf2pfa by Andrew Weeks, and help from Frank Siegert. 
X	Modification by Mark Heath. 
X	Further modification by Sergey Babkin. 
X	The Type1 assembler by I. Lee Hetherington with modifications by 
X	Kai-Uwe Herbing.
X
XEver wanted to install a particular  font on your XServer but only could
Xfind the font you are after in True Type Format?
X
XEver asked comp.fonts for a True Type to Type 1 converter and got a List
Xof Commercial software that doesn't run on your Operating System?
X
XWell, this  program should be the  answer. This program is  written in C
X(so it should be portable) and therefore  should run on any OS. The only
Xlimitation is  that the program  requires some method of  converting Big
Xendian integers into local host  integers so the network functions ntohs
Xand ntohl  are used. These  can be replaced  by macros if  your platform
Xdoesn't have them.  Of course the target platform requires  a C compiler
Xand command line ability.
X
XWWW: http://sourceforge.net/projects/ttf2pt1/
END-of-ttf2pt1/pkg-descr
echo x - ttf2pt1/pkg-comment
sed 's/^X//' >ttf2pt1/pkg-comment << 'END-of-ttf2pt1/pkg-comment'
XConverter of TTF fonts (.ttf) into PS fonts and metrics (.pf[ab], .afm)
END-of-ttf2pt1/pkg-comment
echo x - ttf2pt1/distinfo
sed 's/^X//' >ttf2pt1/distinfo << 'END-of-ttf2pt1/distinfo'
XMD5 (ttf2pt1-3.3.1.tgz) = d731d9cc651afd8185e19ea30a4c12b7
END-of-ttf2pt1/distinfo
echo x - ttf2pt1/Makefile
sed 's/^X//' >ttf2pt1/Makefile << 'END-of-ttf2pt1/Makefile'
X# New ports collection makefile for:	tgif2tex
X# Date created:		12 Mar 1998
X# Whom:			Satoshi TAOKA <taoka@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ttf2pt1
XPORTVERSION=	3.3.1
XCATEGORIES+=	print
XMASTER_SITES=	http://download.sourceforge.net/ttf2pt1/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	mi@aldan.freebsd.org
X
X# Needed by some  stuff in the other/. Watch out,  although the FreeType
X# library does  not require X11  by itself, it can  use it. Our  port of
X# freetype13  mistakenly  requires  X11.  To build  this  on  an  X-less
X# server, you'll  have to fix the  FreeType13 port yourself, or  bug its
X# maintainer.
XLIB_DEPENDS+=	ttf:${PORTSDIR}/print/freetype
X
XPROGRAMS=	t1asm ttf2pfa ttf2pt1
XALL_TARGET=	${PROGRAMS}
XCFLAGS+=	-I${PREFIX}/include
XMAKE_ARGS+=	-j 2 -E CFLAGS
X
XPORTSDOCDIR=	${PREFIX}/share/doc/${PORTNAME}
XSHAREDIR=	${PREFIX}/share/${PORTNAME}
X
X# There is no FreeBSD port of FreeType-2 at this moment.
X# It is not even released, AFAIU...
X.ifdef WITH_FREETYPE2
XCFLAGS+=	-DUSE_FREETYPE
X.endif
X
X.if ${PREFIX} != /usr/local
Xpost-patch:
X	${PERL} -i -p -e "s,/usr/local,${PREFIX}," ${WRKSRC}/other/Makefile
X.endif
X
Xpost-build:
X	${PERL} -i -p -e "s,\`pwd\`,${PREFIX}/share/${PORTNAME}/scripts,;" \
X		${WRKSRC}/scripts/*
X	cd ${WRKSRC}/app/netscape && ${MAKE}
X	cd ${WRKSRC}/other && ${MAKE}
X
Xdo-install:
X	cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PROGRAMS} \
X		app/netscape/nsfix \
X		other/bz other/dmpf other/cmpf \
X		${PREFIX}/bin/
X	${MKDIR} ${SHAREDIR}
X	cd ${WRKSRC} && ${CP} -Rp scripts ${SHAREDIR}
X	cd ${WRKSRC} && ${CP} -Rp maps ${SHAREDIR}
X	${INSTALL_SCRIPT} ${WRKSRC}/other/lst.pl ${SHAREDIR}/scripts
X	${MKDIR} ${SHAREDIR}/encodings
X	cd ${WRKSRC}/encodings && ${CP} -Rp latin* adobestd russian \
X		${SHAREDIR}/encodings
X	${LN} -sf russian ${SHAREDIR}/encodings/bulgarian
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PORTSDOCDIR}
X	cd ${WRKSRC} && ${TAR} -cpf - `find . -name \*.html` | \
X		${TAR} -xvpf - -C ${PORTSDOCDIR}
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-ttf2pt1/Makefile
echo x - ttf2pt1/pkg-message
sed 's/^X//' >ttf2pt1/pkg-message << 'END-of-ttf2pt1/pkg-message'
X	==========================================
XThe  scripts  mentioned  in  the  software's  documentation  are
Xinstalled  under  ${PREFIX}/share/ttf2pt1/scripts. The  compiled
Xbinaries are in the usual ${PREFIX}/bin.
X
XThe documentation is, as usual, in ${PREFIX}/share/doc/ttf2pt1.
X
X(Note, ${PREFIX} most likely means /usr/local).
X
XYou'll need to copy the
X
X	${PREFIX}/share/ttf2pt1/scripts/convert.cfg.sample
Xto
X	${PREFIX}/share/ttf2pt1/scripts/convert.cfg
X
Xand edit  the latter to your  preferences to be able  to use the
X``convert'' script.
X	==========================================
END-of-ttf2pt1/pkg-message
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010270151.e9R1p7n15170>