summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-06-20 15:03:58 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-06-20 15:03:58 +0000
commit54b3472ae6eef089f0312c83c1e86b2ac38c8817 (patch)
tree84f7209375dde7e9c01b89635e4ee3b5517eccbf /archivers
parent- fix DESCR to correct maintainer. oops. (diff)
Initial import of libarc - a tiny decompression library supporting bunch of
popular formats.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/libarc/Makefile17
-rw-r--r--archivers/libarc/distinfo1
-rw-r--r--archivers/libarc/files/patch-aa74
-rw-r--r--archivers/libarc/pkg-comment1
-rw-r--r--archivers/libarc/pkg-descr10
-rw-r--r--archivers/libarc/pkg-plist9
6 files changed, 112 insertions, 0 deletions
diff --git a/archivers/libarc/Makefile b/archivers/libarc/Makefile
new file mode 100644
index 000000000000..9ad10b6fdb93
--- /dev/null
+++ b/archivers/libarc/Makefile
@@ -0,0 +1,17 @@
+# New ports collection makefile for: libarc
+# Date Created: 20 June 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libarc
+PORTVERSION= 2.0.2
+CATEGORIES= archivers devel
+MASTER_SITES= http://raiden.goice.co.jp/member/mo/release/
+
+MAINTAINER= sobomax@FreeBSD.org
+
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.mk>
diff --git a/archivers/libarc/distinfo b/archivers/libarc/distinfo
new file mode 100644
index 000000000000..d9ad2b5f28d3
--- /dev/null
+++ b/archivers/libarc/distinfo
@@ -0,0 +1 @@
+MD5 (libarc-2.0.2.tar.gz) = ab4fcc3f3430af13cca599c6545c7a21
diff --git a/archivers/libarc/files/patch-aa b/archivers/libarc/files/patch-aa
new file mode 100644
index 000000000000..dc7aec0d68b6
--- /dev/null
+++ b/archivers/libarc/files/patch-aa
@@ -0,0 +1,74 @@
+--- Makefile.orig Tue Jun 13 07:21:19 2000
++++ Makefile Tue Jun 20 17:44:24 2000
+@@ -1,11 +1,12 @@
+-CC = gcc
+-CFLAGS = -O2 -I. -Wall
++CC ?= gcc
++CFLAGS += -I. -Wall
+
+-PREFIX = /usr/local
++#PREFIX = /usr/local
+ AR = ar -cr
+ RANLIB = ranlib
+ INSTALL = install -c
+ RM = rm -f
++LN = ln -sf
+
+ OBJS = inflate.o url.o url_file.o url_inflate.o net.o url_buff.o url_ftp.o \
+ url_mem.o url_dir.o url_http.o url_pipe.o arc.o arc_lzh.o \
+@@ -14,29 +15,42 @@
+ url_hqxdecode.o url_qsdecode.o url_news.o url_newsgroup.o url_cgiesc.o \
+ arc_mime.o
+
++SOOBJS = $(OBJS:S/.o/.so/g)
++
+ # readdir_win.o (for Windows)
+
+ LIB=libarc.a
++SOLIB=libarc.so
++SOVERSION?=1
+
+-
+-all:: $(LIB)
++all:: $(LIB) $(SOLIB) arccat
+
+ $(LIB): $(OBJS)
+ $(AR) $@ $(OBJS)
+ $(RANLIB) $@
+
+-arccat: arccat.o $(LIB)
+- $(CC) -o $@ arccat.o $(LIB)
++$(SOLIB): $(SOOBJS)
++ $(CC) -shared -Wl,-soname -Wl,$@.$(SOVERSION) -o $@.$(SOVERSION) $(SOOBJS)
++ $(LN) $@.$(SOVERSION) $@
++
++arccat: arccat.o $(SOLIB)
++ $(CC) $(CFLAGS) -o $@ arccat.o -L. -larc
+
+ clean::
+- $(RM) $(LIB) *.o arccat *~ libarc/*~
++ $(RM) $(LIB) $(SOLIB).$(SOVERSION) *.o *.so arccat *~ libarc/*~
+
+-install::
+- test -d $(PREFIX)/lib || mkdir -p $(PREFIX)/lib
+- $(INSTALL) -m 444 $(LIB) $(PREFIX)/lib
+- $(RANLIB) $(PREFIX)/lib/$(LIB)
++install:: all
++ $(BSD_INSTALL_PROGRAM) arccat $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) $(SOLIB).$(SOVERSION) $(PREFIX)/lib
++ $(LN) $(PREFIX)/lib/$(SOLIB).$(SOVERSION) $(PREFIX)/lib/$(SOLIB)
++ $(BSD_INSTALL_DATA) $(LIB) $(PREFIX)/lib
+ test -d $(PREFIX)/include/libarc || mkdir -p $(PREFIX)/include/libarc
+- $(INSTALL) -m 444 libarc/url.h $(PREFIX)/include/libarc
+- $(INSTALL) -m 444 libarc/arc.h $(PREFIX)/include/libarc
+- $(INSTALL) -m 444 libarc/mblock.h $(PREFIX)/include/libarc
+- $(INSTALL) -m 444 libarc/memb.h $(PREFIX)/include/libarc
++ $(BSD_INSTALL_DATA) libarc/url.h $(PREFIX)/include/libarc
++ $(BSD_INSTALL_DATA) libarc/arc.h $(PREFIX)/include/libarc
++ $(BSD_INSTALL_DATA) libarc/mblock.h $(PREFIX)/include/libarc
++ $(BSD_INSTALL_DATA) libarc/memb.h $(PREFIX)/include/libarc
++
++.SUFFIXES: .so .c
++
++.c.so:
++ $(CC) $(CFLAGS) -fPIC -fpic -DPIC -c $(.IMPSRC) -o $(.TARGET)
diff --git a/archivers/libarc/pkg-comment b/archivers/libarc/pkg-comment
new file mode 100644
index 000000000000..fc2ff3e2d358
--- /dev/null
+++ b/archivers/libarc/pkg-comment
@@ -0,0 +1 @@
+Tiny C library to decompress data in several popular compression formats
diff --git a/archivers/libarc/pkg-descr b/archivers/libarc/pkg-descr
new file mode 100644
index 000000000000..b8eef5e4d033
--- /dev/null
+++ b/archivers/libarc/pkg-descr
@@ -0,0 +1,10 @@
+A tiny C library and sample program to extract data compressed using dozen
+popular archivers. Currently following formats are supported:
+
+- tar (*.tar)
+- tar + gzip'ed (*.tar.gz, *.tgz) (deflate)
+- zip (*.zip) (implode, deflate)
+- lzh (*.lzh) (lh0, lh1, lh2, lh3, lh4, lh5, lh6, lzs, lz5, lz4)
+- MIME multipart
+
+WWW: http://raiden.goice.co.jp/member/mo/release/#libarc
diff --git a/archivers/libarc/pkg-plist b/archivers/libarc/pkg-plist
new file mode 100644
index 000000000000..c7d3433146f5
--- /dev/null
+++ b/archivers/libarc/pkg-plist
@@ -0,0 +1,9 @@
+bin/arccat
+include/libarc/arc.h
+include/libarc/mblock.h
+include/libarc/memb.h
+include/libarc/url.h
+lib/libarc.a
+lib/libarc.so
+lib/libarc.so.1
+@dirrm include/libarc