diff options
author | mnag <mnag@FreeBSD.org> | 2005-09-23 19:58:45 +0000 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-09-23 19:58:45 +0000 |
commit | dd06e43386b162727a1390c615f7568e0e947279 (patch) | |
tree | 45960f5aeba86cb5b46951518181e8d481f51c99 /archivers | |
parent | 18065aa1ec2f23875d2c9081c5088362dd0df59c (diff) | |
download | FreeBSD-ports-dd06e43386b162727a1390c615f7568e0e947279.zip FreeBSD-ports-dd06e43386b162727a1390c615f7568e0e947279.tar.gz |
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 <samm@os2.kiev.ua>
Approved by: pav (mentor)
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/libunrar/Makefile | 35 | ||||
-rw-r--r-- | archivers/libunrar/distinfo | 2 | ||||
-rw-r--r-- | archivers/libunrar/files/patch-makefile.unix | 40 | ||||
-rw-r--r-- | archivers/libunrar/pkg-descr | 7 | ||||
-rw-r--r-- | archivers/libunrar/pkg-plist | 4 |
6 files changed, 89 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index 385d197..ab5d5f1 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 0000000..100ea53 --- /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 <bsd.port.mk> diff --git a/archivers/libunrar/distinfo b/archivers/libunrar/distinfo new file mode 100644 index 0000000..42b3359 --- /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 0000000..60649eb --- /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 0000000..00485e0 --- /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 0000000..75244d9 --- /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 |