blob: 0dea8858fbcc19d2c7cdb088a20971eba23c5516 (
plain)
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
|
# Created by: ache
# $FreeBSD$
PORTNAME= unrar
PORTVERSION= 4.20
PORTREVISION= 1
PORTEPOCH= 5
CATEGORIES+= archivers
MASTER_SITES= http://www.rarlab.com/rar/ \
LOCAL/sunpoet
DISTNAME= unrarsrc-4.2.4
MAINTAINER?= sunpoet@FreeBSD.org
COMMENT= Extract, view & test RAR archives
OPTIONS_DEFINE= DOCS OPENSSL_AES
OPTIONS_DEFAULT=OPENSSL_AES
OPENSSL_AES_DESC= Use OpenSSL implementation of AES
CONFLICTS?= zh-unrar-[0-9].* unrar-iconv-[0-9].*
NO_STAGE= yes
MAKE_ARGS= STRIP=${STRIP_CMD}
MAKEFILE= makefile.unix
USES+= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/unrar
PORTDOCS= license.txt readme.txt
SLAVEDIRS= archivers/unrar-iconv chinese/unrar
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL_AES}
CPPFLAGS+= -DOPENSSL_AES -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB} -lcrypto
USE_OPENSSL= yes
.endif
post-patch:
@${REINPLACE_CMD} -e '/^CXX/ s|^|#|' ${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrar ${PREFIX}/bin/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.include <bsd.port.mk>
|