This is a package of libraries to use the FreeType library from the

perl language. It contains following pieces.

<FreeType.xs> This is a simple caller of the FreeType library. It has
same API as the FreeType library, so please read a manual of that to
understand how to use this.

<FreeTypeWrapper.pm> This is a simple wrapper of FreeType.xs to use
the FreeType library from perl with easy, perl-like API.

<ftinfo.pl> This is a dumper of a lot of information in each TrueType
fonts. This convert them as human readable strings.

<mkttfdir.pl> This is a maker of fonts.dir by parsing TTF and TTC
fils. It has special handler for DynaLab fonts, so it make good
fonts.dir automatically. And it detects what language's fonts are
contained in it by looking at code_page_range field in os2 table, so
it makes right entries.

See also <http://www.io.com/~kazushi/xtt/#perlftlib>

Note that ftinfo core-dumps with a signal 11 in case using
perl5.00502. :-)
Submitted by:	Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
This commit is contained in:
SADA Kenji 1999-01-01 22:18:54 +00:00
parent 8b10be26ac
commit 6854484cd3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=15761
6 changed files with 111 additions and 0 deletions

40
print/perlftlib/Makefile Normal file
View file

@ -0,0 +1,40 @@
# New ports collection makefile for: perlftlib
# Version required: 1.2
# Date created: 98/12/22
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
DISTNAME= perlftlib-1.2
CATEGORIES= print perl5
MASTER_SITES= ftp://ftp.big.or.jp/pub/usr2/jam/ft/ \
http://WWW.FreeBSD.ORG/~sada/distfiles/ \
http://WWW.jp.FreeBSD.ORG/~sada/distfiles/
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
LIB_DEPENDS= ttf.3:${PORTSDIR}/print/freetype
RUN_DEPENDS= ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/jcode.pl:${PORTSDIR}/japanese/p5-jcode.pl
USE_PERL5= yes
NOMANCOMPRESS= yes
MAN1= mkttfdir.1 ftinfo.1
MAKE_ENV= PERL_VER=${PERL_VER} PERL5=${PERL5}
pre-patch:
${MV} ${WRKSRC}/FreeType/Makefile.PL ${WRKSRC}/FreeType/Makefile.PL.bak
${SED} 's,/usr/local/X11R6.3,${PREFIX},' \
${WRKSRC}/FreeType/Makefile.PL.bak \
> ${WRKSRC}/FreeType/Makefile.PL
post-build:
cd ${WRKSRC}; \
for DIST in ftinfo mkttfdir; do \
${MV} $${DIST} $${DIST}.bak; \
${SED} -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
$${DIST}.bak > $${DIST}; \
done
.include <bsd.port.mk>

1
print/perlftlib/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (perlftlib-1.2.tar.gz) = b8b520dd355181b572a465bebf822d02

View file

@ -0,0 +1,35 @@
--- ./Makefile.orig Mon Dec 14 14:13:26 1998
+++ ./Makefile Tue Dec 22 16:14:46 1998
@@ -1,8 +1,8 @@
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
-PERL = perl
-PERLLIBDIR = /usr/local/lib/perl5/site_perl
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
+PERL = ${PERL5}
+PERLLIBDIR = ${PREFIX}/lib/perl5/site_perl
VERSION = 1.2
@@ -12,7 +12,9 @@
all: $(FREETYPELIB) $(PROGRAMS) $(MANFILES)
install: installlib $(PROGRAMS)
- cp $(PROGRAMS) $(BINDIR)
+ for file in $(PROGRAMS); do \
+ ${BSD_INSTALL_SCRIPT} $${file} $(BINDIR); \
+ done
rm -f $(MANDIR)/ftinfo.1
ln -s $(BINDIR)/ftinfo $(MANDIR)/ftinfo.1
rm -f $(MANDIR)/mkttfdir.1
@@ -43,7 +45,7 @@
installlib: $(FREETYPELIB)
cd FreeType; $(MAKE) $(MFLAGS) install
- cp FreeTypeWrapper.pm $(PERLLIBDIR)
+ cp FreeTypeWrapper.pm $(PERLLIBDIR)/${PERL_VER}
$(FREETYPELIB): FreeType/Makefile
cd FreeType; $(MAKE) $(MFLAGS)

View file

@ -0,0 +1 @@
libraries to use the FreeType library from the perl language

23
print/perlftlib/pkg-descr Normal file
View file

@ -0,0 +1,23 @@
This is a package of libraries to use the FreeType library from the
perl language. It contains following pieces.
<FreeType.xs> This is a simple caller of the FreeType library. It has
same API as the FreeType library, so please read a manual of that to
understand how to use this.
<FreeTypeWrapper.pm> This is a simple wrapper of FreeType.xs to use
the FreeType library from perl with easy, perl-like API.
<ftinfo.pl> This is a dumper of a lot of information in each TrueType
fonts. This convert them as human readable strings.
<mkttfdir.pl> This is a maker of fonts.dir by parsing TTF and TTC
fils. It has special handler for DynaLab fonts, so it make good
fonts.dir automatically. And it detects what language's fonts are
contained in it by looking at code_page_range field in os2 table, so
it makes right entries.
See also <http://www.io.com/~kazushi/xtt/#perlftlib>
Note that ftinfo core-dumps with a signal 11 in case using
perl5.00502. :-)

11
print/perlftlib/pkg-plist Normal file
View file

@ -0,0 +1,11 @@
bin/mkttfdir
bin/ftinfo
lib/perl5/site_perl/%%PERL_VER%%/FreeTypeWrapper.pm
lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/auto/FreeType/FreeType.so
lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/auto/FreeType/FreeType.bs
lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/auto/FreeType/.packlist
lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/auto/FreeType/autosplit.ix
lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/FreeType.pm
@comment I do not know how to treat the next files
@comment lib/perl5/%%PERL_VERSION%%/i386-freebsd/perllocal.pod
@dirrm lib/perl5/site_perl/%%PERL_VER%%/i386-freebsd/auto/FreeType