From 1d2479534e9ed6d456c98ab33813d2d511b73005 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Fri, 23 Sep 2005 19:58:45 +0000 Subject: Remove devel/libunrar (wrong category) Notified by: dinoex Add new port archivers/libunrar "Library to work with RAR archivies" PR: ports/86508 Submitted by: Alex Samorukov Approved by: pav (mentor) --- archivers/Makefile | 1 + archivers/libunrar/Makefile | 35 ++++++++++++++++++++++++ archivers/libunrar/distinfo | 2 ++ archivers/libunrar/files/patch-makefile.unix | 40 ++++++++++++++++++++++++++++ archivers/libunrar/pkg-descr | 7 +++++ archivers/libunrar/pkg-plist | 4 +++ 6 files changed, 89 insertions(+) create mode 100644 archivers/libunrar/Makefile create mode 100644 archivers/libunrar/distinfo create mode 100644 archivers/libunrar/files/patch-makefile.unix create mode 100644 archivers/libunrar/pkg-descr create mode 100644 archivers/libunrar/pkg-plist (limited to 'archivers') diff --git a/archivers/Makefile b/archivers/Makefile index 385d19797971..ab5d5f1d7371 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -39,6 +39,7 @@ SUBDIR += libcomprex SUBDIR += liblzxcomp SUBDIR += libmspack + SUBDIR += libunrar SUBDIR += lzma SUBDIR += lzo SUBDIR += lzo2 diff --git a/archivers/libunrar/Makefile b/archivers/libunrar/Makefile new file mode 100644 index 000000000000..100ea533e562 --- /dev/null +++ b/archivers/libunrar/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: unrar +# Date created: 23 Sep 2005 +# Whom: samm@os2.kiev.ua +# +# $FreeBSD$ +# + +PORTNAME= libunrar +PORTVERSION= 3.53 +CATEGORIES= archivers +MASTER_SITES= http://files1.rarlab.com/rar/ \ + http://files2.rarlab.com/rar/ \ + http://files3.rarlab.com/rar/ \ + http://files4.rarlab.com/rar/ \ + http://files5.rarlab.com/rar/ \ + http://files6.rarlab.com/rar/ +DISTNAME= unrarsrc-3.5.3 + +MAINTAINER= samm@os2.kiev.ua +COMMENT= Library to work with RAR archivies + +WRKSRC= ${WRKDIR}/unrar + +USE_GMAKE= yes +MAKEFILE= makefile.unix +ALL_TARGET= lib +INSTALLS_SHLIB= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/libunrar.so.3 ${PREFIX}/lib/ + cd ${PREFIX}/lib && ${LN} -sf libunrar.so.3 libunrar.so + ${MKDIR} ${PREFIX}/include/libunrar3 + ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar3/dll.hpp + +.include diff --git a/archivers/libunrar/distinfo b/archivers/libunrar/distinfo new file mode 100644 index 000000000000..42b3359a7986 --- /dev/null +++ b/archivers/libunrar/distinfo @@ -0,0 +1,2 @@ +MD5 (unrarsrc-3.5.3.tar.gz) = 4e8b975374064b774ea80067e11ccf13 +SIZE (unrarsrc-3.5.3.tar.gz) = 122678 diff --git a/archivers/libunrar/files/patch-makefile.unix b/archivers/libunrar/files/patch-makefile.unix new file mode 100644 index 000000000000..60649ebfb41a --- /dev/null +++ b/archivers/libunrar/files/patch-makefile.unix @@ -0,0 +1,40 @@ +--- makefile.unix.orig Sat Apr 30 04:00:12 2005 ++++ makefile.unix Fri Sep 23 16:22:04 2005 +@@ -7,9 +7,10 @@ + + # Linux using GCC + CXX=g++ +-CXXFLAGS=-O2 +-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE ++CXXFLAGS=$(CFLAGS) -fPIC -DPIC ++DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGUI -DSILENT + STRIP=strip ++RANLIB=ranlib + + # Linux using LCC + #CXX=lcc +@@ -86,7 +87,7 @@ + LINK=$(CXX) + + UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o +-LIB_OBJ=filestr.o scantree.o dll.o ++LIB_OBJ=dll.o + + OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savepos.o global.o file.o filefn.o filcreat.o \ + archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \ +@@ -114,6 +115,12 @@ + $(STRIP) default.sfx + + lib: WHAT=RARDLL +-lib: $(OBJECTS) $(LIB_OBJ) +- @rm -f libunrar.so +- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) ++lib: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ) ++ @rm -f libunrar.so.3 ++ $(LINK) -shared -o libunrar.so.3 $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ) ++ ++liba: WHAT=RARDLL ++liba: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ) ++ @rm -f libunrar.a ++ $(AR) rc libunrar.a $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ) ++ $(RANLIB) libunrar.a diff --git a/archivers/libunrar/pkg-descr b/archivers/libunrar/pkg-descr new file mode 100644 index 000000000000..00485e08f9c1 --- /dev/null +++ b/archivers/libunrar/pkg-descr @@ -0,0 +1,7 @@ + The UnRAR library is a minor part of the RAR archiver and contains + RAR uncompression algorithm. UnRAR requires very small volume of + memory to operate. + UnRAR library can be used by other programs to extract RAR archives. + This package containe small fixes from the http://mcmcc.bat.ru/clamav/. + +WWW: http://www.rarsoft.com/ diff --git a/archivers/libunrar/pkg-plist b/archivers/libunrar/pkg-plist new file mode 100644 index 000000000000..75244d95c068 --- /dev/null +++ b/archivers/libunrar/pkg-plist @@ -0,0 +1,4 @@ +lib/libunrar.so +lib/libunrar.so.3 +include/libunrar3/dll.hpp +@dirrm include/libunrar3 -- cgit v1.2.3