summaryrefslogtreecommitdiff
path: root/archivers/rar/Makefile
blob: 97649a09bcd522653fd438016f1566333616d3b3 (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
# $NetBSD: Makefile,v 1.55 2014/12/16 15:47:33 mef 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/
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

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"