forked from Lainports/freebsd-ports
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
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# Created by: glocke@bsdstammtisch.at
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= retroshare
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.6.4
|
|
PORTREVISION= 5
|
|
CATEGORIES= net-p2p
|
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
PATCHFILES= 428b331d8efe.patch:-p1
|
|
|
|
MAINTAINER= peter@netkey.at
|
|
COMMENT= Private and secure decentralised communication platform
|
|
|
|
BROKEN= Doesn't build with libmicrohttpd 0.9.71 - PR: 250100
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
LIB_DEPENDS= libsqlcipher.so:databases/sqlcipher \
|
|
libspeex.so:audio/speex \
|
|
libspeexdsp.so:audio/speexdsp \
|
|
libgnome-keyring.so:security/libgnome-keyring \
|
|
libgpgme.so:security/gpgme \
|
|
libopencv_highgui.so:graphics/opencv \
|
|
libavcodec.so:multimedia/ffmpeg \
|
|
libcurl.so:ftp/curl \
|
|
libmicrohttpd.so:www/libmicrohttpd \
|
|
libminiupnpc.so:net/miniupnpc
|
|
|
|
USES= compiler:features desktop-file-utils dos2unix \
|
|
gl gnome pkgconfig qmake qt:5 ssl
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= RetroShare
|
|
GH_PROJECT= RetroShare
|
|
RS_REVISION= 0e6d27a
|
|
USE_GNOME= libxml2 libxslt
|
|
USE_GL= gl
|
|
USE_QT= core gui multimedia printsupport network widgets xml \
|
|
buildtools_build uitools_build
|
|
DOS2UNIX_FILES= retroshare-nogui/src/retroshare-nogui.pro \
|
|
retroshare-gui/src/gui/elastic/node.cpp
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/retroshare.pri
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/libretroshare/src/libretroshare.pro
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/libretroshare/src/rsserver/rsaccounts.cc
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/retroshare-gui/src/retroshare-gui.pro
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/retroshare-nogui/src/retroshare-nogui.pro
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \
|
|
${WRKSRC}/data/retroshare.desktop
|
|
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
|
|
${WRKSRC}/data/retroshare.desktop
|
|
@${REINPLACE_CMD} -e 's|RS_REVISION_NUMBER.*|RS_REVISION_NUMBER 0x${RS_REVISION}|' \
|
|
${WRKSRC}/libretroshare/src/retroshare/rsversion.h
|
|
|
|
.include <bsd.port.post.mk>
|