blob: 526e1a77344f3acaf3c0d3ab1f0f6b0898825b33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: Steve Wills <steve@mouf.net>
# $FreeBSD$
PORTNAME= visionworkbench
PORTVERSION= 2.2.0
PORTREVISION= 10
CATEGORIES= graphics
MASTER_SITES= http://ti.arc.nasa.gov/m/project/nasa-vision-workbench/
DISTNAME= VisionWorkbench-${PORTVERSION}
MAINTAINER= swills@FreeBSD.org
COMMENT= A general purpose image processing and computer vision library
BROKEN= Fails to configure
LICENSE= NOSA
LICENSE_GROUPS= OSI
LICENSE_NAME= NASA Open Source Agreement version 1.3
LICENSE_FILE= ${WRKSRC}/COPYING
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
GNU_CONFIGURE= yes
USES= fortran pkgconfig
USE_QT4= moc_build qmake_build
USE_LDCONFIG= yes
USE_PYTHON= yes
LIB_DEPENDS+= libjpeg.so:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
LIB_DEPENDS+= libboost_thread.so:${PORTSDIR}/devel/boost-libs
LIB_DEPENDS+= libboost_python.so:${PORTSDIR}/devel/boost-python-libs
LIB_DEPENDS+= libgdal.so:${PORTSDIR}/graphics/gdal
LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
LIB_DEPENDS+= libIlmImf.so:${PORTSDIR}/graphics/OpenEXR
LIB_DEPENDS+= libcairomm-1.0.so:${PORTSDIR}/graphics/cairomm
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800025
CFLAGS+= -Dsqrtl=sqrt
. if ${OSVERSION} < 800022
CFLAGS+= -Dtgammaf=tgamma
. endif
.endif
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
LIBS="-L${LOCALBASE}/lib ${LDFLAGS}"
post-patch:
@${REINPLACE_CMD} -e "s,-DBOOST_FILESYSTEM_VERSION=2,,g" ${WRKSRC}/configure
pre-configure:
echo "HAVE_PKG_FLAPACK=yes" >> ${WRKSRC}/config.options
echo "PKG_FLAPACK_LDFLAGS=${LDFLAGS}" >> ${WRKSRC}/config.options
echo "HAVE_PKG_PYTHON=yes" >> ${WRKSRC}/config.options
echo "PYTHON_LDFLAGS=-L${PYTHON_LIBDIR} -lboost_python -l${PYTHON_VERSION} ${PTHREAD_LIBS}" >> ${WRKSRC}/config.options
echo "PYTHON_CPPFLAGS=-I${PYTHON_INCLUDEDIR}" >> ${WRKSRC}/config.options
echo "HAVE_PKG_QT=yes" >> ${WRKSRC}/config.options
echo "PKG_QT_LDFLAGS=-L${QT_LIBDIR}" >> ${WRKSRC}/config.options
echo "PKG_QT_CPPFLAGS=-I${QT_INCDIR}" >> ${WRKSRC}/config.options
echo "HAVE_PKG_BOOST=yes" >> ${WRKSRC}/config.options
echo "PKG_BOOST_THREAD_MORE_LIBS=${PTHREAD_LIBS}" >> ${WRKSRC}/config.options
echo "PKG_PATHS=${LOCALBASE}" >> ${WRKSRC}/config.options
regression-test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} check)
.include <bsd.port.post.mk>
|