Page MenuHomeFreeBSD

D13702.id37272.diff
No OneTemporary

D13702.id37272.diff

Index: Mk/Uses/eigen.mk
===================================================================
--- /dev/null
+++ Mk/Uses/eigen.mk
@@ -0,0 +1,55 @@
+# $FreeBSD$
+#
+# Handle dependency on eigen
+#
+# Feature: eigen
+# Usage: USES=eigen:ARGS
+# Valid ARGS: <version>,[build,run]
+#
+# version The chooseable versions are 2 and 3.
+# USES=eigen:2 # Use eigen 2.x
+# USES=eigen:3 # Use eigen 3.x
+#
+# build Add build depends [default]
+# run Add run depends
+#
+# MAINTAINER: kde@FreeBSD.org
+#
+
+.if ! defined(_INCLUDE_USES_EIGEN_MK)
+_INCLUDE_USES_EIGEN_MK= YES
+
+_EIGEN_SUPPORTED= 2 3
+
+_eigen_version= #
+. for _ver in ${_EIGEN_SUPPORTED:O:u}
+. if ${eigen_ARGS:M${_ver}}
+. if empty(_eigen_version)
+_eigen_version= ${_ver}
+. else
+IGNORE= Incorrect USES=eigen:${eigen_ARGS} - multiple versions defined
+. endif
+. endif
+. endfor
+
+. if empty(_eigen_version)
+IGNORE= Incorrect USES=eigen:${eigen_ARGS} - no version defined
+. endif
+
+# Export the version of the chosen eigen port
+_EIGEN_PORT= math/eigen${_eigen_version}
+_EIGEN_PATH= ${LOCALBASE}/libdata/pkgconfig/eigen${_eigen_version}.pc
+_EIGEN_DEP= ${_EIGEN_PATH}:${_EIGEN_PORT}
+
+# Append the correct LIB_DEPENDS
+. if empty(eigen_ARGS:Mbuild) && empty(eigen_ARGS:Mrun)
+eigen_ARGS+= build
+. endif
+. if ! empty(eigen_ARGS:Mbuild)
+BUILD_DEPENDS+= ${_EIGEN_DEP}
+. endif
+. if ! empty(eigen_ARGS:Mrun)
+RUN_DEPENDS+= ${_EIGEN_DEP}
+. endif
+
+.endif
Index: astro/kstars/Makefile
===================================================================
--- astro/kstars/Makefile
+++ astro/kstars/Makefile
@@ -10,11 +10,10 @@
LIB_DEPENDS= libcfitsio.so:astro/cfitsio \
libwcs.so:astro/wcslib
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
- xplanet:astro/xplanet
+BUILD_DEPENDS= xplanet:astro/xplanet
RUN_DEPENDS= xplanet:astro/xplanet
-USES= cmake:outsource compiler:c++11-lib kde:4 tar:xz
+USES= cmake:outsource compiler:c++11-lib eigen:3 kde:4 tar:xz
USE_KDE= kdelibs automoc4
USE_QT4= opengl qmake_build moc_build rcc_build uic_build
Index: audio/csound6/Makefile
===================================================================
--- audio/csound6/Makefile
+++ audio/csound6/Makefile
@@ -18,12 +18,11 @@
BUILD_DEPENDS= boost-libs>0:devel/boost-libs \
swig3.0:devel/swig30 \
- eigen>0:math/eigen3 \
gmm++>0:math/gmm++
LIB_DEPENDS= libsamplerate.so:audio/libsamplerate \
libsndfile.so:audio/libsndfile
-USES= alias bison cmake:outsource,noninja localbase python:2
+USES= alias bison cmake:outsource,noninja eigen:3 localbase python:2
# math/gmm++ requires c++11
USE_CXXSTD= c++11
CMAKE_ARGS= -DBUILD_CSOUNDVST:BOOL=OFF \
Index: biology/iqtree/Makefile
===================================================================
--- biology/iqtree/Makefile
+++ biology/iqtree/Makefile
@@ -16,10 +16,7 @@
BROKEN_armv6= fails to compile: unrecognized command line options '-m32' and '-msse3'
BROKEN_armv7= fails to compile: unrecognized command line options '-m32' and '-msse3'
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
-RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
-
-USES= cmake compiler:openmp
+USES= cmake compiler:openmp eigen:3,build,run
USE_GITHUB= yes
GH_ACCOUNT= Cibiv
GH_PROJECT= IQ-TREE
Index: cad/freecad/Makefile
===================================================================
--- cad/freecad/Makefile
+++ cad/freecad/Makefile
@@ -11,8 +11,7 @@
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= pyside-rcc:devel/pyside-tools \
- swig3.0:devel/swig30 \
- ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
+ swig3.0:devel/swig30
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libfreetype.so:print/freetype2 \
libboost_python.so:devel/boost-python-libs \
@@ -31,7 +30,7 @@
libhdf5.so:science/hdf5
RUN_DEPENDS= pivy>0:graphics/py-pivy@${PY_FLAVOR}
-USES= dos2unix compiler:c++11-lib cmake:outsource fortran jpeg \
+USES= dos2unix compiler:c++11-lib cmake:outsource eigen:3 fortran jpeg \
python:2.7 localbase
USE_XORG= ice sm x11 xext xt
USE_GL= gl glu
Index: cad/openscad/Makefile
===================================================================
--- cad/openscad/Makefile
+++ cad/openscad/Makefile
@@ -15,7 +15,6 @@
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \
- ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
@@ -24,7 +23,7 @@
libharfbuzz.so:print/harfbuzz \
libopencsg.so:graphics/opencsg
-USES= bison compiler:c++11-lang desktop-file-utils gettext-tools pkgconfig qmake shebangfix
+USES= bison compiler:c++11-lang desktop-file-utils eigen:3 gettext-tools pkgconfig qmake shebangfix
SHEBANG_FILES= libraries/MCAD/get_submodules.py
USE_GL= glu glew
USE_QT4= corelib gui opengl moc_build uic_build rcc_build
Index: deskutils/kdeplasma-addons/Makefile
===================================================================
--- deskutils/kdeplasma-addons/Makefile
+++ deskutils/kdeplasma-addons/Makefile
@@ -13,11 +13,9 @@
libqca.so:devel/qca \
libqoauth.so:net/qoauth \
libqjson.so:devel/qjson
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:math/eigen2
-
CONFLICTS_INSTALL= plasma-applet-icontasks-0.[89].*
-USES= cmake:outsource kde:4 pkgconfig shared-mime-info tar:xz
+USES= cmake:outsource eigen:2 kde:4 pkgconfig shared-mime-info tar:xz
USE_KDE= kdelibs libkexiv2 pimlibs workspace \
akonadi attica automoc4 qimageblitz soprano
USE_QT4= corelib dbus declarative gui network script sql webkit \
Index: editors/calligra/Makefile
===================================================================
--- editors/calligra/Makefile
+++ editors/calligra/Makefile
@@ -37,11 +37,10 @@
libwpg-0.3.so:graphics/libwpg03 \
libwps-0.3.so:textproc/libwps03
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
- pstoedit:graphics/pstoedit
+BUILD_DEPENDS= pstoedit:graphics/pstoedit
RUN_DEPENDS= pstoedit:graphics/pstoedit
-USES= cmake:outsource cpe compiler:c++11-lib desktop-file-utils \
+USES= cmake:outsource cpe compiler:c++11-lib desktop-file-utils eigen:3 \
gettext iconv:translit jpeg kde:5 localbase:ldflags perl5 pkgconfig \
shared-mime-info sqlite tar:xz
USE_KDE= activities archive auth bookmarks codecs completion config \
Index: games/xptools/Makefile
===================================================================
--- games/xptools/Makefile
+++ games/xptools/Makefile
@@ -14,7 +14,6 @@
ONLY_FOR_ARCHS= amd64
BUILD_DEPENDS= gnustat:sysutils/coreutils \
- ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
${LOCALBASE}/lib/libntl.a:math/ntl \
cmake:devel/cmake
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
@@ -34,7 +33,7 @@
libGLw.so:graphics/libGLw \
libGLU.so:graphics/libGLU
-USES= gmake jpeg sqlite ssl
+USES= eigen:3 gmake jpeg sqlite ssl
USE_GITHUB= yes
GH_ACCOUNT= X-Plane
Index: graphics/code-eli/Makefile
===================================================================
--- graphics/code-eli/Makefile
+++ graphics/code-eli/Makefile
@@ -14,13 +14,11 @@
BROKEN= Needs work to use math/eigen3 currently in ports
-BUILD_DEPENDS= eigen>3:math/eigen3
-
USE_GITHUB= yes
GH_PROJECT= Code-Eli
GH_ACCOUNT= ddmarshall
-USES= cmake:outsource compiler:c++11-lib
+USES= cmake:outsource compiler:c++11-lib eigen:3
PORTEXAMPLES= AirfoilFitExample VSPPodExample test
ALL_TARGET= all
Index: graphics/colmap/Makefile
===================================================================
--- graphics/colmap/Makefile
+++ graphics/colmap/Makefile
@@ -18,13 +18,12 @@
LICENSE_FILE_SIFTGPU= ${WRKSRC}/src/ext/SiftGPU/LICENSE
LICENSE_PERMS_SIFTGPU= dist-mirror pkg-mirror auto-accept
-BUILD_DEPENDS= eigen>=3:math/eigen3
LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \
libglog.so:devel/glog \
libfreeimage.so:graphics/freeimage \
libceres.so:math/ceres-solver
-USES= cmake compiler:${OPENMP}c++11-lib fortran localbase sqlite
+USES= cmake compiler:${OPENMP}c++11-lib eigen:3 fortran localbase sqlite
USE_GITHUB= yes
USE_GL= gl glew
USE_QT5= qmake_build buildtools_build core gui opengl_build widgets
Index: graphics/digikam-kde4/Makefile
===================================================================
--- graphics/digikam-kde4/Makefile
+++ graphics/digikam-kde4/Makefile
@@ -12,7 +12,6 @@
.include "${.CURDIR}/Makefile.common"
-BUILD_DEPENDS= ${LOCALBASE}/include/eigen3/Eigen/Eigen:math/eigen3
LIB_DEPENDS= libtiff.so:graphics/tiff \
liblcms.so:graphics/lcms \
libpng.so:graphics/png \
@@ -24,7 +23,7 @@
libkgeomap.so:astro/libkgeomap \
libboost_graph.so:devel/boost-libs
-USES+= pkgconfig shebangfix
+USES+= eigen:3 pkgconfig shebangfix
USE_KDE+= libkdcraw libkexiv2 libkipi runtime_run
USE_QT4+= sql-sqlite3_run
USE_LDCONFIG= yes
Index: graphics/krita/Makefile
===================================================================
--- graphics/krita/Makefile
+++ graphics/krita/Makefile
@@ -13,7 +13,6 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
LIB_DEPENDS= libImath.so:graphics/ilmbase \
libOpenColorIO.so:graphics/opencolorio \
libX11.so:x11/libX11 \
@@ -31,7 +30,7 @@
libxcb-util.so:x11/xcb-util
USES= cmake:outsource compiler:c++11-lib desktop-file-utils \
- gettext jpeg kde:5
+ eigen:3 gettext jpeg kde:5
USE_KDE= archive completion config coreaddons crash guiaddons i18n \
itemmodels itemviews kio service widgetsaddons windowsystem
USE_QT5= buildtools_build concurrent core dbus gui network printsupport \
Index: graphics/mitsuba/Makefile
===================================================================
--- graphics/mitsuba/Makefile
+++ graphics/mitsuba/Makefile
@@ -15,7 +15,6 @@
BROKEN= fails to build with boost 1.65, see bug 220719
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libpng.so:graphics/png \
libIlmImf.so:graphics/OpenEXR \
@@ -25,7 +24,7 @@
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= uses SSE instructions
-USES= cmake jpeg tar:bzip2
+USES= cmake eigen:3 jpeg tar:bzip2
USE_GL= glew
USE_QT4= moc_build qmake_build rcc_build uic_build \
gui opengl network xml xmlpatterns
Index: graphics/movit/Makefile
===================================================================
--- graphics/movit/Makefile
+++ graphics/movit/Makefile
@@ -12,10 +12,8 @@
LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
libfftw3.so:math/fftw3
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
-RUN_DEPENDS:= ${BUILD_DEPENDS}
-USES= autoreconf gmake libtool pathfix pkgconfig
+USES= autoreconf gmake eigen:3,build,run libtool pathfix pkgconfig
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
Index: graphics/opencv/Makefile
===================================================================
--- graphics/opencv/Makefile
+++ graphics/opencv/Makefile
@@ -65,7 +65,7 @@
DC1394_CMAKE_BOOL= WITH_1394
EIGEN3_DESC= Eigen 3 support
-EIGEN3_BUILD_DEPENDS= ${LOCALBASE}/include/eigen3/Eigen/Eigen:math/eigen3
+EIGEN3_USES= eigen:3
EIGEN3_CMAKE_BOOL= WITH_EIGEN
. if !defined(OCV_SLAVE)
Index: math/ceres-solver/Makefile
===================================================================
--- math/ceres-solver/Makefile
+++ math/ceres-solver/Makefile
@@ -14,11 +14,10 @@
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= eigen>=3.2.2:math/eigen3
LIB_DEPENDS= libglog.so:devel/glog
RUN_DEPENDS:= ${BUILD_DEPENDS:Meigen*}
-USES= cmake:outsource compiler:${OPENMP}c++11-lib localbase shebangfix
+USES= cmake:outsource compiler:${OPENMP}c++11-lib eigen:3 localbase shebangfix
USE_GITHUB= yes
USE_LDCONFIG= yes
SHEBANG_FILES= examples/slam/pose_graph_*/plot_results.py \
Index: math/cgal/Makefile
===================================================================
--- math/cgal/Makefile
+++ math/cgal/Makefile
@@ -16,8 +16,7 @@
BROKEN_sparc64= does not build: fails to compile all_files.cpp
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
- ${LOCALBASE}/lib/libntl.a:math/ntl
+BUILD_DEPENDS= ${LOCALBASE}/lib/libntl.a:math/ntl
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libmpfr.so:math/mpfr \
libgmp.so:math/gmp
@@ -25,7 +24,7 @@
#TODO math/mpfi, math/rs, graphics/qglviewer
#Not yet in ports
-USES= cmake shebangfix tar:xz
+USES= cmake eigen:3 shebangfix tar:xz
USE_LDCONFIG= yes
SHEBANG_FILES= scripts/cgal_create_CMakeLists \
scripts/cgal_create_cmake_script
Index: math/libmesh/Makefile
===================================================================
--- math/libmesh/Makefile
+++ math/libmesh/Makefile
@@ -12,10 +12,9 @@
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= eigen>0:math/eigen3
LIB_DEPENDS= libboost_system.so:devel/boost-libs
-USES= autoreconf gmake libtool
+USES= autoreconf eigen:3 gmake libtool
GNU_CONFIGURE= yes
USE_GITHUB= yes
GH_ACCOUNT= libMesh
Index: net-mgmt/metronome/Makefile
===================================================================
--- net-mgmt/metronome/Makefile
+++ net-mgmt/metronome/Makefile
@@ -10,10 +10,9 @@
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= eigen>0:math/eigen3
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
-USES= autoreconf:build libtool:build pathfix pkgconfig
+USES= autoreconf:build eigen:3 libtool:build pathfix pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= ahupowerdns
Index: science/avogadro/Makefile
===================================================================
--- science/avogadro/Makefile
+++ science/avogadro/Makefile
@@ -13,10 +13,9 @@
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= eigen2>2:math/eigen2
LIB_DEPENDS= libopenbabel.so:science/openbabel
-USES= cmake desktop-file-utils pkgconfig tar:bzip2
+USES= cmake desktop-file-utils eigen:2 pkgconfig tar:bzip2
USE_GL= glu gl
USE_QT4= gui network opengl \
linguisttools_build moc_build qmake_build rcc_build uic_build
Index: science/gnudatalanguage/Makefile
===================================================================
--- science/gnudatalanguage/Makefile
+++ science/gnudatalanguage/Makefile
@@ -54,7 +54,7 @@
OPTIONS_DEFAULT=EIGEN FFTW GRAPHICSMAGICK GRIB HDF5 LIBPROJ4 NETCDF PYTHON UDUNITS
EIGEN_DESC= Eigen3 support (boost performance)
-EIGEN_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3
+EIGEN_USES= eigen:3
EIGEN_CMAKE_ON= -DEIGEN3:BOOL=YES
EIGEN_CMAKE_OFF= -DEIGEN3:BOOL=NO
Index: science/kalzium/Makefile
===================================================================
--- science/kalzium/Makefile
+++ science/kalzium/Makefile
@@ -10,13 +10,11 @@
LIB_DEPENDS= libopenbabel.so:science/openbabel \
libavogadro.so:science/avogadro
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:math/eigen2 \
- ${LOCALBASE}/libdata/pkgconfig/eigen3.pc:math/eigen3 \
- ${LOCALBASE}/lib/ocaml/facile/facile.a:math/facile \
+BUILD_DEPENDS= ${LOCALBASE}/lib/ocaml/facile/facile.a:math/facile \
${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:science/chemical-mime-data
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/chemical-mime-data.pc:science/chemical-mime-data
-USES= cmake:outsource kde:4 pkgconfig tar:xz
+USES= cmake:outsource eigen:3 kde:4 pkgconfig tar:xz
USE_KDE= kdelibs automoc4
USE_OCAML= yes
NO_OCAML_RUNDEPENDS= yes
Index: science/openbabel/Makefile
===================================================================
--- science/openbabel/Makefile
+++ science/openbabel/Makefile
@@ -12,15 +12,13 @@
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= eigen>=0:math/eigen3
-
BROKEN_powerpc64= Does not build: relocation truncated to fit: R_PPC64_TOC16_DS
CONFLICTS_INSTALL= babel-*
USE_CXXSTD= gnu++98
USE_GNOME= libxml2
-USES= cmake:outsource
+USES= cmake:outsource eigen:3
CMAKE_ARGS= -DBUILD_GUI=off
USE_LDCONFIG= yes
Index: science/step/Makefile
===================================================================
--- science/step/Makefile
+++ science/step/Makefile
@@ -8,11 +8,10 @@
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE 4 interactive physics simulator
-BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/eigen2.pc:math/eigen2
LIB_DEPENDS= libqalculate.so:math/libqalculate \
libgsl.so:math/gsl
-USES= cmake:outsource kde:4 pkgconfig tar:xz
+USES= cmake:outsource eigen:2 kde:4 pkgconfig tar:xz
USE_KDE= kdelibs automoc4
USE_QT4= opengl moc_build qmake_build rcc_build uic_build

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 12, 8:20 AM (7 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31338040
Default Alt Text
D13702.id37272.diff (16 KB)

Event Timeline