diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2023-06-21 01:24:33 -0400 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2023-06-21 01:30:20 -0400 |
commit | bc8993b85b9486eec098bbfa8b175d255e9e42b8 (patch) | |
tree | 3c330a6477944d63c8054cdcc0f878867b1226e8 /archivers/libunrar/Makefile | |
parent | graphics/3d-ascii-viewer: Update to 1.3.0 (diff) |
archivers/libunrar6: Move to archivers/libunrar
Unversion archivers/libunrar6 now that this is the only version
of libunrar in the ports tree.
Diffstat (limited to 'archivers/libunrar/Makefile')
-rw-r--r-- | archivers/libunrar/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/archivers/libunrar/Makefile b/archivers/libunrar/Makefile new file mode 100644 index 000000000000..9f6a60bf0732 --- /dev/null +++ b/archivers/libunrar/Makefile @@ -0,0 +1,49 @@ +PORTNAME= libunrar +PORTVERSION= 6.2.8 +CATEGORIES= archivers +MASTER_SITES= http://www.rarlab.com/rar/ +DISTNAME= unrarsrc-${PORTVERSION} + +MAINTAINER= jhale@FreeBSD.org +COMMENT= RAR archive extraction library +WWW= https://www.rarlab.com/ + +LICENSE= UNRAR +LICENSE_NAME= UnRAR License +LICENSE_FILE= ${WRKSRC}/license.txt +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +USES= compiler:c++11-lang gmake +USE_LDCONFIG= yes + +ALL_TARGET= lib +MAKEFILE= makefile +MAKE_ARGS= AR="${AR}" \ + CXX="${CXX}" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + LDFLAGS="-Wl,-soname,${SONAME} -pthread ${LDFLAGS}" \ + STRIP="${STRIP_CMD}" +SONAME= libunrar.so.6 +WRKSRC= ${WRKDIR}/unrar + +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= -L${OPENSSLLIB} -lcrypto +OPENSSL_AES_USES= ssl + +PLIST_FILES= lib/libunrar.a \ + lib/libunrar.so \ + lib/${SONAME} \ + include/${PORTNAME}/dll.hpp + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libunrar.a ${STAGEDIR}${PREFIX}/lib/libunrar.a + ${INSTALL_LIB} ${WRKSRC}/libunrar.so ${STAGEDIR}${PREFIX}/lib/${SONAME} + ${RLN} ${STAGEDIR}${PREFIX}/lib/${SONAME} ${STAGEDIR}${PREFIX}/lib/${SONAME:R} + @${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${STAGEDIR}${PREFIX}/include/${PORTNAME}/dll.hpp + +.include <bsd.port.mk> |