diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-12 09:05:33 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-12 09:05:33 +0000 |
commit | 63c79c6c25c66fae8a1d2a6784b14941a08bc30b (patch) | |
tree | b8538a0255a81f03bd2c2fd52f5ed6e571712381 /misc/openmvg/Makefile | |
parent | 54eb58bf57a044eb296c6e0c0bdfdcd9e80d62c8 (diff) | |
download | ports-63c79c6c25c66fae8a1d2a6784b14941a08bc30b.tar.gz ports-63c79c6c25c66fae8a1d2a6784b14941a08bc30b.zip |
Notes
Diffstat (limited to 'misc/openmvg/Makefile')
-rw-r--r-- | misc/openmvg/Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/misc/openmvg/Makefile b/misc/openmvg/Makefile new file mode 100644 index 000000000000..da4457c3a7e5 --- /dev/null +++ b/misc/openmvg/Makefile @@ -0,0 +1,62 @@ +# $FreeBSD$ + +PORTNAME= openmvg +DISTVERSIONPREFIX= v +DISTVERSION= 1.3-76 +DISTVERSIONSUFFIX= -gd9563130 +CATEGORIES= misc science + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Multiple View Geometry (MVG) library + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/../LICENSE + +ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS_REASON= need to figure out which TARGET_ARCHITECTURE values correspond to other architectures, plus "generic" is broken + +LIB_DEPENDS= libflann_cpp.so:math/flann \ + libpng16.so:graphics/png \ + libtiff.so:graphics/tiff + +USES= cmake:outsource eigen:3 jpeg +USE_GITHUB= yes +GH_ACCOUNT= openMVG +GH_PROJECT= openMVG +GH_TUPLE= openMVG-thirdparty:cereal:37fca60:cereal/dependencies/cereal \ + openMVG-thirdparty:osi_clp:a25a980:osi/dependencies/osi_clp +WRKSRC_SUBDIR= src +USE_QT5= core gui opengl svg widgets buildtools_build qmake_build +USE_LDCONFIG= yes + +CMAKE_ARGS= -DEIGEN_INCLUDE_DIR_HINTS=${LOCALBASE}/include/eigen3 \ + -DFLANN_INCLUDE_DIR_HINTS=${LOCALBASE}/include +CMAKE_ON= OpenMVG_BUILD_SHARED +CMAKE_OFF= OpenMVG_BUILD_EXAMPLES + +CXXFLAGS+= -fPIC \ + -I${LOCALBASE}/include # because flann is looked for in a wrong directiory: https://github.com/openMVG/openMVG/issues/1284 + +OPTIONS_SINGLE= SIMD_${ARCH} +OPTIONS_SINGLE_SIMD_amd64= K8 CORE MEROM NEHALEM +OPTIONS_SINGLE_SIMD_i386= ${OPTIONS_SINGLE_SIMD_amd64} +OPTIONS_DEFAULT_amd64= K8 +OPTIONS_DEFAULT_i386= K8 + +SIMD_amd64_DESC= Use SSE SIMD optimizations for +SIMD_i386_DESC= ${SIMD_amd64_DESC} +K8_DESC= K8 architecture (SSE2) +CORE_DESC= Core architecture (up to SSE3) +MEROM_DESC= Merom architecture (up to SSSE3) +NEHALEM_DESC= Nehalem architecture (up to SSE4.2) + +K8_CMAKE_ON= -DTARGET_ARCHITECTURE=k8 +CORE_CMAKE_ON= -DTARGET_ARCHITECTURE=core +MEROM_CMAKE_ON= -DTARGET_ARCHITECTURE=merom +NEHALEM_CMAKE_ON= -DTARGET_ARCHITECTURE=nehalem + +post-install: + @${FIND} ${STAGEDIR}${PREFIX}/lib -name "*.a" -delete # delete wrongly installed dependency libs https://github.com/openMVG/openMVG/issues/1282 + ${INSTALL_LIB} ${BUILD_WRKSRC}/*/libdomset.so ${STAGEDIR}${PREFIX}/lib # https://github.com/openMVG/openMVG/issues/1286 + +.include <bsd.port.mk> |