blob: bfb762eda3749691b148d73a6aa1b51451236651 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: linux_rar
# Date created: 30 April 1999
# Whom: FUJISHIMA Satsuki <k5@respo.or.jp>
#
# $FreeBSD$
#
PORTNAME= linux_rar
PORTVERSION= 2.90
CATEGORIES= archivers linux
MASTER_SITES= ftp://ftp.rarsoft.com/rar/ \
ftp://pubftp.slovenska.sk/pub/rarsoft/rar/
DISTNAME= rarlnx${PORTVERSION:S/0//S/.//}
EXTRACT_SUFX= .sfx
MAINTAINER= sf@FreeBSD.org
NO_CDROM= NOFEE: Can not charge for distribution
NO_PACKAGE= Only unmodified original package can be distributed
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
NO_BUILD= yes
EXTRACT_CMD= # empty
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= # empty
STRIP= # empty: do not strip linux binary during INSTALL_PROGRAM
WRKSRC= ${WRKDIR}/rar
RARDOCS= license.txt order.txt rar.txt rar_faq.txt rar_site.txt \
readme.txt register.txt rereg.txt technote.txt whatsnew.txt
RARFILES= rarfiles.lst default.sfx dos.sfx
.if defined(WITH_UNRAR)
PLIST_SUB= UNRAR=""
.else
PLIST_SUB= UNRAR="@comment "
.endif
post-fetch:
@${CHMOD} a+x ${DISTDIR}/${DISTFILES}
pre-configure:
@${ECHO_MSG} "To install unrar bundled with this package,"
@${ECHO_MSG} "set variable WITH_UNRAR=yes."
do-install:
@${MKDIR} ${PREFIX}/share/doc/rar ${PREFIX}/share/rar
@${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin
brandelf -t Linux ${PREFIX}/bin/rar
.if defined(WITH_UNRAR)
@${INSTALL_PROGRAM} ${WRKSRC}/unrar ${PREFIX}/bin
brandelf -t Linux ${PREFIX}/bin/unrar
.endif
.for i in ${RARDOCS}
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/rar
.endfor
.for i in ${RARFILES}
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/rar
.endfor
post-install:
@${ECHO_MSG} "This is 40 days trial version of commercial software."
@${ECHO_MSG} "Read texts in ${PREFIX}/share/doc/rar before use."
.if defined(WITH_UNRAR)
@${ECHO_MSG} "However, unrar can be used for free."
.endif
.include <bsd.port.mk>
|