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
+25
View File
@@ -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")
@@ -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
@@ -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 \
@@ -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 <ucontext.h>
#include <signal.h>
+68
View File
@@ -0,0 +1,68 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ilmbase</Name>
<Homepage>http://www.openexr.com</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>Several utility libraries from ILM (Industrial Light &amp; Magic) used by OpenEXR</Summary>
<Description>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).</Description>
<Archive sha1sum="bfa62519094413f686c6f08c5923b47a10eea180" type="targz">http://download.savannah.nongnu.org/releases/openexr/ilmbase-2.0.1.tar.gz</Archive>
<Patches>
<Patch level="1">ilmbase-2.0.1-no_undefined.patch</Patch>
<Patch level="0">ilmbase-IexMath.patch</Patch>
<Patch level="1">ilmbase-1.0.3-pkgconfig.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ilmbase</Name>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>ilmbase-devel</Name>
<Summary>Development files for ilmbase</Summary>
<RuntimeDependencies>
<Dependency release="current">ilmbase</Dependency>
<Dependency>mesa-glu-devel</Dependency>
<Dependency>mesa-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2014-05-25</Date>
<Version>2.0.1</Version>
<Comment>Rebuild</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-16</Date>
<Version>2.0.1</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2010-10-13</Date>
<Version>1.0.2</Version>
<Comment>First release</Comment>
<Name>Gökcen Eraslan</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ilmbase</Name>
<Summary xml:lang="tr">ILM (Industrial Light &amp; Magic) şirketinden OpenEXR tarafından kullanılan çeşitli araç ve kitaplıklar</Summary>
<Description xml:lang="tr">IlmBase, ILM tarafından yayınlanan ve onların OpenEXR gerçeklemelerinde kullandıkları kitaplıkları içerir. Bu pakette; libHalf (&quot;yarım&quot; 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.</Description>
</Source>
<Package>
<Name>ilmbase-devel</Name>
<Summary xml:lang="tr">ilmbase için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>ilmbase-devel</Name>
<Summary xml:lang="tr">ilmbase için geliştirme dosyaları</Summary>
</Package>
</PISI>
+3
View File
@@ -0,0 +1,3 @@
<PISI>
<Name>science.robotics</Name>
</PISI>
+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>