aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/linux_rar/Makefile
blob: b0098769294692b337e377f490ef17e80bf79627 (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
# New ports collection makefile for:    linux_rar
# http://www.rarsoft.com/rar_archiver.htm
# Version required: 2.50
# Date created:     30 April 1999
# Whom:         FUJISHIMA Satsuki <k5@respo.or.jp>
#
# $FreeBSD$
#

DISTNAME=       rarlnx25
PKGNAME=        linux-rar-2.50
CATEGORIES= archivers
MASTER_SITES=   ftp://rarsoft.ti.sk/pub/rar/ \
        ftp://ftp.cdrom.com/pub/cheats/dlh/rar/
EXTRACT_SUFX=   .sfx

MAINTAINER=     k5@respo.or.jp

RUN_DEPENDS=    /compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base

CAT1=       rar.1

NO_BUILD=   yes
ONLY_FOR_ARCHS= i386
NO_PACKAGE=     Only unmodified original package can be distributed

NO_WRKSUBDIR=   yes
EXTRACT_CMD=        # empty
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= # empty
STRIP=          # empty: do not touch linux binary!

post-fetch:
    @${CHMOD} a+x ${DISTDIR}/${DISTFILES}

do-install:
    ${MKDIR} ${PREFIX}/share/doc/rar ${PREFIX}/share/rar
    ${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin
    cd ${WRKSRC} && \
    ${INSTALL_DATA} rarfiles.lst default.sfx dos.sfx ${PREFIX}/share/rar
.if !defined(NOPORTDOCS)
    ${INSTALL_MAN} ${WRKSRC}/rar.txt ${PREFIX}/man/cat1/rar.1
    cd ${WRKSRC} && \
    ${INSTALL_DATA} license.txt rar_faq.txt rar_site.txt readme.txt \
        register.txt technote.txt ${PREFIX}/share/doc/rar
.endif

.include <bsd.port.mk>