2015-09-23 13:53:22 +02:00
|
|
|
PORTNAME= waifu2x-converter-cpp
|
2019-12-16 17:44:57 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2021-01-26 12:22:39 +01:00
|
|
|
DISTVERSION= 5.3.4
|
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
|
|
|
PORTREVISION= 1
|
2015-09-23 13:53:22 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Scale and denoise images using convolutional neural networks
|
|
|
|
|
|
|
|
LICENSE= BSD2CLAUSE MIT
|
|
|
|
LICENSE_COMB= multi
|
2019-12-16 17:44:57 +01:00
|
|
|
LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/include/picojson_LICENSE.txt
|
2015-09-23 13:53:22 +02:00
|
|
|
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE
|
|
|
|
|
2016-03-16 13:58:16 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/CL/opencl.h:devel/opencl
|
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
|
|
|
LIB_DEPENDS= libopencv_imgcodecs.so:graphics/opencv
|
2015-09-23 13:53:22 +02:00
|
|
|
|
2021-05-17 15:33:58 +02:00
|
|
|
USES= cmake:testing compiler:c++17-lang localbase:ldflags
|
2015-09-23 13:53:22 +02:00
|
|
|
USE_GITHUB= yes
|
2019-12-16 17:44:57 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GH_ACCOUNT= DeadSix27
|
2021-05-17 15:33:58 +02:00
|
|
|
CMAKE_ON= INSTALL_MODELS
|
|
|
|
CMAKE_TESTING_ON= ENABLE_TESTS
|
2018-01-01 14:42:54 +01:00
|
|
|
CMAKE_ARGS= -DOPENCV_PREFIX:PATH="${LOCALBASE}" \
|
|
|
|
-DOpenCL_LIBRARY:FILEPATH="${LOCALBASE}/lib/libOpenCL.so"
|
2015-09-23 13:53:22 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
include/w2xconv.h \
|
|
|
|
lib/libw2xc.so
|
2015-10-04 00:17:15 +02:00
|
|
|
PORTDATA= *
|
2015-09-23 13:53:22 +02:00
|
|
|
|
2019-12-16 17:44:57 +01:00
|
|
|
OPTIONS_DEFINE= SIMD
|
2015-09-23 13:53:22 +02:00
|
|
|
OPTIONS_DEFAULT=SIMD
|
|
|
|
|
2019-12-16 17:44:57 +01:00
|
|
|
SIMD_CMAKE_OFF= -DARMOPT:BOOL=false -DPPCOPT:BOOL=false -DX86OPT:BOOL=false
|
2015-09-23 13:53:22 +02:00
|
|
|
|
|
|
|
post-patch:
|
2015-12-02 04:25:18 +01:00
|
|
|
@${REINPLACE_CMD} -e '/Darwin/,/FLAGS_RELEASE/d' \
|
|
|
|
-e 's,".*\(-m[^[:space:]]*\).*","\1",' \
|
2019-12-16 17:44:57 +01:00
|
|
|
-e "s/\$${TS}/`${AWK} '/TIMESTAMP/ { print \$$3 }' ${DISTINFO_FILE}`/" \
|
|
|
|
-e '/find_program/s/git/&_disabled/' \
|
|
|
|
-e '/GIT_BRANCH/s/null/master/' \
|
|
|
|
-e '/GIT_COMMIT_HASH/s/000000/${DISTVERSIONSUFFIX:U&:S/^-g//}/' \
|
|
|
|
-e '/GIT_TAG/s/v0\.0\.0/${DISTVERSIONFULL:C/-.*//}/' \
|
2015-09-23 13:53:22 +02:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
2019-12-16 17:44:57 +01:00
|
|
|
@${REINPLACE_CMD} 's,models_rgb,${WRKSRC}/&,' ${WRKSRC}/w32-apps/runtest.c
|
2015-09-23 13:53:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|