freebsd-ports/graphics/nomacs/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

53 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= nomacs
PORTVERSION= 3.16
DISTVERSIONSUFFIX= .224
PORTREVISION= 3
CATEGORIES= graphics
PATCH_SITES= https://github.com/nomacs/nomacs/commit/
PATCHFILES= 8c44e10ae48a88ed2ea885f432c65a0859013011.patch:-p1
MAINTAINER= vidar@karlsen.tech
COMMENT= Small, fast, and free image viewer
LICENSE= GPLv3
LIB_DEPENDS= libexiv2.so:graphics/exiv2 \
libopencv_highgui.so:graphics/opencv \
libopencv_core.so:graphics/opencv \
liblcms2.so:graphics/lcms2 \
libquazip1-qt5.so:archivers/quazip
USES= cmake compiler:c++11-lang desktop-file-utils \
dos2unix pkgconfig qt:5
USE_QT= concurrent core gui network printsupport svg widgets \
buildtools_build linguisttools_build qmake_build
DOS2UNIX_FILES= ImageLounge/plugins/PaintPlugin/src/DkPaintPlugin.cpp \
ImageLounge/src/DkGui/DkWidgets.cpp
USE_LDCONFIG= yes
USE_GITHUB= yes
CMAKE_ARGS= -DUSE_SYSTEM_QUAZIP=ON
CMAKE_SOURCE_PATH= ${WRKSRC}/ImageLounge
OPTIONS_DEFINE= RAW TIFF TRANSLATIONS PLUGINS
OPTIONS_DEFAULT= RAW TIFF TRANSLATIONS PLUGINS
OPTIONS_SUB= yes
RAW_LIB_DEPENDS= libraw.so:graphics/libraw
RAW_CMAKE_BOOL= ENABLE_RAW
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CMAKE_BOOL= ENABLE_TIFF
TRANSLATIONS_CMAKE_BOOL= ENABLE_TRANSLATIONS
TRANSLATIONS_DESC= Install translations
PLUGINS_GH_TUPLE= nomacs:nomacs-plugins:3.16:plugins/ImageLounge/plugins
PLUGINS_CMAKE_ON= ENABLE_PLUGINS
.include <bsd.port.mk>