Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/opencv/Makefile
# Created by: Marc Abramowitz (http://marc.abramowitz.info) | # Created by: Marc Abramowitz (http://marc.abramowitz.info) | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME?= opencv | PORTNAME?= opencv | ||||
PORTVERSION= 2.4.9 | PORTVERSION= 2.4.9 | ||||
PORTREVISION?= 5 | PORTREVISION?= 6 | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= SF/${PORTNAME}library/${PORTNAME}-unix/${PORTVERSION} | MASTER_SITES= SF/${PORTNAME}library/${PORTNAME}-unix/${PORTVERSION} | ||||
MAINTAINER= jhale@FreeBSD.org | MAINTAINER= jhale@FreeBSD.org | ||||
COMMENT= Open Source Computer Vision library | COMMENT= Open Source Computer Vision library | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
USES= cmake pkgconfig zip | USES= cmake pkgconfig zip | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
WANT_GSTREAMER= yes | WANT_GSTREAMER= yes | ||||
MAKE_JOBS_UNSAFE= yes | |||||
NOT_FOR_ARCHS= sparc64 | NOT_FOR_ARCHS= sparc64 | ||||
NOT_FOR_ARCHS_REASON_sparc64= does not compile on sparc64 | NOT_FOR_ARCHS_REASON_sparc64= does not compile on sparc64 | ||||
DATADIR= ${PREFIX}/share/OpenCV | DATADIR= ${PREFIX}/share/OpenCV | ||||
PLIST_SUB+= VERSION=${DISTVERSION} | PLIST_SUB+= VERSION=${DISTVERSION} | ||||
CMAKE_ARGS+= -DWITH_CUDA:BOOL=Off \ | CMAKE_ARGS+= -DWITH_CUDA:BOOL=Off \ | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
.else | .else | ||||
CMAKE_ARGS+= -DWITH_1394:BOOL=Off | CMAKE_ARGS+= -DWITH_1394:BOOL=Off | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MEIGEN3} | .if ${PORT_OPTIONS:MEIGEN3} | ||||
BUILD_DEPENDS+= ${LOCALBASE}/include/eigen3/Eigen/Eigen:${PORTSDIR}/math/eigen3 | BUILD_DEPENDS+= ${LOCALBASE}/include/eigen3/Eigen/Eigen:${PORTSDIR}/math/eigen3 | ||||
CMAKE_ARGS+= -DWITH_EIGEN:BOOL=On | CMAKE_ARGS+= -DWITH_EIGEN:BOOL=On | ||||
.else | .else | ||||
CMAKE_ARGS= -DWITH_EIGEN:BOOL=Off | CMAKE_ARGS+= -DWITH_EIGEN:BOOL=Off | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MEXAMPLES} | .if ${PORT_OPTIONS:MEXAMPLES} | ||||
PORTEXAMPLES= * | PORTEXAMPLES= * | ||||
. if !defined(OCV_SLAVE) | . if !defined(OCV_SLAVE) | ||||
CMAKE_ARGS+= -DBUILD_EXAMPLES:BOOL=On \ | CMAKE_ARGS+= -DBUILD_EXAMPLES:BOOL=On \ | ||||
-DINSTALL_C_EXAMPLES:BOOL=On | -DINSTALL_C_EXAMPLES:BOOL=On | ||||
. endif | . endif | ||||
▲ Show 20 Lines • Show All 221 Lines • Show Last 20 Lines |