freebsd-ports/graphics/digikam/Makefile
Tobias C. Berner 7a09f7fbc2 graphics/opencv: update to 4.5.1 -- and make port more easily maintainable
This is a major upgrade from 3.x to 4.x.

Changelog from versions 3.4.1--4.5.1 can be found here:
    https://github.com/opencv/opencv/wiki/ChangeLog

Note: this has explicitely not been added as a new graphics/opencv4 port, but replaces the
      previous graphics/opencv[3] port. Again, to improve maintainability by not giving ports
      the option to pick the "wrong one" - this leads however to some abandoned ports being
      broken.

The port has been greatly simplified:
    * graphics/opencv-core which existed to enable ffmpeg to depend on opencv, and vice versa
      has been removed. ffmpeg no longer can depend on opencv.
    * graphics/py-opencv has been integrated into graphics/opencv, the default versions python
      bindings will be built unless the PYTHON option is explicitely turned off.
    * graphics/opencv-java has been integrated into graphics/opencv -- it is off by default,
      but can be enabled by toggling the JAVA option -- there are no consumers in the tree,
      so that option might go away in the future.
    * All the previous options have been removed and replaced by a (hopefully) sane set of
      dependencies that make the port and package most usable for the majority of consumers.
      - Please let me know if you think there are better defaults (i.e. anything that is missing,
        or something that should not be dependet on).
      - If you think something should be added or removed, please open a bug report.
      - If you think something should be added as an optional dependency, please open a
        bug report (with a good reason [tm]).

The depending ports have been updated to work against opencv4, or marked broken.
    * Ports broken:
      - graphics/rubygem-objectdetect: OpenCV4 no longer ships opencv-1.0 API
      - graphics/p5-Image-ObjectDetect: OpenCV4 no longer ships opencv-1.0 API
      - graphics/gimp-gmic-plugin: OpenCV4 no longer ships opencv-1.0 API
    * Backports:
      - misc/visp: dfa7e4bd47
      - multimedia/zart: 6ca1964690,
                         d3a2931b1a
    * Others:
      - misc/actiona: switch to pkgconfig 'opencv4'
      - multimedia/libav: drop opencv support
      - misc/darknet: already failed to build prior to the upgrade
      - math/saga: remove patching added to work against opencv3
2021-01-30 18:08:56 +00:00

103 lines
3.3 KiB
Makefile

# $FreeBSD$
PORTNAME= digikam
DISTVERSION= 7.1.0
PORTREVISION= 3
CATEGORIES= graphics kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}
DIST_SUBDIR= KDE/digikam/${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE digital photo management application
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libKF5Sane.so:graphics/libksane \
libboost_graph.so:devel/boost-libs \
libexiv2.so:graphics/exiv2 \
libexpat.so:textproc/expat2 \
libMagickCore-6.so:graphics/ImageMagick6 \
libgphoto2.so:graphics/libgphoto2 \
libicalss.so:devel/libical \
libjasper.so:graphics/jasper \
liblcms2.so:graphics/lcms2 \
liblensfun.so:graphics/lensfun \
liblqr-1.so:graphics/liblqr-1 \
libopencv_core.so:graphics/opencv \
libpgf.so:graphics/libpgf \
libpng.so:graphics/png \
libtiff.so:graphics/tiff \
libx265.so:multimedia/x265
USES= bison cmake compiler:c++11-lib desktop-file-utils eigen:3 gl \
gnome jpeg kde:5 pkgconfig qt:5 shebangfix tar:xz xorg
USE_GL= gl glu
USE_GNOME= glib20 libxml2 libxslt
USE_KDE= archive auth bookmarks calendarcore codecs completion config \
configwidgets coreaddons crash doctools ecm filemetadata \
guiaddons i18n iconthemes itemmodels itemviews jobwidgets kdelibs4support \
kio marble libkipi notifications notifyconfig parts service \
solid sonnet textwidgets threadweaver unitconversion \
widgetsaddons windowsystem xmlgui
USE_QT= concurrent core dbus declarative gui location network opengl \
printsupport sql webchannel widgets x11extras xml xmlpatterns \
sql-sqlite3_run \
buildtools_build qmake_build
USE_XORG= ice sm x11 xext
USE_LDCONFIG= yes
SHEBANG_FILES= core/data/scripts/digitaglinktree/digitaglinktree
# Disable kipiplugins, as they are built in their own port: graphics/kipiplugins.
# Remember to keep that port in sync with this one.
CMAKE_ON= DIGIKAMSC_COMPILE_DIGIKAM
OPTIONS_DEFINE= DOCS DOXYGEN KDEPIM KVKONTAKTE MEDIAPLAYER MYSQL NLS WEBENGINE
OPTIONS_DEFAULT= ${OPTIONS_DEFINE:NWEBENGINE}
OPTIONS_SUB= yes
DOCS_DESC= Digikam documentation
DOCS_CMAKE_BOOL= DIGIKAMSC_COMPILE_DOC
DOCS_USES= gettext
DOCS_USE= KDE=doctools
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_IMPLIES= DOCS
KDEPIM_DESC= KDEPim Addressbook support
KDEPIM_USE= KDE=akonadi,akonadicontacts,contacts
KDEPIM_CMAKE_BOOL= ENABLE_AKONADICONTACTSUPPORT
KDEPIM_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_KF5AkonadiContact
MEDIAPLAYER_DESC= Enable mediaplayer
MEDIAPLAYER_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libQtAV.so:multimedia/QtAV
MEDIAPLAYER_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_FFmpeg \
CMAKE_DISABLE_FIND_PACKAGE_QtAV
MYSQL_USES= mysql:server
MYSQL_USE= QT=sql-mysql_run
MYSQL_CMAKE_BOOL= ENABLE_INTERNALMYSQL \
ENABLE_MYSQLSUPPORT
MYSQL_CMAKE_ON= -DMYSQLD_PATH:PATH=${LOCALBASE}/libexec \
-DMYSQL_TOOLS_PATH:PATH=${LOCALBASE}/bin
MYSQL_BUILD_DEPENDS= ${LOCALBASE}/lib/mysql/libmysqld.a:${_MYSQL_SERVER}
KVKONTAKTE_DESC= vk.com Plugin
KVKONTAKTE_LIB_DEPENDS= libKF5Vkontakte.so:net/libkvkontakte
KVKONTAKTE_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_KF5Vkontakte
NLS_DESC= Digikam i18n translations
NLS_CMAKE_BOOL= DIGIKAMSC_COMPILE_PO
NLS_USES= gettext
NLS_USE= KDE=i18n
WEBENGINE_DESC= Use Qt WebEngine instead of WebKit
WEBENGINE_USE= QT=webengine
WEBENGINE_USE_OFF= QT=webkit
WEBENGINE_CMAKE_BOOL= ENABLE_QWEBENGINE
PLIST_SUB= SHLIB_VER=${DISTVERSION}
.include <bsd.port.mk>