diff --git a/textproc/Makefile b/textproc/Makefile index a552f32928de..0a359392626e 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -181,6 +181,7 @@ SUBDIR += xls2xml SUBDIR += xml-i18n-tools SUBDIR += xml4j + SUBDIR += xmlppm SUBDIR += xp SUBDIR += xsl-docbook-modular SUBDIR += xt diff --git a/textproc/xmlppm/Makefile b/textproc/xmlppm/Makefile new file mode 100644 index 000000000000..cecf88d1b101 --- /dev/null +++ b/textproc/xmlppm/Makefile @@ -0,0 +1,30 @@ +# ex:ts=8 +# New ports collection makefile for: xmlppm +# Date created: May 15, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= xmlppm +PORTVERSION= 0.95.2 +CATEGORIES= textproc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://www.cs.cornell.edu/People/jcheney/xmlppm/ +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= ijliao@FreeBSD.org + +LIB_DEPENDS= expat.2:${PORTSDIR}/textproc/expat2 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src +USE_GMAKE= yes + +post-patch: + @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile + +do-install: + @(cd ${WRKSRC} ; ${INSTALL_PROGRAM} xmlppm xmlunppm ${PREFIX}/bin) + +.include diff --git a/textproc/xmlppm/distinfo b/textproc/xmlppm/distinfo new file mode 100644 index 000000000000..f6bbbdb5359e --- /dev/null +++ b/textproc/xmlppm/distinfo @@ -0,0 +1 @@ +MD5 (xmlppm-0.95.2-src.tar.gz) = d8de4389d735df3806c1cf72bfd03068 diff --git a/textproc/xmlppm/files/patch-Makefile b/textproc/xmlppm/files/patch-Makefile new file mode 100644 index 000000000000..3a5dee160556 --- /dev/null +++ b/textproc/xmlppm/files/patch-Makefile @@ -0,0 +1,12 @@ +--- Makefile.orig Sat May 12 03:21:58 2001 ++++ Makefile Tue May 15 11:59:08 2001 +@@ -1,7 +1,6 @@ +-CC = gcc + #XPPMFLAGS = -DELTPREC_P=1 -DATTPREC=1 -DCHARPREC=1 -DELTORDER=5 -DATTORDER=5 -DCHARORDER=5 -DATTS -DCHAR -DSYMS +-CFLAGS = $(XPPMFLAGS) -O2 -Wall -ansi +-LFLAGS = -lexpat -lm ++CFLAGS += -I%%LOCALBASE%%/include ++LFLAGS = -L%%LOCALBASE%%/lib -lexpat -lm + #LFLAGS = /usr/lib/libexpat.a -lm + + BINARIES = xmlppm xmlunppm diff --git a/textproc/xmlppm/pkg-comment b/textproc/xmlppm/pkg-comment new file mode 100644 index 000000000000..2651dd2cfb11 --- /dev/null +++ b/textproc/xmlppm/pkg-comment @@ -0,0 +1 @@ +XML-Conscious PPM Compression diff --git a/textproc/xmlppm/pkg-descr b/textproc/xmlppm/pkg-descr new file mode 100644 index 000000000000..bcee1485b302 --- /dev/null +++ b/textproc/xmlppm/pkg-descr @@ -0,0 +1,8 @@ +XMLPPM is a data compression program that compresses XML files from 5 to +30% better than any existing text or XML-specific compressors. It is a +combination of the well-known Prediction by Partial Match (PPM) algorithm +for text compression, first described by Cleary and Witten in 1984, and an +approach to modeling tree-structured data called Multiplexed Hierarchical +Modeling (MHM) that I have developed. + +WWW: http://xmlppm.sourceforge.net/ diff --git a/textproc/xmlppm/pkg-plist b/textproc/xmlppm/pkg-plist new file mode 100644 index 000000000000..dc589840cf56 --- /dev/null +++ b/textproc/xmlppm/pkg-plist @@ -0,0 +1,2 @@ +bin/xmlppm +bin/xmlunppm