summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-09-04 12:07:15 +0000
committerobache <obache@pkgsrc.org>2008-09-04 12:07:15 +0000
commite4188ec6e69fdf4ad633c97675036b81561b377a (patch)
tree6f52dcf8e2ec0873f79efc78cfd4f1eec8e418e2
parent4a31e7a4f5ff06142760d95aee80915149c35294 (diff)
downloadpkgsrc-e4188ec6e69fdf4ad633c97675036b81561b377a.tar.gz
Import lzmalib-0.0.1 as archivers/lzmalib.
This package includes a thin wrapper library of LZMA SDK written by Igor Pavlov.
-rw-r--r--archivers/lzmalib/DESCR2
-rw-r--r--archivers/lzmalib/Makefile21
-rw-r--r--archivers/lzmalib/PLIST7
-rw-r--r--archivers/lzmalib/buildlink3.mk19
-rw-r--r--archivers/lzmalib/distinfo6
-rw-r--r--archivers/lzmalib/patches/patch-aa24
6 files changed, 79 insertions, 0 deletions
diff --git a/archivers/lzmalib/DESCR b/archivers/lzmalib/DESCR
new file mode 100644
index 00000000000..5d853321eb0
--- /dev/null
+++ b/archivers/lzmalib/DESCR
@@ -0,0 +1,2 @@
+This package includes a thin wrapper library of LZMA SDK written
+by Igor Pavlov.
diff --git a/archivers/lzmalib/Makefile b/archivers/lzmalib/Makefile
new file mode 100644
index 00000000000..9f3af8ddc2f
--- /dev/null
+++ b/archivers/lzmalib/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/04 12:07:15 obache Exp $
+#
+
+DISTNAME= lzmalib-0.0.1
+CATEGORIES= archivers
+MASTER_SITES= http://tokyocabinet.sourceforge.net/misc/
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://tokyocabinet.sourceforge.net/misc/
+COMMENT= Thin wrapper library of LZMA
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake
+
+# Link with c++ instead (see also patch-aa)
+CONFIGURE_ENV+= ac_cv_lib_stdcpp_main=no
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/archivers/lzmalib/PLIST b/archivers/lzmalib/PLIST
new file mode 100644
index 00000000000..eb995f67033
--- /dev/null
+++ b/archivers/lzmalib/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/04 12:07:15 obache Exp $
+bin/lzmacmd
+include/lzmalib.h
+lib/liblzma.a
+lib/liblzma.so
+lib/liblzma.so.1
+lib/liblzma.so.1.1.0
diff --git a/archivers/lzmalib/buildlink3.mk b/archivers/lzmalib/buildlink3.mk
new file mode 100644
index 00000000000..0c74842625d
--- /dev/null
+++ b/archivers/lzmalib/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/09/04 12:07:15 obache Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LZMALIB_BUILDLINK3_MK:= ${LZMALIB_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= lzmalib
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlzmalib}
+BUILDLINK_PACKAGES+= lzmalib
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}lzmalib
+
+.if ${LZMALIB_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.lzmalib+= lzmalib>=0.0.1
+BUILDLINK_PKGSRCDIR.lzmalib?= ../../archivers/lzmalib
+.endif # LZMALIB_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/archivers/lzmalib/distinfo b/archivers/lzmalib/distinfo
new file mode 100644
index 00000000000..0a866ede8b4
--- /dev/null
+++ b/archivers/lzmalib/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/04 12:07:15 obache Exp $
+
+SHA1 (lzmalib-0.0.1.tar.gz) = 638e511d1c6c5018f071b0f145bdfb242c34b6ce
+RMD160 (lzmalib-0.0.1.tar.gz) = caad5a009f3247ee1d0ee1500b90db5469ce1bd4
+Size (lzmalib-0.0.1.tar.gz) = 112202 bytes
+SHA1 (patch-aa) = 475d43320384887faf6d14c13d2f7b941327299e
diff --git a/archivers/lzmalib/patches/patch-aa b/archivers/lzmalib/patches/patch-aa
new file mode 100644
index 00000000000..a9f3bf4cdda
--- /dev/null
+++ b/archivers/lzmalib/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/04 12:07:15 obache Exp $
+
+Link with c++ instead of cc -lstdc++ to depended package easy to link.
+
+--- Makefile.in.orig 2008-07-23 08:40:09.000000000 +0000
++++ Makefile.in
+@@ -125,7 +125,7 @@ liblzma.a : $(LIBOBJFILES)
+
+
+ liblzma.so.$(LIBVER).$(LIBREV).0 : $(LIBOBJFILES)
+- $(CC) -shared -Wl,-soname,liblzma.so.$(LIBVER) -o $@ $(LIBOBJFILES) \
++ $(CXX) -shared -Wl,-soname,liblzma.so.$(LIBVER) -o $@ $(LIBOBJFILES) \
+ $(LDFLAGS) $(LIBS)
+
+
+@@ -138,7 +138,7 @@ liblzma.so : liblzma.so.$(LIBVER).$(LIBR
+
+
+ liblzma.$(LIBVER).$(LIBREV).0.dylib : $(LIBOBJFILES)
+- $(CC) -dynamiclib -o $@ \
++ $(CXX) -dynamiclib -o $@ \
+ -install_name $(LIBDIR)/liblzma.$(LIBVER).dylib \
+ -current_version $(LIBVER).$(LIBREV).0 -compatibility_version $(LIBVER) \
+ $(LIBOBJFILES) $(LDFLAGS) $(LIBS)