@@ -15,9 +15,12 @@ def setup():
|
|||||||
|
|
||||||
#temporary workaround for error: "'UINT64_C' was not declared in this scope"
|
#temporary workaround for error: "'UINT64_C' was not declared in this scope"
|
||||||
shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS())
|
shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS())
|
||||||
|
|
||||||
|
shelltools.makedirs("build")
|
||||||
|
shelltools.cd("build")
|
||||||
cmaketools.configure("-D CMAKE_BUILD_TYPE=Release \
|
cmaketools.configure("-D CMAKE_BUILD_TYPE=Release \
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||||
-D CMAKE_SKIP_RPATH=ON \
|
-D CMAKE_SKIP_RPATH=ON \
|
||||||
DESTDIR=%s \
|
DESTDIR=%s \
|
||||||
-DBUILD_EXAMPLES=1 \
|
-DBUILD_EXAMPLES=1 \
|
||||||
@@ -45,15 +48,17 @@ def setup():
|
|||||||
-DWITH_TIFF=1 \
|
-DWITH_TIFF=1 \
|
||||||
-DWITH_V4L=1 \
|
-DWITH_V4L=1 \
|
||||||
-DWITH_XINE=1 \
|
-DWITH_XINE=1 \
|
||||||
-DCMAKE_SKIP_RPATH=1" % get.installDIR())
|
-DCMAKE_SKIP_RPATH=1", sourceDir="..")
|
||||||
# -DUSE_O3=OFF
|
# -DUSE_O3=OFF
|
||||||
# -DUSE_OMIT_FRAME_POINTER=OFF
|
# -DUSE_OMIT_FRAME_POINTER=OFF
|
||||||
|
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
cmaketools.make("VERBOSE=1")
|
shelltools.cd("build")
|
||||||
|
cmaketools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
|
shelltools.cd("build")
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
# Move other docs and samples under standart doc dir
|
# Move other docs and samples under standart doc dir
|
||||||
@@ -61,6 +66,8 @@ def install():
|
|||||||
|
|
||||||
#pisitools.domove("usr/share/opencv/doc", doc_dir)
|
#pisitools.domove("usr/share/opencv/doc", doc_dir)
|
||||||
#pisitools.domove("usr/share/opencv/samples", doc_dir)
|
#pisitools.domove("usr/share/opencv/samples", doc_dir)
|
||||||
|
|
||||||
|
shelltools.cd("..")
|
||||||
|
|
||||||
pisitools.dodoc("README.md", "LICENSE", )
|
pisitools.dodoc("README.md", "LICENSE", )
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>Computer vision library</Summary>
|
<Summary>Computer vision library</Summary>
|
||||||
<Description>opencv is a programming library mainly aimed at the real time computer vision. Example applications are human-computer interaction, object identification, face recognition, motion tracking, mobile robotics.</Description>
|
<Description>opencv is a programming library mainly aimed at the real time computer vision. Example applications are human-computer interaction, object identification, face recognition, motion tracking, mobile robotics.</Description>
|
||||||
<Archive sha1sum="ed6ba1a2fbb4868343495757079cd60f3a6096d5" type="targz">https://github.com/opencv/opencv/archive/3.2.0.tar.gz</Archive>
|
<Archive sha1sum="1ca31fda993f224fe2d15010ebfa71c6cdc1f338" type="targz">https://github.com/opencv/opencv/archive/3.4.1.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
<Dependency>gtk2-devel</Dependency>
|
<Dependency>gtk2-devel</Dependency>
|
||||||
@@ -25,11 +25,14 @@
|
|||||||
<Dependency>lapack-devel</Dependency>
|
<Dependency>lapack-devel</Dependency>
|
||||||
<Dependency>python-numpy</Dependency>
|
<Dependency>python-numpy</Dependency>
|
||||||
<Dependency>python-devel</Dependency>
|
<Dependency>python-devel</Dependency>
|
||||||
|
<Dependency>python3-devel</Dependency>
|
||||||
|
<Dependency>python3-numpy</Dependency>
|
||||||
<Dependency>xine-lib-devel</Dependency>
|
<Dependency>xine-lib-devel</Dependency>
|
||||||
<Dependency>libdc1394-devel</Dependency>
|
<Dependency>libdc1394-devel</Dependency>
|
||||||
<Dependency>gstreamer-devel</Dependency>
|
<Dependency>gstreamer-devel</Dependency>
|
||||||
<Dependency>gdk-pixbuf-devel</Dependency>
|
<Dependency>gdk-pixbuf-devel</Dependency>
|
||||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||||
|
<Dependency>libgphoto2-devel</Dependency>
|
||||||
<Dependency>gst-plugins-base-devel</Dependency>
|
<Dependency>gst-plugins-base-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
</Source>
|
</Source>
|
||||||
@@ -46,6 +49,7 @@
|
|||||||
<Dependency>libpng</Dependency>
|
<Dependency>libpng</Dependency>
|
||||||
<Dependency>libv4l</Dependency>
|
<Dependency>libv4l</Dependency>
|
||||||
<Dependency>ilmbase</Dependency>
|
<Dependency>ilmbase</Dependency>
|
||||||
|
<Dependency>libgphoto2</Dependency>
|
||||||
<Dependency>openexr-libs</Dependency>
|
<Dependency>openexr-libs</Dependency>
|
||||||
<Dependency>xine-lib</Dependency>
|
<Dependency>xine-lib</Dependency>
|
||||||
<Dependency>libdc1394</Dependency>
|
<Dependency>libdc1394</Dependency>
|
||||||
@@ -84,6 +88,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="8">
|
||||||
|
<Date>2018-03-23</Date>
|
||||||
|
<Version>3.4.1</Version>
|
||||||
|
<Comment>Version bump</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="7">
|
<Update release="7">
|
||||||
<Date>2018-02-14</Date>
|
<Date>2018-02-14</Date>
|
||||||
<Version>3.2.0</Version>
|
<Version>3.2.0</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user