From c1f391f9b7b1b84c734ea387602180c5071ffdfb Mon Sep 17 00:00:00 2001 From: skv Date: Sun, 27 Feb 2005 18:31:48 +0000 Subject: Add liblzxcomp 20020618, LZX compression library. --- archivers/Makefile | 1 + archivers/liblzxcomp/Makefile | 41 ++++++++++++++++++++++++++ archivers/liblzxcomp/distinfo | 2 ++ archivers/liblzxcomp/files/Makefile | 18 +++++++++++ archivers/liblzxcomp/files/patch-lz_nonslide.c | 10 +++++++ archivers/liblzxcomp/pkg-descr | 5 ++++ archivers/liblzxcomp/pkg-plist | 5 ++++ 7 files changed, 82 insertions(+) create mode 100644 archivers/liblzxcomp/Makefile create mode 100644 archivers/liblzxcomp/distinfo create mode 100644 archivers/liblzxcomp/files/Makefile create mode 100644 archivers/liblzxcomp/files/patch-lz_nonslide.c create mode 100644 archivers/liblzxcomp/pkg-descr create mode 100644 archivers/liblzxcomp/pkg-plist (limited to 'archivers') diff --git a/archivers/Makefile b/archivers/Makefile index 54ebed9cdca8..3a33fa57909a 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -33,6 +33,7 @@ SUBDIR += libarchive SUBDIR += libcabinet SUBDIR += libcomprex + SUBDIR += liblzxcomp SUBDIR += libmspack SUBDIR += lzo SUBDIR += lzop diff --git a/archivers/liblzxcomp/Makefile b/archivers/liblzxcomp/Makefile new file mode 100644 index 000000000000..2cae2f7675e2 --- /dev/null +++ b/archivers/liblzxcomp/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: liblzxcomp +# Date created: 27 Feb 2005 +# Whom: Sergey Skvortsov +# +# $FreeBSD$ +# + +PORTNAME= liblzxcomp +PORTVERSION= 20020618 +CATEGORIES= archivers +MASTER_SITES= http://www.speakeasy.org/~russotto/chm/ +DISTNAME= lzx_compress + +MAINTAINER= skv@FreeBSD.org +COMMENT= LZX compression library + +MAKE_ENV= PREFIX=${PREFIX} +USE_REINPLACE= yes + +INSTALLS_SHLIB= YES +SHLIB_MAJOR= 1 +PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}" + +MAN3= lzxcomp.3 +MANCOMPRESSED= yes + +.if defined(NOPROFILE) +PLIST_SUB+= PROFILE="@comment " +.else +PLIST_SUB+= PROFILE="" +.endif + +post-patch: + ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev + @${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \ + ${FILESDIR}/Makefile > ${WRKSRC}/Makefile + ${REINPLACE_CMD} -i '' -e 's|stdint|sys/types|' \ + ${WRKSRC}/lzx_compress.mdoc3 ${WRKSRC}/lzx_layer.c + ${MV} ${WRKSRC}/lzx_compress.mdoc3 ${WRKSRC}/lzxcomp.3 + +.include diff --git a/archivers/liblzxcomp/distinfo b/archivers/liblzxcomp/distinfo new file mode 100644 index 000000000000..aa8f5bd8740f --- /dev/null +++ b/archivers/liblzxcomp/distinfo @@ -0,0 +1,2 @@ +MD5 (lzx_compress.tar.gz) = bc0c2bb66f36b3753645c6a0a8e5ad75 +SIZE (lzx_compress.tar.gz) = 30202 diff --git a/archivers/liblzxcomp/files/Makefile b/archivers/liblzxcomp/files/Makefile new file mode 100644 index 000000000000..b6e7b66246a7 --- /dev/null +++ b/archivers/liblzxcomp/files/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +LIB = lzxcomp +SRCS= lz_nonslide.c lzx_layer.c +INCS= lzx_compress.h + +COPTS= -DLZ_ONEBUFFER -DLAZY -DNONSLIDE +LDADD= -lm + +SHLIB_MAJOR= %%SHLIB_MAJOR%% + +LIBDIR= ${PREFIX}/lib +INCLUDEDIR= ${PREFIX}/include + +MAN3= lzxcomp.3 +MANDIR= ${PREFIX}/man/man + +.include diff --git a/archivers/liblzxcomp/files/patch-lz_nonslide.c b/archivers/liblzxcomp/files/patch-lz_nonslide.c new file mode 100644 index 000000000000..56c1409b3d01 --- /dev/null +++ b/archivers/liblzxcomp/files/patch-lz_nonslide.c @@ -0,0 +1,10 @@ +--- lz_nonslide.c.orig Sun Feb 27 21:08:11 2005 ++++ lz_nonslide.c Sun Feb 27 21:08:47 2005 +@@ -19,6 +19,7 @@ + /* + * Document here + */ ++#include + #include + #include + #include diff --git a/archivers/liblzxcomp/pkg-descr b/archivers/liblzxcomp/pkg-descr new file mode 100644 index 000000000000..8f9b3c7d1977 --- /dev/null +++ b/archivers/liblzxcomp/pkg-descr @@ -0,0 +1,5 @@ +LZX compression engine, suitable for creating compressed CHM files. Or +for use in a CAB-making utility or for any other purpose LZX is useful +for. + +WWW: http://www.speakeasy.org/~russotto/chm/ diff --git a/archivers/liblzxcomp/pkg-plist b/archivers/liblzxcomp/pkg-plist new file mode 100644 index 000000000000..bcae5dc2dce6 --- /dev/null +++ b/archivers/liblzxcomp/pkg-plist @@ -0,0 +1,5 @@ +include/lzx_compress.h +lib/liblzxcomp.a +lib/liblzxcomp.so +lib/liblzxcomp.so.%%SHLIB_MAJOR%% +%%PROFILE%%lib/liblzxcomp_p.a -- cgit