1 |
commit: 888dbd3f58d7354ff5f37e5e28ebc3eecc2df349 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 21 19:37:27 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 21 19:50:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=888dbd3f |
7 |
|
8 |
sci-libs/ViSP: Merge USE ois into ogre |
9 |
|
10 |
From dev-games/ogre-1.10.12 on, the 'ois' USE flag was dropped. It makes |
11 |
little sense to use Ogre3D without it, and dev-games/ois is tiny. |
12 |
|
13 |
Thanks-to: Sven Eden <yamakuzure <AT> gmx.net> |
14 |
Bug: https://bugs.gentoo.org/666394 |
15 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
16 |
|
17 |
sci-libs/ViSP/ViSP-3.0.1-r1.ebuild | 103 +++++++++++++++++++++++++++++++++++++ |
18 |
sci-libs/ViSP/ViSP-3.1.0-r1.ebuild | 98 +++++++++++++++++++++++++++++++++++ |
19 |
2 files changed, 201 insertions(+) |
20 |
|
21 |
diff --git a/sci-libs/ViSP/ViSP-3.0.1-r1.ebuild b/sci-libs/ViSP/ViSP-3.0.1-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..871d521bc38 |
24 |
--- /dev/null |
25 |
+++ b/sci-libs/ViSP/ViSP-3.0.1-r1.ebuild |
26 |
@@ -0,0 +1,103 @@ |
27 |
+# Copyright 1999-2018 Gentoo Foundation |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=5 |
31 |
+ |
32 |
+inherit cmake-utils |
33 |
+ |
34 |
+DESCRIPTION="Visual Servoing Platform: visual tracking and visual servoing library" |
35 |
+HOMEPAGE="http://www.irisa.fr/lagadic/visp/visp.html" |
36 |
+SRC_URI="http://gforge.inria.fr/frs/download.php/latestfile/475/visp-${PV}.tar.gz" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0/3" |
40 |
+KEYWORDS="~amd64 ~arm" |
41 |
+IUSE=" |
42 |
+ +coin demos +dmtx doc examples ffmpeg gsl ieee1394 jpeg lapack motif ogre |
43 |
+ opencv png test tutorials usb v4l X xml +zbar zlib |
44 |
+ cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 |
45 |
+" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ coin? ( media-libs/coin virtual/opengl ) |
49 |
+ dmtx? ( media-libs/libdmtx ) |
50 |
+ ffmpeg? ( virtual/ffmpeg ) |
51 |
+ gsl? ( sci-libs/gsl ) |
52 |
+ ieee1394? ( media-libs/libdc1394 ) |
53 |
+ jpeg? ( virtual/jpeg:0 ) |
54 |
+ lapack? ( virtual/lapack ) |
55 |
+ motif? ( media-libs/SoXt ) |
56 |
+ ogre? ( dev-games/ogre[ois(+)] dev-libs/boost:=[threads] ) |
57 |
+ opencv? ( media-libs/opencv:= ) |
58 |
+ png? ( media-libs/libpng:0= ) |
59 |
+ usb? ( virtual/libusb:1 ) |
60 |
+ v4l? ( media-libs/libv4l ) |
61 |
+ X? ( x11-libs/libX11 ) |
62 |
+ xml? ( dev-libs/libxml2 ) |
63 |
+ zbar? ( media-gfx/zbar ) |
64 |
+ zlib? ( sys-libs/zlib ) |
65 |
+" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ virtual/pkgconfig |
68 |
+ doc? ( app-doc/doxygen virtual/latex-base media-gfx/graphviz ) |
69 |
+ test? ( sci-misc/ViSP-images ) |
70 |
+ v4l? ( virtual/os-headers )" |
71 |
+RDEPEND="${RDEPEND} |
72 |
+ demos? ( sci-misc/ViSP-images )" |
73 |
+REQUIRED_USE=" |
74 |
+ ffmpeg? ( opencv ) |
75 |
+ motif? ( coin ) |
76 |
+" |
77 |
+ |
78 |
+S="${WORKDIR}/visp-${PV}" |
79 |
+PATCHES=( "${FILESDIR}/${PN}-3.0.1-opencv.patch" "${FILESDIR}/${PN}-3.0.0-ffmpeg3.patch" ) |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local mycmakeargs=( |
83 |
+ "-DBUILD_EXAMPLES=$(usex examples ON OFF)" |
84 |
+ "-DBUILD_TESTS=$(usex test ON OFF)" |
85 |
+ "-DBUILD_DEMOS=$(usex demos ON OFF)" |
86 |
+ "-DBUILD_TUTORIALS=$(usex tutorials ON OFF)" |
87 |
+ "-DUSE_COIN3D=$(usex coin ON OFF)" |
88 |
+ "-DUSE_DC1394=$(usex ieee1394 ON OFF)" |
89 |
+ "-DUSE_DMTX=$(usex dmtx ON OFF)" |
90 |
+ "-DUSE_FFMPEG=$(usex ffmpeg ON OFF)" |
91 |
+ "-DUSE_GSL=$(usex gsl ON OFF)" |
92 |
+ "-DUSE_LAPACK=$(usex lapack ON OFF)" |
93 |
+ "-DUSE_JPEG=$(usex jpeg ON OFF)" |
94 |
+ "-DUSE_PNG=$(usex png ON OFF)" |
95 |
+ "-DUSE_LIBUSB_1=$(usex usb ON OFF)" |
96 |
+ "-DUSE_OGRE=$(usex ogre ON OFF)" |
97 |
+ "-DUSE_OIS=$(usex ogre ON OFF)" |
98 |
+ "-DUSE_OPENCV=$(usex opencv ON OFF)" |
99 |
+ "-DUSE_SOQT=OFF" |
100 |
+ "-DUSE_SOXT=$(usex motif ON OFF)" |
101 |
+ "-DUSE_V4L2=$(usex v4l ON OFF)" |
102 |
+ "-DUSE_X11=$(usex X ON OFF)" |
103 |
+ "-DUSE_XML2=$(usex xml ON OFF)" |
104 |
+ "-DUSE_ZBAR=$(usex zbar ON OFF)" |
105 |
+ "-DUSE_ZLIB=$(usex zlib ON OFF)" |
106 |
+ "-DCOIN3D_INCLUDE_DIR=${EPREFIX:-${SYSROOT}}/usr/include/coin" |
107 |
+ "-DSOQT_INCLUDE_DIR=${EPREFIX:-${SYSROOT}}/usr/include/coin" |
108 |
+ "-DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)" |
109 |
+ "-DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)" |
110 |
+ "-DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)" |
111 |
+ ) |
112 |
+ cmake-utils_src_configure |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ cmake-utils_src_compile |
117 |
+ cd "${BUILD_DIR}" |
118 |
+ use doc && emake visp_doc |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ cmake-utils_src_install |
123 |
+ if use tutorials ; then |
124 |
+ dodoc -r tutorial |
125 |
+ docompress -x /usr/share/doc/${PF}/tutorial |
126 |
+ fi |
127 |
+ cd "${BUILD_DIR}" |
128 |
+ use doc && dohtml -r doc/html/* |
129 |
+} |
130 |
|
131 |
diff --git a/sci-libs/ViSP/ViSP-3.1.0-r1.ebuild b/sci-libs/ViSP/ViSP-3.1.0-r1.ebuild |
132 |
new file mode 100644 |
133 |
index 00000000000..86886b818ec |
134 |
--- /dev/null |
135 |
+++ b/sci-libs/ViSP/ViSP-3.1.0-r1.ebuild |
136 |
@@ -0,0 +1,98 @@ |
137 |
+# Copyright 1999-2018 Gentoo Foundation |
138 |
+# Distributed under the terms of the GNU General Public License v2 |
139 |
+ |
140 |
+EAPI=5 |
141 |
+ |
142 |
+inherit cmake-utils |
143 |
+ |
144 |
+DESCRIPTION="Visual Servoing Platform: visual tracking and visual servoing library" |
145 |
+HOMEPAGE="http://www.irisa.fr/lagadic/visp/visp.html" |
146 |
+SRC_URI="http://gforge.inria.fr/frs/download.php/latestfile/475/visp-${PV}.tar.gz" |
147 |
+ |
148 |
+LICENSE="GPL-2" |
149 |
+SLOT="0/3.1" |
150 |
+KEYWORDS="~amd64 ~arm" |
151 |
+IUSE=" |
152 |
+ +coin demos +dmtx doc examples gsl ieee1394 jpeg lapack motif ogre |
153 |
+ opencv png test tutorials usb v4l X xml +zbar zlib |
154 |
+ cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 |
155 |
+" |
156 |
+ |
157 |
+RDEPEND=" |
158 |
+ coin? ( media-libs/coin virtual/opengl ) |
159 |
+ dmtx? ( media-libs/libdmtx ) |
160 |
+ gsl? ( sci-libs/gsl ) |
161 |
+ ieee1394? ( media-libs/libdc1394 ) |
162 |
+ jpeg? ( virtual/jpeg:0 ) |
163 |
+ lapack? ( virtual/lapack ) |
164 |
+ motif? ( media-libs/SoXt ) |
165 |
+ ogre? ( dev-games/ogre[ois(+)] dev-libs/boost:=[threads] ) |
166 |
+ opencv? ( media-libs/opencv:= ) |
167 |
+ png? ( media-libs/libpng:0= ) |
168 |
+ usb? ( virtual/libusb:1 ) |
169 |
+ v4l? ( media-libs/libv4l ) |
170 |
+ X? ( x11-libs/libX11 ) |
171 |
+ xml? ( dev-libs/libxml2 ) |
172 |
+ zbar? ( media-gfx/zbar ) |
173 |
+ zlib? ( sys-libs/zlib ) |
174 |
+" |
175 |
+DEPEND="${RDEPEND} |
176 |
+ virtual/pkgconfig |
177 |
+ doc? ( app-doc/doxygen virtual/latex-base media-gfx/graphviz ) |
178 |
+ test? ( sci-misc/ViSP-images ) |
179 |
+ v4l? ( virtual/os-headers )" |
180 |
+RDEPEND="${RDEPEND} |
181 |
+ demos? ( sci-misc/ViSP-images )" |
182 |
+REQUIRED_USE="motif? ( coin )" |
183 |
+ |
184 |
+S="${WORKDIR}/visp-${PV}" |
185 |
+PATCHES=( "${FILESDIR}/${PN}-3.0.1-opencv.patch" ) |
186 |
+ |
187 |
+src_configure() { |
188 |
+ local mycmakeargs=( |
189 |
+ "-DBUILD_EXAMPLES=$(usex examples ON OFF)" |
190 |
+ "-DBUILD_TESTS=$(usex test ON OFF)" |
191 |
+ "-DBUILD_DEMOS=$(usex demos ON OFF)" |
192 |
+ "-DBUILD_TUTORIALS=$(usex tutorials ON OFF)" |
193 |
+ "-DUSE_COIN3D=$(usex coin ON OFF)" |
194 |
+ "-DUSE_DC1394=$(usex ieee1394 ON OFF)" |
195 |
+ "-DUSE_DMTX=$(usex dmtx ON OFF)" |
196 |
+ "-DUSE_GSL=$(usex gsl ON OFF)" |
197 |
+ "-DUSE_LAPACK=$(usex lapack ON OFF)" |
198 |
+ "-DUSE_JPEG=$(usex jpeg ON OFF)" |
199 |
+ "-DUSE_PNG=$(usex png ON OFF)" |
200 |
+ "-DUSE_LIBUSB_1=$(usex usb ON OFF)" |
201 |
+ "-DUSE_OGRE=$(usex ogre ON OFF)" |
202 |
+ "-DUSE_OIS=$(usex ogre ON OFF)" |
203 |
+ "-DUSE_OPENCV=$(usex opencv ON OFF)" |
204 |
+ "-DUSE_SOQT=OFF" |
205 |
+ "-DUSE_SOXT=$(usex motif ON OFF)" |
206 |
+ "-DUSE_V4L2=$(usex v4l ON OFF)" |
207 |
+ "-DUSE_X11=$(usex X ON OFF)" |
208 |
+ "-DUSE_XML2=$(usex xml ON OFF)" |
209 |
+ "-DUSE_ZBAR=$(usex zbar ON OFF)" |
210 |
+ "-DUSE_ZLIB=$(usex zlib ON OFF)" |
211 |
+ "-DCOIN3D_INCLUDE_DIR=${EPREFIX:-${SYSROOT}}/usr/include/coin" |
212 |
+ "-DSOQT_INCLUDE_DIR=${EPREFIX:-${SYSROOT}}/usr/include/coin" |
213 |
+ "-DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)" |
214 |
+ "-DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)" |
215 |
+ "-DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)" |
216 |
+ ) |
217 |
+ cmake-utils_src_configure |
218 |
+} |
219 |
+ |
220 |
+src_compile() { |
221 |
+ cmake-utils_src_compile |
222 |
+ cd "${BUILD_DIR}" |
223 |
+ use doc && emake visp_doc |
224 |
+} |
225 |
+ |
226 |
+src_install() { |
227 |
+ cmake-utils_src_install |
228 |
+ if use tutorials ; then |
229 |
+ dodoc -r tutorial |
230 |
+ docompress -x /usr/share/doc/${PF}/tutorial |
231 |
+ fi |
232 |
+ cd "${BUILD_DIR}" |
233 |
+ use doc && dohtml -r doc/html/* |
234 |
+} |