summaryrefslogtreecommitdiff
path: root/archivers/unrar
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-08-30 10:16:57 +0000
committerwiz <wiz@pkgsrc.org>2013-08-30 10:16:57 +0000
commitded6abe8fbc54dc07029f6b40740ce48d5bf7e49 (patch)
tree31dfccddaace70822692c941642259aec31664f3 /archivers/unrar
parentdae8b7f4a9d3fc2d647a47f770b50dc0c4f40be1 (diff)
downloadpkgsrc-ded6abe8fbc54dc07029f6b40740ce48d5bf7e49.tar.gz
Install unrar library and header file.
Bump PKGREVISION.
Diffstat (limited to 'archivers/unrar')
-rw-r--r--archivers/unrar/Makefile9
-rw-r--r--archivers/unrar/PLIST4
-rw-r--r--archivers/unrar/distinfo3
-rw-r--r--archivers/unrar/patches/patch-dll.hpp15
4 files changed, 27 insertions, 4 deletions
diff --git a/archivers/unrar/Makefile b/archivers/unrar/Makefile
index 5673b09f0d7..c4c8f300868 100644
--- a/archivers/unrar/Makefile
+++ b/archivers/unrar/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.70 2013/07/03 18:19:24 wiz Exp $
+# $NetBSD: Makefile,v 1.71 2013/08/30 10:16:57 wiz Exp $
DISTNAME= unrarsrc-5.0.7
PKGNAME= ${DISTNAME:S/src//}
+PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://www.rarlab.com/rar/
@@ -23,16 +24,20 @@ USE_LANGUAGES= c++
USE_TOOLS+= gmake
MAKE_FILE= makefile
+BUILD_TARGET= all lib
MAKEFLAGS+= CXX=${CXX:Q} CXXFLAGS=${CXXFLAGS:Q} LDFLAGS=${LDFLAGS:Q}
# usually set in Makefile, but overridden by line above
LDFLAGS+= -pthread
+CXXFLAGS+= -fPIC
WRKSRC= ${WRKDIR}/unrar
-INSTALLATION_DIRS= bin share/doc/unrar
+INSTALLATION_DIRS= bin include lib share/doc/unrar
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrar ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${DESTDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/libunrar.so ${DESTDIR}${PREFIX}/lib
cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt \
${DESTDIR}${PREFIX}/share/doc/unrar
diff --git a/archivers/unrar/PLIST b/archivers/unrar/PLIST
index c8d87407718..449d6554563 100644
--- a/archivers/unrar/PLIST
+++ b/archivers/unrar/PLIST
@@ -1,4 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:28:18 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2013/08/30 10:16:57 wiz Exp $
bin/unrar
+include/dll.hpp
+lib/libunrar.so
share/doc/unrar/license.txt
share/doc/unrar/readme.txt
diff --git a/archivers/unrar/distinfo b/archivers/unrar/distinfo
index bda35ea034a..d35dc08fa1e 100644
--- a/archivers/unrar/distinfo
+++ b/archivers/unrar/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.49 2013/07/02 19:47:48 adam Exp $
+$NetBSD: distinfo,v 1.50 2013/08/30 10:16:57 wiz Exp $
SHA1 (unrarsrc-5.0.7.tar.gz) = 7d1cd96d29695e90df4aaef426e7068b241e2528
RMD160 (unrarsrc-5.0.7.tar.gz) = fd3a3ba33e1250e0b9680138a22241a26ee5722e
Size (unrarsrc-5.0.7.tar.gz) = 208034 bytes
+SHA1 (patch-dll.hpp) = 2572dd8023790b887c5e06a5aeb6f6ea3756499c
diff --git a/archivers/unrar/patches/patch-dll.hpp b/archivers/unrar/patches/patch-dll.hpp
new file mode 100644
index 00000000000..d523f459867
--- /dev/null
+++ b/archivers/unrar/patches/patch-dll.hpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-dll.hpp,v 1.1 2013/08/30 10:16:58 wiz Exp $
+
+NetBSD doesn't define _UNIX.
+
+--- dll.hpp.orig 2013-08-30 09:33:40.000000000 +0000
++++ dll.hpp
+@@ -36,7 +36,7 @@
+ #define RAR_HASH_BLAKE2 2
+
+
+-#ifdef _UNIX
++#if defined(_UNIX) || defined(__NetBSD__)
+ #define CALLBACK
+ #define PASCAL
+ #define LONG long