2011-02-10 18:13:26 +01:00
|
|
|
PORTNAME= gmic
|
2016-03-22 22:57:05 +01:00
|
|
|
PORTVERSION= 1.6.9
|
2021-08-03 13:35:40 +02:00
|
|
|
PORTREVISION= 34
|
2011-02-10 18:13:26 +01:00
|
|
|
CATEGORIES= graphics
|
2015-12-13 17:26:12 +01:00
|
|
|
MASTER_SITES= http://gmic.eu/files/source/
|
2011-02-10 18:13:26 +01:00
|
|
|
PKGNAMEPREFIX= gimp-
|
|
|
|
PKGNAMESUFFIX= -plugin
|
2011-02-12 04:20:54 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2011-11-10 23:20:18 +01:00
|
|
|
MAINTAINER= rm@FreeBSD.org
|
2011-02-10 18:13:26 +01:00
|
|
|
COMMENT= GREYC's Magic Image Converter
|
|
|
|
|
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: https://github.com/lagadic/visp/commit/dfa7e4bd47c24cd2e631477e6afb18806733ff8a
- multimedia/zart: https://github.com/c-koi/zart/commit/6ca1964690afbbc78627d7c868a692401043a584,
https://github.com/c-koi/zart/commit/d3a2931b1a07ec0322211f253468000363c4b6cb
* 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 19:08:56 +01:00
|
|
|
BROKEN= OpenCV4 no longer ships OpencCV-1.0 headers
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick \
|
2021-04-11 20:39:56 +02:00
|
|
|
libOpenEXR.so:graphics/openexr \
|
2018-05-09 03:10:11 +02:00
|
|
|
libopencv_video.so:graphics/opencv \
|
2018-11-10 20:57:07 +01:00
|
|
|
libMagick++-6.so:graphics/ImageMagick6 \
|
2016-04-01 16:00:51 +02:00
|
|
|
libavcodec.so:multimedia/ffmpeg \
|
|
|
|
libfftw3.so:math/fftw3 \
|
2018-10-28 17:50:32 +01:00
|
|
|
libgimp-2.0.so:graphics/gimp-app \
|
|
|
|
libcurl.so:ftp/curl
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2018-09-10 15:15:47 +02:00
|
|
|
OPTIONS_DEFINE= BASH EXAMPLES
|
2013-12-23 11:42:08 +01:00
|
|
|
OPTIONS_SUB= yes
|
2016-04-01 16:00:51 +02:00
|
|
|
BASH_RUN_DEPENDS= bash:shells/bash
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2012-02-15 05:46:46 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2019-11-05 23:16:14 +01:00
|
|
|
USES= dos2unix gmake gnome localbase pkgconfig xorg
|
2014-02-22 22:59:57 +01:00
|
|
|
USE_GCC= yes
|
2011-02-12 04:20:54 +01:00
|
|
|
USE_GNOME= gtk20
|
2011-02-10 18:13:26 +01:00
|
|
|
USE_XORG= x11 xext xrandr
|
2016-03-22 22:57:05 +01:00
|
|
|
DOS2UNIX_FILES= Makefile
|
2011-02-10 18:13:26 +01:00
|
|
|
|
|
|
|
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
|
|
|
|
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
|
|
|
|
|
|
|
|
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
|
2016-03-22 22:57:05 +01:00
|
|
|
DOTLESS_VER= ${PORTVERSION:S/.//g}
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2013-12-23 11:42:08 +01:00
|
|
|
PLIST_FILES= bin/gmic \
|
|
|
|
man/man1/gmic.1.gz \
|
2016-03-22 22:57:05 +01:00
|
|
|
%%BASH%%etc/bash_completion.d/gmic \
|
|
|
|
%%PLUGIN_DIR%%/gmic_gimp \
|
|
|
|
%%PLUGIN_DIR%%/cli_update${DOTLESS_VER}.gmic \
|
|
|
|
%%PLUGIN_DIR%%/gimp_update${DOTLESS_VER}.gmic
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2014-02-22 22:59:57 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
PORTEXAMPLES= gmic_in_script.scm gmic_use_lib.cpp
|
|
|
|
|
2011-09-06 20:20:02 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
|
2016-03-22 22:57:05 +01:00
|
|
|
-e 's#/usr/local#${LOCALBASE}#g' \
|
2012-02-15 05:46:46 +01:00
|
|
|
${WRKSRC}/Makefile
|
2011-02-10 18:13:26 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-12-23 11:42:08 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
|
2016-03-22 22:57:05 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../resources/cli_update${DOTLESS_VER}.gmic \
|
|
|
|
${WRKSRC}/../resources/gimp_update${DOTLESS_VER}.gmic \
|
|
|
|
${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
|
2013-12-23 11:42:08 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
|
2014-02-22 22:59:57 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
2016-03-22 21:26:27 +01:00
|
|
|
do-install-BASH-on:
|
2013-12-23 11:42:08 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
2014-06-02 09:54:40 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/../resources/gmic_bashcompletion.sh \
|
2016-03-22 22:57:05 +01:00
|
|
|
${STAGEDIR}${PREFIX}/etc/bash_completion.d/gmic
|
2011-02-10 18:13:26 +01:00
|
|
|
|
2011-09-06 20:20:02 +02:00
|
|
|
.include <bsd.port.mk>
|