From d986ed269491e31390635d90961f4b9e6f609d9a Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Sun, 5 Jul 2015 03:08:37 +0300 Subject: [PATCH] science:moved into main repo for pisi 2.0 --- science/misc/ilmbase/actions.py | 25 ++++ .../files/ilmbase-1.0.3-pkgconfig.patch | 8 ++ .../files/ilmbase-2.0.1-no_undefined.patch | 24 ++++ .../misc/ilmbase/files/ilmbase-IexMath.patch | 12 ++ science/misc/ilmbase/pspec.xml | 68 ++++++++++ science/misc/ilmbase/translations.xml | 18 +++ science/robotics/component.xml | 3 + science/robotics/opencv/actions.py | 66 ++++++++++ science/robotics/opencv/pspec.xml | 120 ++++++++++++++++++ science/robotics/opencv/translations.xml | 16 +++ 10 files changed, 360 insertions(+) create mode 100644 science/misc/ilmbase/actions.py create mode 100644 science/misc/ilmbase/files/ilmbase-1.0.3-pkgconfig.patch create mode 100644 science/misc/ilmbase/files/ilmbase-2.0.1-no_undefined.patch create mode 100644 science/misc/ilmbase/files/ilmbase-IexMath.patch create mode 100644 science/misc/ilmbase/pspec.xml create mode 100644 science/misc/ilmbase/translations.xml create mode 100644 science/robotics/component.xml create mode 100644 science/robotics/opencv/actions.py create mode 100644 science/robotics/opencv/pspec.xml create mode 100644 science/robotics/opencv/translations.xml diff --git a/science/misc/ilmbase/actions.py b/science/misc/ilmbase/actions.py new file mode 100644 index 0000000000..f2f348b5bd --- /dev/null +++ b/science/misc/ilmbase/actions.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.system("./bootstrap") + autotools.configure("--disable-static") + +def build(): + autotools.make() + +def check(): + autotools.make("check") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "LICENSE", "README") diff --git a/science/misc/ilmbase/files/ilmbase-1.0.3-pkgconfig.patch b/science/misc/ilmbase/files/ilmbase-1.0.3-pkgconfig.patch new file mode 100644 index 0000000000..bbc704fc4f --- /dev/null +++ b/science/misc/ilmbase/files/ilmbase-1.0.3-pkgconfig.patch @@ -0,0 +1,8 @@ +diff -up ilmbase-1.0.3/IlmBase.pc.in.pkgconfig ilmbase-1.0.3/IlmBase.pc.in +--- ilmbase-1.0.3/IlmBase.pc.in.pkgconfig 2012-07-17 18:27:25.000000000 -0500 ++++ ilmbase-1.0.3/IlmBase.pc.in 2012-09-08 11:11:15.913468312 -0500 +@@ -9,3 +9,4 @@ Description: Base math and exception lib + Version: @ILMBASE_VERSION@ + Libs: -L${libdir} -lImath -lHalf -lIex -lIexMath -lIlmThread @PTHREAD_LIBS@ + Cflags: @PTHREAD_CFLAGS@ -I${OpenEXR_includedir} ++Requires.private: gl glu diff --git a/science/misc/ilmbase/files/ilmbase-2.0.1-no_undefined.patch b/science/misc/ilmbase/files/ilmbase-2.0.1-no_undefined.patch new file mode 100644 index 0000000000..87a35c9d75 --- /dev/null +++ b/science/misc/ilmbase/files/ilmbase-2.0.1-no_undefined.patch @@ -0,0 +1,24 @@ +diff -up ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined ilmbase-2.0.1/IlmThread/Makefile.am +--- ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined 2013-06-18 14:51:38.000000000 -0500 ++++ ilmbase-2.0.1/IlmThread/Makefile.am 2013-08-28 21:04:25.793391766 -0500 +@@ -14,7 +14,7 @@ libIlmThread_la_LDFLAGS = -version-info + if LIB_SUFFIX_EXISTS + libIlmThread_la_LDFLAGS += -release @LIB_SUFFIX@ + endif +-libIlmThread_la_LIBADD = ../Iex/libIex.la ++libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS) + + libIlmThreadincludedir = $(includedir)/OpenEXR + +diff -up ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined ilmbase-2.0.1/IlmThread/Makefile.in +--- ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined 2013-06-18 14:55:24.000000000 -0500 ++++ ilmbase-2.0.1/IlmThread/Makefile.in 2013-08-28 21:04:55.395049371 -0500 +@@ -253,7 +253,7 @@ libIlmThread_la_SOURCES = IlmThreadPool. + + libIlmThread_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ \ + -no-undefined $(am__append_1) +-libIlmThread_la_LIBADD = ../Iex/libIex.la ++libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS) + libIlmThreadincludedir = $(includedir)/OpenEXR + libIlmThreadinclude_HEADERS = IlmThreadPool.h IlmThread.h \ + IlmThreadSemaphore.h IlmThreadMutex.h \ diff --git a/science/misc/ilmbase/files/ilmbase-IexMath.patch b/science/misc/ilmbase/files/ilmbase-IexMath.patch new file mode 100644 index 0000000000..5460349667 --- /dev/null +++ b/science/misc/ilmbase/files/ilmbase-IexMath.patch @@ -0,0 +1,12 @@ +--- IexMath/IexMathFpu.cpp.orig 2012-07-26 20:51:55.000000000 +0200 ++++ IexMath/IexMathFpu.cpp 2012-10-04 15:30:47.000000000 +0200 +@@ -27,8 +27,7 @@ + #endif + + +-#ifdef HAVE_UCONTEXT_H +- ++#if defined(HAVE_UCONTEXT_H) && (defined(x86_64) || defined(i386_)) + + #include + #include diff --git a/science/misc/ilmbase/pspec.xml b/science/misc/ilmbase/pspec.xml new file mode 100644 index 0000000000..cda3640dde --- /dev/null +++ b/science/misc/ilmbase/pspec.xml @@ -0,0 +1,68 @@ + + + + + ilmbase + http://www.openexr.com + + PisiLinux Community + admins@pisilinux.org + + BSD + library + Several utility libraries from ILM (Industrial Light & Magic) used by OpenEXR + IlmBase are a set of utility libraries released by ILM, and used in their OpenEXR implementation. Included in this package you can find; libHalf (a class named Half for manipulating "half" values (16-bit floating point format) as if they were a built-in C++ data type), libIlmThread (a thread abstraction library on top of pthreads), libImath (a math library with support for matrices, 2d and 3d transformations, solvers for linear/quadratic/cubic equations and more), libIex (an exception handling library). + http://download.savannah.nongnu.org/releases/openexr/ilmbase-2.0.1.tar.gz + + ilmbase-2.0.1-no_undefined.patch + ilmbase-IexMath.patch + ilmbase-1.0.3-pkgconfig.patch + + + + + ilmbase + + /usr/lib + /usr/share/doc + + + + + ilmbase-devel + Development files for ilmbase + + ilmbase + mesa-glu-devel + mesa-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-25 + 2.0.1 + Rebuild + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-01-16 + 2.0.1 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2010-10-13 + 1.0.2 + First release + Gökcen Eraslan + admins@pisilinux.org + + + diff --git a/science/misc/ilmbase/translations.xml b/science/misc/ilmbase/translations.xml new file mode 100644 index 0000000000..dbaf17257a --- /dev/null +++ b/science/misc/ilmbase/translations.xml @@ -0,0 +1,18 @@ + + + + ilmbase + ILM (Industrial Light & Magic) şirketinden OpenEXR tarafından kullanılan çeşitli araç ve kitaplıklar + IlmBase, ILM tarafından yayınlanan ve onların OpenEXR gerçeklemelerinde kullandıkları kitaplıkları içerir. Bu pakette; libHalf ("yarım" değerleri (16-bit kayan noktalı sayı biçimi) C++ dilinin kendi tipleriymiş gibi kullanan Half sınıfı), libIlmThread (pthread üerine yazılmış bir soyutlama kitaplığı), libImath (matris, 2 ve 3 boyutlu dönüşümler, lineer, ikinci ve üçüncü dereceden denklem çözücü destekli matematik kitaplığı), libIex (istisna işleme kitaplığı) kitaplıklarını bulabilirsiniz. + + + + ilmbase-devel + ilmbase için geliştirme dosyaları + + + + ilmbase-devel + ilmbase için geliştirme dosyaları + + diff --git a/science/robotics/component.xml b/science/robotics/component.xml new file mode 100644 index 0000000000..8f17ce2ba6 --- /dev/null +++ b/science/robotics/component.xml @@ -0,0 +1,3 @@ + + science.robotics + diff --git a/science/robotics/opencv/actions.py b/science/robotics/opencv/actions.py new file mode 100644 index 0000000000..18ceff541f --- /dev/null +++ b/science/robotics/opencv/actions.py @@ -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", ) + diff --git a/science/robotics/opencv/pspec.xml b/science/robotics/opencv/pspec.xml new file mode 100644 index 0000000000..14e06cfa5a --- /dev/null +++ b/science/robotics/opencv/pspec.xml @@ -0,0 +1,120 @@ + + + + + opencv + http://opencv.willowgarage.com/wiki + + PisiLinux Community + admins@pisilinux.org + + BSD + library + Computer vision library + 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. + https://github.com/Itseez/opencv/archive/2.4.9.tar.gz + + eigen + gtk2-devel + tiff-devel + libv4l-devel + openexr-libs + jasper-devel + lapack-devel + ilmbase-devel + openexr-devel + lapack-devel + xine-lib-devel + xine-lib-devel + libdc1394-devel + gstreamer-devel + intel-tbb-devel + libjpeg-turbo-devel + gst-plugins-base-devel + + + + + opencv + + gtk2 + tiff + jasper + libv4l + ilmbase + openexr + xine-lib + libdc1394 + intel-tbb + gstreamer + openexr-libs + gst-plugins-base + libjpeg-turbo + + + /usr/lib + /usr/bin + /usr/share/OpenCV + /usr/share/opencv + + + + + opencv-docs + Computer vision library documents and examples + + /usr/share/doc/opencv + /usr/share/doc/opencv/samples + + + + + opencv-devel + Development files for opencv + + opencv + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-15 + 2.4.9 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2013-11-20 + 2.4.7 + Version bump + Richard de Bruin + richdb@pisilinux.org + + + 2013-08-20 + 2.4.6.1 + ignore xine-lib + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-07-13 + 2.4.6.1 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2012-11-08 + 2.4.3 + First release + Marcin Bojara + marcin@pisilinux.org + + + diff --git a/science/robotics/opencv/translations.xml b/science/robotics/opencv/translations.xml new file mode 100644 index 0000000000..cac2bf2ba9 --- /dev/null +++ b/science/robotics/opencv/translations.xml @@ -0,0 +1,16 @@ + + + + opencv + Bilgisayarla görme kütüphanesi + Biblioteka funkcji do grafiki komputerowej w czasie rzeczywistym + 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. + OpenCV (Open Source Computer Vision) to biblioteka funkcji przeznaczonych głównie do grafiki komputerowej w czasie rzeczywistym. + + + + opencv-devel + opencv için geliştirme dosyaları + Pliki naglowkowe do opencv + +