aboutsummaryrefslogtreecommitdiff
path: root/archivers/rar/Makefile
blob: 7dd1f739393339dfd5714caed5704a444586190f (plain) (blame)
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
# Created by: ache

PORTNAME=	rar
PORTVERSION=	6.0.1
PORTEPOCH=	3
CATEGORIES=	archivers
MASTER_SITES=	https://rarlab.com/rar/
DISTNAME=	rarbsd${ARCH:S|amd64|-x64|:S|i386||}-${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	File archiver (binary port)

LICENSE=	RAR
LICENSE_NAME=	RAR license
LICENSE_FILE=	${WRKSRC}/license.txt
LICENSE_PERMS=	auto-accept dist-mirror pkg-mirror

ONLY_FOR_ARCHS=	amd64 i386
RESTRICTED=	only unmodified original package can be distributed

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/rar

PLIST_FILES=	bin/rar etc/rarfiles.lst lib/default.sfx man/cat1/rar.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/rar ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/rarfiles.lst ${STAGEDIR}${PREFIX}/etc
	${INSTALL_DATA} ${WRKSRC}/default.sfx ${STAGEDIR}${PREFIX}/lib
	${INSTALL_MAN} ${WRKSRC}/rar.txt ${STAGEDIR}${PREFIX}/man/cat1/rar.1

# maintainer section:

.if defined(MAINTAINER_MODE)
DISTFILES=	rarbsd-${PORTVERSION}.tar.gz \
		rarbsd-x64-${PORTVERSION}.tar.gz
.endif

.include <bsd.port.mk>