aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2005-09-23 22:00:58 +0800
committermnag <mnag@FreeBSD.org>2005-09-23 22:00:58 +0800
commit4ff65b4dc36d814e7f76688a566fa38e3b29fcc3 (patch)
treec3759d9bb3a8c420357e872d7e81aced0b18556e /devel
parente6e2d26c13c75c36908e11bcc6f0a9403693a588 (diff)
downloadfreebsd-ports-gnome-4ff65b4dc36d814e7f76688a566fa38e3b29fcc3.tar.gz
freebsd-ports-gnome-4ff65b4dc36d814e7f76688a566fa38e3b29fcc3.tar.zst
freebsd-ports-gnome-4ff65b4dc36d814e7f76688a566fa38e3b29fcc3.zip
New port
"Library to work with RAR archivies" PR: ports/86508 Submitted by: Alex Samorukov <samm@os2.kiev.ua> Approved by: pav (mentor)
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libunrar/Makefile35
-rw-r--r--devel/libunrar/distinfo2
-rw-r--r--devel/libunrar/files/patch-aa60
-rw-r--r--devel/libunrar/pkg-descr7
-rw-r--r--devel/libunrar/pkg-plist4
6 files changed, 109 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 365004af19bd..43adf73bc798 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -521,6 +521,7 @@
SUBDIR += libtool15
SUBDIR += libukcprog
SUBDIR += libunicode
+ SUBDIR += libunrar
SUBDIR += libusb
SUBDIR += libvanessa_adt
SUBDIR += libvanessa_logger
diff --git a/devel/libunrar/Makefile b/devel/libunrar/Makefile
new file mode 100644
index 000000000000..92497cece6c2
--- /dev/null
+++ b/devel/libunrar/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: unrar
+# Date created: 23 Sep 2005
+# Whom: samm
+#
+# $FreeBSD$
+#
+
+PORTNAME= libunrar
+PORTVERSION= 3.53
+CATEGORIES+= devel
+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/devel/libunrar/distinfo b/devel/libunrar/distinfo
new file mode 100644
index 000000000000..42b3359a7986
--- /dev/null
+++ b/devel/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/devel/libunrar/files/patch-aa b/devel/libunrar/files/patch-aa
new file mode 100644
index 000000000000..fa413fe8267a
--- /dev/null
+++ b/devel/libunrar/files/patch-aa
@@ -0,0 +1,60 @@
+diff -ruN unrar.orig/makefile.unix unrar/makefile.unix
+--- makefile.unix 2005-04-30 11:00:12.000000000 +0400
++++ makefile.unix 2005-05-19 16:13:53.000000000 +0400
+@@ -7,9 +7,10 @@
+
+ # Linux using GCC
+ CXX=g++
+-CXXFLAGS=-O2
+-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
++CXXFLAGS=-O2 -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 -ruN unrar.orig/dll.hpp unrar/dll.hpp
+--- dll.hpp 2004-09-08 17:57:20.000000000 +0400
++++ dll.hpp 2004-10-22 10:43:08.000000000 +0400
+@@ -26,13 +26,13 @@
+
+ #define RAR_DLL_VERSION 4
+
+-#ifdef _UNIX
++//#ifdef _UNIX
+ #define CALLBACK
+ #define PASCAL
+ #define LONG long
+ #define HANDLE void *
+ #define UINT unsigned int
+-#endif
++//#endif
+
+ struct RARHeaderData
+ {
diff --git a/devel/libunrar/pkg-descr b/devel/libunrar/pkg-descr
new file mode 100644
index 000000000000..00485e08f9c1
--- /dev/null
+++ b/devel/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/devel/libunrar/pkg-plist b/devel/libunrar/pkg-plist
new file mode 100644
index 000000000000..75244d95c068
--- /dev/null
+++ b/devel/libunrar/pkg-plist
@@ -0,0 +1,4 @@
+lib/libunrar.so
+lib/libunrar.so.3
+include/libunrar3/dll.hpp
+@dirrm include/libunrar3