summaryrefslogtreecommitdiff
path: root/archivers/unrar/Makefile
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/Makefile
parentdae8b7f4a9d3fc2d647a47f770b50dc0c4f40be1 (diff)
downloadpkgsrc-ded6abe8fbc54dc07029f6b40740ce48d5bf7e49.tar.gz
Install unrar library and header file.
Bump PKGREVISION.
Diffstat (limited to 'archivers/unrar/Makefile')
-rw-r--r--archivers/unrar/Makefile9
1 files changed, 7 insertions, 2 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