aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rar/Makefile
blob: 87509eaaae9252c6b3d5f43b7351ae9bbffa73db (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
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    rar
# Date created:         15 May 1996
# Whom:                 ache
#
# $FreeBSD$
#

PORTNAME=   rar
PORTVERSION=    3.41
PORTEPOCH=  1
CATEGORIES= archivers
MASTER_SITES=   http://files10.rarlab.com/rar/
DISTNAME=   rarbsd-3.4.1

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

ONLY_FOR_ARCHS= i386
NO_PACKAGE= Only unmodified original package can be distributed
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/rar

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 503000
IGNORE=is unsupported on versions prior to FreeBSD 5.3
.endif

.if ${PORTOBJFORMAT} == "elf"
STRIP=
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin/rar
    cd ${WRKSRC} && \
        ${INSTALL_MAN} rar.txt ${PREFIX}/man/cat1/rar.1 && \
        ${INSTALL_DATA} rarfiles.lst \
            ${PREFIX}/etc && \
        ${INSTALL_DATA} default.sfx \
            ${PREFIX}/lib
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && \
        ${INSTALL_DATA} technote.txt license.txt \
                order.htm readme.txt whatsnew.txt \
                file_id.diz \
            ${DOCSDIR}
.endif

.include <bsd.port.post.mk>