freebsd-ports/textproc/teckit/Makefile
Martin Wilke d7343fba11 TECkit (Text Encoding Conversion toolkit) is a toolkit for converting data
between 8-bit legacy encodings and Unicode. It can also be used for
transliteration of Unicode between different scripts.

TECkit uses a mapping description language (mapping byte encodings to Unicode).
Mapping rules can be extended by (1) the use of character sequences rather than
single characters on either side; (2) by the addition of contextual constraints
(environments) determining when a rule should apply; (3) and by the use of
character classes, optional and repeatable elements, grouping and alternation
to express more complex patterns to be matched and processed.

TECkit is particularly useful with XeTeX (Unicode-aware derivate of TeX).

The following binaries are provided:

  teckit_compile  mapping compiler that allows binary mapping tables (.tec)
                  to be built from TECkit description files (.map)
  sfconv          a tool for converting Standard Format (SF) files
  txtconv         a utility to apply TECkit mappings to plain-text files

WWW: http://scripts.sil.org/TECkit

PR:		ports/138212
Submitted by:	Nikola Lecic <nikola.lecic at anthesphoria.net>
2009-08-28 19:15:02 +00:00

36 lines
941 B
Makefile

# New ports collection makefile for: teckit
# Date created: 24 August 2009
# Whom: Nikola Lecic <nikola.lecic@anthesphoria.net>
#
# $FreeBSD$
#
PORTNAME= teckit
PORTVERSION= 2.5.1
CATEGORIES= textproc
MASTER_SITES= http://scripts.sil.org/svn-view/teckit/TAGS/ \
http://anthesphoria.net/FreeBSD/ports/distfiles/
DISTNAME= TECkit_${PORTVERSION:S|.|_|g}
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= Toolkit for converting data between 8-bit legacy encodings and Unicode
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
USE_AUTOTOOLS= libtool:22
USE_LDCONFIG= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
DOCS= AUTHORS README NEWS docs/*.pdf license/LICENSING.txt
post-patch:
${CHMOD} ${BINMODE} ${WRKSRC}/configure ${WRKSRC}/install-sh
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>