freebsd-ports/archivers/ark/Makefile
Max Brazhnikov 160358b8d2 archivers/ark: switch from p7zip to 7-zip
Add support for original 7-Zip and use it instead of p7zip.
Full patch has been submitted upstream:

https://invent.kde.org/utilities/ark/-/merge_requests/90

PR:		260866 261368
2022-02-10 00:47:29 +03:00

53 lines
1.5 KiB
Makefile

PORTNAME= ark
DISTVERSION= ${KDE_APPLICATIONS_VERSION}
PORTREVISION= 1
CATEGORIES= archivers kde kde-applications
MAINTAINER= kde@FreeBSD.org
COMMENT= Archiving tool for KDE
LICENSE= GPLv2+
USES= cmake compiler:c++11-lang desktop-file-utils gettext libarchive kde:5 \
cpe qt:5 tar:xz
USE_KDE= archive auth bookmarks codecs completion config configwidgets \
coreaddons crash dbusaddons doctools i18n iconthemes \
itemmodels itemviews jobwidgets khtml kio parts pty service \
solid sonnet textwidgets widgetsaddons windowsystem xmlgui \
ecm_build
USE_QT= concurrent core dbus gui network widgets xml \
buildtools_build qmake_build
USE_LDCONFIG= yes
PATCH_STRIP= -p1
OPTIONS_DEFINE= 7ZIP RAR ZIP DOCS
OPTIONS_DEFAULT= 7ZIP ZIP DOCS
OPTIONS_DEFAULT_i386= RAR
OPTIONS_DEFAULT_amd64= RAR
OPTIONS_SUB= YES
# The 7ZIP and RAR options only need runtime dependencies;
# the port builds identically with or without them.
7ZIP_DESC= Support for 7-Zip archives (runtime)
7ZIP_RUN_DEPENDS= 7zz:archivers/7-zip
RAR_DESC= Support for RAR archives (runtime)
RAR_RUN_DEPENDS= unrar:archivers/unrar \
rar:archivers/rar
ZIP_DESC= Support for ZIP archives
ZIP_LIB_DEPENDS= libzip.so:archivers/libzip
ZIP_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_LibZip
# Override shared library version
KDE_APPLICATIONS_SHLIB_VER= ${KDE_APPLICATIONS_VERSION}
post-patch:
${REINPLACE_CMD} '/Program/s,"7z","7zz",' \
${WRKSRC}/plugins/cli7zplugin/cliplugin.cpp
${REINPLACE_CMD} 's,"7z","7zz",' \
${WRKSRC}/plugins/cli7zplugin/kerfuffle_cli7z.json.cmake
.include <bsd.port.mk>