ports/157421: New port: archivers/libunrar4 Version 4 of libunrar
Joris Vandalon
joris at vandalon.nl
Mon May 30 10:50:07 UTC 2011
>Number: 157421
>Category: ports
>Synopsis: New port: archivers/libunrar4 Version 4 of libunrar
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 30 10:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Joris Vandalon
>Release: Freebsd 8.2
>Organization:
>Environment:
FreeBSD collected.vandalon.nl 8.2-RELEASE FreeBSD 8.2-RELEASE #7: Thu Mar 31 13:58:26 CEST 2011 root at Collected.local:/usr/obj/usr/src/sys/COLLECTED amd64
>Description:
Since there is only a libunrar3 port in freebsd and it does not seem to get an update any time soon, I created libunrar4. Mainly because I also want to make a port for rar2fs (http://code.google.com/p/rar2fs/) which depends on libunrar 4.0.7 among others.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# libunrar4
# libunrar4/pkg-descr
# libunrar4/pkg-plist
# libunrar4/files
# libunrar4/files/patch-makefile.unix
# libunrar4/Makefile
# libunrar4/distinfo
#
echo c - libunrar4
mkdir -p libunrar4 > /dev/null 2>&1
echo x - libunrar4/pkg-descr
sed 's/^X//' >libunrar4/pkg-descr << 'accc5a455cdf546073ad56ef34b54266'
X The UnRAR library is a minor part of the RAR archiver and contains
X RAR uncompression algorithm. UnRAR requires very small volume of
X memory to operate.
X UnRAR library can be used by other programs to extract RAR archives.
X This package contains small fixes from the http://mcmcc.bat.ru/clamav/.
X
XWWW: http://www.rarsoft.com/
accc5a455cdf546073ad56ef34b54266
echo x - libunrar4/pkg-plist
sed 's/^X//' >libunrar4/pkg-plist << 'c432de07141839a6080327ce6b14b968'
Xlib/libunrar.so
Xlib/libunrar.so.3
Xinclude/libunrar4/dll.hpp
X at dirrm include/libunrar4
c432de07141839a6080327ce6b14b968
echo c - libunrar4/files
mkdir -p libunrar4/files > /dev/null 2>&1
echo x - libunrar4/files/patch-makefile.unix
sed 's/^X//' >libunrar4/files/patch-makefile.unix << 'f0082f18c7c536d111ec49bd377f50ab'
X--- makefile.unix.orig 2008-10-09 15:43:06.000000000 +0200
X+++ makefile.unix 2008-11-06 01:43:52.000000000 +0100
X@@ -7,10 +7,11 @@
X
X # Linux using GCC
X #CXX=g++
X-#CXXFLAGS=-O2
X-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
X+CXXFLAGS=$(CFLAGS) -fPIC -DPIC
X+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGUI -DSILENT
X STRIP=strip
X DESTDIR=/usr
X+RANLIB=ranlib
X
X # Linux using LCC
X #CXX=lcc
X@@ -100,7 +101,7 @@
X WHAT=UNRAR
X
X UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o
X-LIB_OBJ=filestr.o scantree.o dll.o
X+LIB_OBJ=dll.o
X
X OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savepos.o global.o file.o filefn.o filcreat.o \
X archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
X@@ -131,9 +132,15 @@
X $(STRIP) default.sfx
X
X lib: WHAT=RARDLL
X-lib: $(OBJECTS) $(LIB_OBJ)
X- @rm -f libunrar.so
X- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
X+lib: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+ @rm -f libunrar.so.3
X+ $(LINK) -shared -o libunrar.so.3 $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+
X+liba: WHAT=RARDLL
X+liba: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+ @rm -f libunrar.a
X+ $(AR) rc libunrar.a $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
X+ $(RANLIB) libunrar.a
X
X install-unrar:
X install unrar $(DESTDIR)/bin
f0082f18c7c536d111ec49bd377f50ab
echo x - libunrar4/Makefile
sed 's/^X//' >libunrar4/Makefile << '1703f0413ef7cf36bb0cb698e51e44c1'
X# New ports collection makefile for: unrar4
X# Date created: 30 May 2011
X# Whom: Joris Vandalon
X#
X# $FreeBSD$
X#
X
XPORTNAME= libunrar4
XPORTVERSION= 4.0.7
XPORTEPOCH= 1
XCATEGORIES= archivers
XMASTER_SITES= http://www.rarlab.com/rar/
XDISTNAME= unrarsrc-${PORTVERSION}
X
XMAINTAINER= joris at vandalon.nl
XCOMMENT= Library to work with RAR archivies
X
XWRKSRC= ${WRKDIR}/unrar
X
XUSE_GMAKE= yes
XMAKEFILE= makefile.unix
XMAKE_ENV= LDFLAGS="${LDFLAGS}"
XALL_TARGET= lib
XUSE_LDCONFIG= yes
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/libunrar.so.3 ${PREFIX}/lib/
X cd ${PREFIX}/lib && ${LN} -sf libunrar.so.3 libunrar.so
X ${MKDIR} ${PREFIX}/include/libunrar4
X ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar4/dll.hpp
X
X.include <bsd.port.mk>
1703f0413ef7cf36bb0cb698e51e44c1
echo x - libunrar4/distinfo
sed 's/^X//' >libunrar4/distinfo << '749eb8cba8e695f567034246b52ef7ad'
XSHA256 (unrarsrc-4.0.7.tar.gz) = eac9ed7493870ca7f67b23e9208aef1db701c381123ac462e97f703777a33071
XSIZE (unrarsrc-4.0.7.tar.gz) = 152853
749eb8cba8e695f567034246b52ef7ad
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list