aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rar/Makefile
blob: 07bdf553362dba3c257286321e1e0dcefeec1e00 (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
51
52
# New ports collection makefile for:    rar
# Date created:         15 May 1996
# Whom:                 ache
#
# $FreeBSD$
#

PORTNAME=   rar
PORTVERSION=    3.91
PORTEPOCH=  2
CATEGORIES= archivers
MASTER_SITES=   http://www.rarlab.com/rar/
DISTNAME=   rarbsd-3.9.1

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

RESTRICTED= only unmodified original package can be distributed
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/rar
PLIST_FILES=    bin/rar lib/default.sfx etc/rarfiles.lst man/cat1/rar.1
PORTDOCS=   technote.txt license.txt whatsnew.txt order.htm \
        readme.txt

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= fails to install on ia64/powerpc/sparc64: File format not recognized
.elif ${ARCH} == "amd64" || ${ARCH} == "ia64"
.if !defined(HAVE_COMPAT_IA32_KERN)
HAVE_COMPAT_IA32_KERN!= if ${SYSCTL} -n compat.ia32.maxvmem >/dev/null 2>&1; then ${ECHO_CMD} YES; fi
.endif
.if !defined(HAVE_COMPAT_IA32_KERN)
IGNORE= requires a kernel with compiled-in IA32 compatibility
.endif
.endif

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

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>