science:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-05 03:08:37 +03:00
parent 18d9611c8c
commit d986ed2694
10 changed files with 360 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
shelltools.export("PYTHONDONTWRITEBYTECODE", "")
def setup():
#temporary workaround for error: "'UINT64_C' was not declared in this scope"
shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS())
cmaketools.configure("-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_SKIP_RPATH=ON \
DESTDIR=%s \
-DBUILD_EXAMPLES=1 \
-DBUILD_SWIG_PYTHON_SUPPORT=1 \
-DINSTALL_C_EXAMPLES=1 \
-DINSTALL_PYTHON_EXAMPLES=1 \
-DINSTALL_OCTAVE_EXAMPLES=1 \
-DWITH_FFMPEG=0 \
-DWITH_UNICAP=0 \
-DENABLE_OPENMP=0 \
-DNEW_PYTHIN_SUPPORT=1 \
-DOCTAVE_SUPPORT=0 \
-DUSE_MMX=1 \
-DUSE_SSE2=1 \
-DUSE_SSE3=0 \
-DUSE_SSE=1 \
-DWITH_TBB=ON \
-DWITH_EIGEN=ON \
-DWITH_1394=1 \
-DWITH_GSTREAMER=1 \
-DWITH_GTK=1 \
-DWITH_JASPER=1 \
-DWITH_JPEG=1 \
-DWITH_PNG=1 \
-DWITH_TIFF=1 \
-DWITH_V4L=1 \
-DWITH_XINE=1 \
-DCMAKE_SKIP_RPATH=1" % get.installDIR())
# -DUSE_O3=OFF
# -DUSE_OMIT_FRAME_POINTER=OFF
def build():
cmaketools.make("VERBOSE=1")
def install():
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
# Move other docs and samples under standart doc dir
#doc_dir = "usr/share/doc/" + get.srcNAME()
#pisitools.domove("usr/share/opencv/doc", doc_dir)
#pisitools.domove("usr/share/opencv/samples", doc_dir)
pisitools.dodoc("README.md", "LICENSE", )
+120
View File
@@ -0,0 +1,120 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>opencv</Name>
<Homepage>http://opencv.willowgarage.com/wiki</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<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>
<Archive sha1sum="d16ced627db17f9864c681545f18f030c7a4cc0b" type="targz">https://github.com/Itseez/opencv/archive/2.4.9.tar.gz</Archive>
<BuildDependencies>
<Dependency>eigen</Dependency>
<Dependency>gtk2-devel</Dependency>
<Dependency>tiff-devel</Dependency>
<Dependency>libv4l-devel</Dependency>
<Dependency>openexr-libs</Dependency>
<Dependency>jasper-devel</Dependency>
<Dependency>lapack-devel</Dependency>
<Dependency>ilmbase-devel</Dependency>
<Dependency>openexr-devel</Dependency>
<Dependency>lapack-devel</Dependency>
<Dependency>xine-lib-devel</Dependency>
<Dependency>xine-lib-devel</Dependency>
<Dependency>libdc1394-devel</Dependency>
<Dependency>gstreamer-devel</Dependency>
<Dependency>intel-tbb-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency>gst-plugins-base-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>opencv</Name>
<RuntimeDependencies>
<Dependency>gtk2</Dependency>
<Dependency>tiff</Dependency>
<Dependency>jasper</Dependency>
<Dependency>libv4l</Dependency>
<Dependency>ilmbase</Dependency>
<Dependency>openexr</Dependency>
<Dependency>xine-lib</Dependency>
<Dependency>libdc1394</Dependency>
<Dependency>intel-tbb</Dependency>
<Dependency>gstreamer</Dependency>
<Dependency>openexr-libs</Dependency>
<Dependency>gst-plugins-base</Dependency>
<Dependency>libjpeg-turbo</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/OpenCV</Path>
<Path fileType="data">/usr/share/opencv</Path>
</Files>
</Package>
<Package>
<Name>opencv-docs</Name>
<Summary>Computer vision library documents and examples</Summary>
<Files>
<Path fileType="doc">/usr/share/doc/opencv</Path>
<Path fileType="doc">/usr/share/doc/opencv/samples</Path>
</Files>
</Package>
<Package>
<Name>opencv-devel</Name>
<Summary>Development files for opencv</Summary>
<RuntimeDependencies>
<Dependency release="current">opencv</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2014-05-15</Date>
<Version>2.4.9</Version>
<Comment>Version bump.</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-11-20</Date>
<Version>2.4.7</Version>
<Comment>Version bump</Comment>
<Name>Richard de Bruin</Name>
<Email>richdb@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-08-20</Date>
<Version>2.4.6.1</Version>
<Comment>ignore xine-lib</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-13</Date>
<Version>2.4.6.1</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-08</Date>
<Version>2.4.3</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>opencv</Name>
<Summary xml:lang="tr">Bilgisayarla görme kütüphanesi</Summary>
<Summary xml:lang="pl">Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym</Summary>
<Description xml:lang="tr">opencv gerçek zamanlı bilgisayarla görme işlemleri için tasarlanmış bir kütüphanedir. İnsan-bilgisayar etkileşimi, nesne tanımlama, yüz tanıma, hareket izleme, mobil robotik, opencv'nin kullanıldığı bazı uygulama alanlarıdır.</Description>
<Description xml:lang="pl">OpenCV (Open Source Computer Vision) to biblioteka funkcji przeznaczonych głównie do grafiki komputerowej w czasie rzeczywistym.</Description>
</Source>
<Package>
<Name>opencv-devel</Name>
<Summary xml:lang="tr">opencv için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki naglowkowe do opencv</Summary>
</Package>
</PISI>