aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/unrar/Makefile
blob: d08b1a475f39d60fbd91b005bfbbb95f97efefae (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
# Created by: ache
# $FreeBSD$

PORTNAME=   unrar
DISTVERSION=    5.50
PORTEPOCH=  6
CATEGORIES+=    archivers
MASTER_SITES=   https://www.rarlab.com/rar/ \
        LOCAL/sunpoet
DISTNAME=   unrarsrc-5.5.8

MAINTAINER?=    sunpoet@FreeBSD.org
COMMENT=    Extract, view & test RAR archives

LICENSE=    UNRAR
LICENSE_FILE=   ${WRKSRC}/license.txt
LICENSE_NAME=   UnRAR license
LICENSE_PERMS=  auto-accept dist-mirror pkg-mirror

BROKEN_SSL= openssl-devel

OPTIONS_DEFINE= OPENSSL_AES
OPTIONS_DEFAULT=OPENSSL_AES
OPENSSL_AES_DESC=   Use OpenSSL implementation of AES

CONFLICTS_INSTALL?= zh-unrar unrar-iconv

LDFLAGS+=   -lpthread
MAKE_ARGS=  CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" STRIP="${STRIP_CMD}"
MAKEFILE=   makefile
WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    bin/unrar

SLAVEDIRS=  archivers/unrar-iconv chinese/unrar

OPENSSL_AES_CPPFLAGS=   -DOPENSSL_AES -I${OPENSSLINC}
OPENSSL_AES_LDFLAGS=    -L${OPENSSLLIB} -lcrypto
OPENSSL_AES_USES=   ssl

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/unrar ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>