aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2005-02-28 02:31:48 +0800
committerskv <skv@FreeBSD.org>2005-02-28 02:31:48 +0800
commitc1f391f9b7b1b84c734ea387602180c5071ffdfb (patch)
treec805397a192bf4e869e7adcf06f6543dbcd5ba2c /archivers
parent58d5b63115f03c574319e608e3b9e6cdec774217 (diff)
downloadfreebsd-ports-gnome-c1f391f9b7b1b84c734ea387602180c5071ffdfb.tar.gz
freebsd-ports-gnome-c1f391f9b7b1b84c734ea387602180c5071ffdfb.tar.zst
freebsd-ports-gnome-c1f391f9b7b1b84c734ea387602180c5071ffdfb.zip
Add liblzxcomp 20020618, LZX compression library.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/liblzxcomp/Makefile41
-rw-r--r--archivers/liblzxcomp/distinfo2
-rw-r--r--archivers/liblzxcomp/files/Makefile18
-rw-r--r--archivers/liblzxcomp/files/patch-lz_nonslide.c10
-rw-r--r--archivers/liblzxcomp/pkg-descr5
-rw-r--r--archivers/liblzxcomp/pkg-plist5
7 files changed, 82 insertions, 0 deletions
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 <skv@protey.ru>
+#
+# $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 <bsd.port.mk>
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 <bsd.lib.mk>
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 <sys/types.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <assert.h>
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