summaryrefslogtreecommitdiff
path: root/archivers/libunrar
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-09-23 19:58:45 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-09-23 19:58:45 +0000
commit1d2479534e9ed6d456c98ab33813d2d511b73005 (patch)
treec48214d1f171bcb312bfe769304db1ef4a46b98d /archivers/libunrar
parentgrog is no longer on core (diff)
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)
Notes
Notes: svn path=/head/; revision=143455
Diffstat (limited to 'archivers/libunrar')
-rw-r--r--archivers/libunrar/Makefile35
-rw-r--r--archivers/libunrar/distinfo2
-rw-r--r--archivers/libunrar/files/patch-makefile.unix40
-rw-r--r--archivers/libunrar/pkg-descr7
-rw-r--r--archivers/libunrar/pkg-plist4
5 files changed, 88 insertions, 0 deletions
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 <bsd.port.mk>
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