openbsd-ports/graphics/opencv/Makefile
2013-03-21 08:45:11 +00:00

101 lines
2.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2013/03/21 08:45:19 ajacoutot Exp $
ONLY_FOR_ARCHS= ${GCC4_ARCHS}
BROKEN-sparc64 = error: cannot convert 'int*' to 'volatile _Atomic_word*'
SHARED_ONLY= Yes
COMMENT-main= library of programming functions for real time cv
COMMENT-docs= documentation for OpenCV
V= 2.2.0
DISTNAME= OpenCV-$V
PKGNAME-main= opencv-$V
REVISION-main= 8
PKGNAME-docs= opencv-docs-$V
REVISION-docs= 1
CATEGORIES= graphics devel
SHARED_LIBS += opencv_calib3d 0.0
SHARED_LIBS += opencv_contrib 0.0
SHARED_LIBS += opencv_core 0.0
SHARED_LIBS += opencv_features2d 0.0
SHARED_LIBS += opencv_flann 0.0
SHARED_LIBS += opencv_gpu 0.0
SHARED_LIBS += opencv_highgui 0.0
SHARED_LIBS += opencv_imgproc 0.0
SHARED_LIBS += opencv_legacy 0.0
SHARED_LIBS += opencv_ml 0.0
SHARED_LIBS += opencv_objdetect 0.0
SHARED_LIBS += opencv_video 0.0
HOMEPAGE= http://opencv.willowgarage.com/
MAINTAINER= Rafael Sadowski <rafael@sizeofvoid.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opencvlibrary/}
EXTRACT_SUFX= .tar.bz2
WANTLIB += GL Half Iex IlmImf Imath X11 Xcomposite Xcursor Xdamage
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 avcodec
WANTLIB += avformat avutil bz2 c cairo expat fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gstapp-0.10 gstbase-0.10 gstreamer-0.10
WANTLIB += gstvideo-0.10 gthread-2.0 gtk-x11-2.0 jasper jpeg m
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
WANTLIB += pthread pthread-stubs stdc++ swscale tiff xcb
WANTLIB += xcb-render xcb-shm xml2 z ${MODPY_WANTLIB}
MODULES= devel/cmake \
devel/gettext \
lang/python
MULTI_PACKAGES= -main -docs
CONFIGURE_STYLE= cmake
LIB_DEPENDS-main= multimedia/gstreamer-0.10/plugins-base \
x11/gtk+2 \
graphics/ilmbase \
graphics/openexr \
graphics/ffmpeg>=20121026
WANTLIB-docs= # empty
LIB_DEPENDS-docs= # empty
RUN_DEPENDS-docs= # empty
PKG_ARCH-docs= *
VMEM_WARNING= Yes
RUN_DEPENDS-main= math/py-numpy
BUILD_DEPENDS= devel/doxygen \
math/py-numpy
# ATM opencv requires V4L1 compat, ask them to change it,
# then see WITH_V4L below.
CONFIGURE_ARGS+= -DBUILD_EXAMPLES:Bool=Off \
-DINSTALL_C_EXAMPLES:Bool=Off \
-DINSTALL_PYTHON_EXAMPLES:Bool=Off \
-DBUILD_PYTHON_SUPPORT:Bool=On \
-DBUILD_LATEX_DOCS:Bool=Off \
-DWITH_GTK:Bool=On \
-DWITH_V4L:Bool=Off \
-DWITH_EIGEN2:Bool=Off \
-DWITH_GSTREAMER:Bool=On \
-DWITH_1394:Bool=Off \
-DWITH_FFMPEG:Bool=On
MAKE_ENV+= DOXYGEN_ENCODE_PATH_STRIP=${WRKSRC}
pre-patch:
perl -i -pe 's/\r$$//' ${WRKSRC}/CMakeLists.txt
post-configure:
find ${WRKSRC} -type f -iname "*.make" -exec \
perl -pi -e 's/(CXX_DEFINES =).*/$1/' {} \;
.include <bsd.port.mk>