1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/archivers/unrar/Makefile
Bernhard Froehlich 17e0a02dec
archivers/unrar: Add CPE information
Approved by:	portmgr (blanket)
2021-09-06 19:56:41 +00:00

46 lines
1.0 KiB
Makefile

# Created by: ache
PORTNAME= unrar
PORTVERSION= 6.02
PORTEPOCH= 6
CATEGORIES+= archivers
MASTER_SITES= https://rarlab.com/rar/ \
LOCAL/sunpoet
DISTNAME= unrarsrc-6.0.7
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
USES+= compiler:c++11-lang cpe
CPE_VENDOR= rarlab
LDFLAGS+= -lpthread
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" STRIP="${STRIP_CMD}"
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/unrar
PLIST_FILES= bin/unrar
SLAVEDIRS= archivers/unrar-iconv
CONFLICTS_INSTALL?= unrar-iconv
OPTIONS_DEFINE= OPENSSL_AES
OPTIONS_DEFAULT=OPENSSL_AES
OPENSSL_AES_DESC= Use OpenSSL implementation of AES
OPENSSL_AES_CPPFLAGS= -DOPENSSL_AES -I${OPENSSLINC}
OPENSSL_AES_LDFLAGS= ${${OPENSSLLIB} == /usr/lib :? :-L${OPENSSLLIB}} -lcrypto
OPENSSL_AES_USES= ssl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unrar ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>