diff options
author | sobomax <sobomax@FreeBSD.org> | 2000-06-20 23:03:58 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2000-06-20 23:03:58 +0800 |
commit | 9779b1e7cacf276afe1f9061363fe3442375aba8 (patch) | |
tree | 0868e79825ce8c7638d2cb8c165cb6cd0c23eba0 | |
parent | 94297ec014c95a716e888731ca7b435d71f616dc (diff) | |
download | freebsd-ports-graphics-9779b1e7cacf276afe1f9061363fe3442375aba8.tar.gz freebsd-ports-graphics-9779b1e7cacf276afe1f9061363fe3442375aba8.tar.zst freebsd-ports-graphics-9779b1e7cacf276afe1f9061363fe3442375aba8.zip |
Initial import of libarc - a tiny decompression library supporting bunch of
popular formats.
-rw-r--r-- | archivers/libarc/Makefile | 17 | ||||
-rw-r--r-- | archivers/libarc/distinfo | 1 | ||||
-rw-r--r-- | archivers/libarc/files/patch-aa | 74 | ||||
-rw-r--r-- | archivers/libarc/pkg-comment | 1 | ||||
-rw-r--r-- | archivers/libarc/pkg-descr | 10 | ||||
-rw-r--r-- | archivers/libarc/pkg-plist | 9 |
6 files changed, 112 insertions, 0 deletions
diff --git a/archivers/libarc/Makefile b/archivers/libarc/Makefile new file mode 100644 index 00000000000..9ad10b6fdb9 --- /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 00000000000..d9ad2b5f28d --- /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 00000000000..dc7aec0d68b --- /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 00000000000..fc2ff3e2d35 --- /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 00000000000..b8eef5e4d03 --- /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 00000000000..c7d3433146f --- /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 |