summaryrefslogtreecommitdiff
path: root/archivers/rar/Makefile
blob: f33ef9be08a242032df09ceb6b6480174b53b5de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.53 2012/04/04 21:22:18 ryoon Exp $
#

DISTNAME=	# overridden
PKGNAME=	rar-${RAR_VER}
CATEGORIES=	archivers
MASTER_SITES=	http://www.rarlabs.com/rar/

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	http://www.rarlabs.com/rar/
COMMENT=	RAR file archiver (binary)
LICENSE=	rar-license

RAR_VER=	4.1.1

RESTRICTED=		Only unmodified original package can be distributed
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}

EMUL_PLATFORMS=		linux-i386 linux-x86_64

PKG_DESTDIR_SUPPORT=	user-destdir

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/rar
USE_LANGUAGES=	# none

.include "../../mk/bsd.prefs.mk"

.if ${EMUL_PLATFORM} == "linux-i386"
DISTFILES=	rarlinux-${RAR_VER}.tar.gz
.elif ${EMUL_PLATFORM} == "linux-x86_64"
DISTFILES=	rarlinux-x64-${RAR_VER}.tar.gz
.endif

DOCSDIR=		share/doc/rar

INSTALLATION_DIRS=	bin etc lib ${DOCSDIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/rar_static ${DESTDIR}${PREFIX}/bin/rar

	${INSTALL_LIB} ${WRKSRC}/default.sfx ${DESTDIR}${PREFIX}/lib

	${INSTALL_DATA} ${WRKSRC}/rarfiles.lst ${DESTDIR}${PREFIX}/${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/*txt ${DESTDIR}${PREFIX}/${DOCSDIR}
.include "../../mk/bsd.pkg.mk"