summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-04-15 16:22:59 +0000
committerdrochner <drochner@pkgsrc.org>2011-04-15 16:22:59 +0000
commit343f7ba33b4897079be1c36e79cdbcac7c634eac (patch)
tree20911370d4e24dd8100e842833fa1a73686bc68b
parent689ec19755f49eada98a926d832b397b00a4500c (diff)
downloadpkgsrc-343f7ba33b4897079be1c36e79cdbcac7c634eac.tar.gz
get liblzo back from Attic, it is still needed
-rw-r--r--archivers/Makefile3
-rw-r--r--archivers/liblzo/DESCR8
-rw-r--r--archivers/liblzo/Makefile25
-rw-r--r--archivers/liblzo/PLIST14
-rw-r--r--archivers/liblzo/buildlink3.mk13
-rw-r--r--archivers/liblzo/distinfo7
-rw-r--r--archivers/liblzo/patches/patch-aa14
-rw-r--r--archivers/liblzo/patches/patch-ab13
8 files changed, 96 insertions, 1 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 648e738099e..ea09032d880 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2011/03/23 10:33:29 adam Exp $
+# $NetBSD: Makefile,v 1.120 2011/04/15 16:22:59 drochner Exp $
#
COMMENT= Archivers
@@ -35,6 +35,7 @@ SUBDIR+= lcab
SUBDIR+= lha
SUBDIR+= libarchive
SUBDIR+= libcomprex
+SUBDIR+= liblzo
SUBDIR+= libzip
SUBDIR+= lzip
SUBDIR+= lzma
diff --git a/archivers/liblzo/DESCR b/archivers/liblzo/DESCR
new file mode 100644
index 00000000000..4fdf63fea01
--- /dev/null
+++ b/archivers/liblzo/DESCR
@@ -0,0 +1,8 @@
+LZO is a portable lossless data compression library written in ANSI
+C. It offers pretty fast compression and *very* fast decompression.
+Decompression requires no memory. In addition, there are slower
+compression levels achieving a quite competitive compression ratio
+while still decompressing at this very high speed.
+
+This package contains the older v1 release of the library.
+See pkgsrc/archivers/lzo for the current version.
diff --git a/archivers/liblzo/Makefile b/archivers/liblzo/Makefile
new file mode 100644
index 00000000000..6a9b5d46f51
--- /dev/null
+++ b/archivers/liblzo/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.25 2011/04/15 16:23:00 drochner Exp $
+#
+
+DISTNAME= lzo-1.08
+PKGNAME= lib${DISTNAME}
+PKGREVISION= 1
+CATEGORIES= archivers
+MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/LZO-v1/
+
+MAINTAINER= rh@NetBSD.org
+HOMEPAGE= http://www.oberhumer.com/opensource/lzo/
+COMMENT= Portable lossless data compression library (v1)
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+
+# Don't spuriously detect zlib, as it's not needed for the library.
+BUILDLINK_TRANSFORM+= rm:-lz
+
+TEST_TARGET= check
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/liblzo/PLIST b/archivers/liblzo/PLIST
new file mode 100644
index 00000000000..c36c6c67287
--- /dev/null
+++ b/archivers/liblzo/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.4 2011/04/15 16:23:00 drochner Exp $
+include/lzo1.h
+include/lzo16bit.h
+include/lzo1a.h
+include/lzo1b.h
+include/lzo1c.h
+include/lzo1f.h
+include/lzo1x.h
+include/lzo1y.h
+include/lzo1z.h
+include/lzo2a.h
+include/lzoconf.h
+include/lzoutil.h
+lib/liblzo.la
diff --git a/archivers/liblzo/buildlink3.mk b/archivers/liblzo/buildlink3.mk
new file mode 100644
index 00000000000..da81bac77f4
--- /dev/null
+++ b/archivers/liblzo/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.11 2011/04/15 16:23:00 drochner Exp $
+
+BUILDLINK_TREE+= liblzo
+
+.if !defined(LIBLZO_BUILDLINK3_MK)
+LIBLZO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.liblzo+= liblzo>=1.08
+BUILDLINK_PKGSRCDIR.liblzo?= ../../archivers/liblzo
+BUILDLINK_ABI_DEPENDS.liblzo+= liblzo>=1.08nb1
+.endif # LIBLZO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -liblzo
diff --git a/archivers/liblzo/distinfo b/archivers/liblzo/distinfo
new file mode 100644
index 00000000000..2a74d25ceea
--- /dev/null
+++ b/archivers/liblzo/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.10 2011/04/15 16:23:00 drochner Exp $
+
+SHA1 (lzo-1.08.tar.gz) = ad1b458cf9d5d49153665d2adc25bd6129028221
+RMD160 (lzo-1.08.tar.gz) = d7013f09a6c86241ceb75475323e841d3d9d0867
+Size (lzo-1.08.tar.gz) = 426692 bytes
+SHA1 (patch-aa) = e889ba225be55952b2dd65e0960561bf292d4843
+SHA1 (patch-ab) = 13cee5843c7f33896744266a9c2832826f04142a
diff --git a/archivers/liblzo/patches/patch-aa b/archivers/liblzo/patches/patch-aa
new file mode 100644
index 00000000000..feea866b94c
--- /dev/null
+++ b/archivers/liblzo/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.7 2011/04/15 16:23:00 drochner Exp $
+
+--- src/lzo_init.c.orig 2002-07-13 01:31:52.000000000 +0000
++++ src/lzo_init.c
+@@ -169,7 +169,8 @@ static lzo_bool basic_integral_check(voi
+ COMPILE_TIME_ASSERT(LZO_UINT32_MAX == LZO_UTYPE_MAX(sizeof(lzo_uint32)));
+ COMPILE_TIME_ASSERT(LZO_UINT_MAX == LZO_UTYPE_MAX(sizeof(lzo_uint)));
+ #if !defined(__LZO_IN_MINILZO)
+- COMPILE_TIME_ASSERT(SIZE_T_MAX == LZO_UTYPE_MAX(sizeof(size_t)));
++/* is this redundant ? */
++/* COMPILE_TIME_ASSERT(SIZE_T_MAX == LZO_UTYPE_MAX(sizeof(size_t))); */
+ #endif
+
+ r &= __lzo_assert(LZO_BYTE(257) == 1);
diff --git a/archivers/liblzo/patches/patch-ab b/archivers/liblzo/patches/patch-ab
new file mode 100644
index 00000000000..f332262526c
--- /dev/null
+++ b/archivers/liblzo/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2011/04/15 16:23:00 drochner Exp $
+
+--- configure.orig Fri May 21 22:08:40 2004
++++ configure
+@@ -12063,8 +12063,6 @@ if test "X$GCC" = Xyes; then
+ MFX_CC="GCC"
+ if test "X$enable_debug" = Xyes; then
+ CFLAGS="$CFLAGS -O0"
+- else
+- CFLAGS="$CFLAGS -O2"
+ fi
+ CFLAGS="$CFLAGS -Wall -Wcast-align -Wcast-qual -Wwrite-strings"
+ case $MFX_CPU in