summaryrefslogtreecommitdiff
path: root/extra/libindi
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/libindi
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/libindi')
-rw-r--r--extra/libindi/PKGBUILD40
-rw-r--r--extra/libindi/linking-pthread.patch11
2 files changed, 51 insertions, 0 deletions
diff --git a/extra/libindi/PKGBUILD b/extra/libindi/PKGBUILD
new file mode 100644
index 000000000..54427ffd4
--- /dev/null
+++ b/extra/libindi/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 62098 2010-01-02 09:13:44Z tpowa $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=libindi
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="A distributed control protocol designed to operate astronomical instrumentation"
+url="http://www.indilib.org/index.php?title=Main_Page"
+license=('GPL2')
+arch=('i686' 'x86_64')
+depends=('gcc-libs' 'zlib' 'libnova' 'cfitsio')
+makedepends=('pkgconfig' 'cmake')
+provides=('indilib')
+replaces=('indilib')
+conflicts=('indilib')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/indi/${pkgname}_${pkgver}.tar.gz"
+ 'linking-pthread.patch')
+md5sums=('a78a77dc2322a46f5bf4c5d75380e8b0'
+ '1ebc282e259cb0c9c52cad3dadd5e044')
+
+build() {
+ # fixed upstream
+ cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np2 -i ${srcdir}/linking-pthread.patch
+
+ cd ${srcdir}
+ mkdir build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR=${pkgdir} install
+}
diff --git a/extra/libindi/linking-pthread.patch b/extra/libindi/linking-pthread.patch
new file mode 100644
index 000000000..c012707a2
--- /dev/null
+++ b/extra/libindi/linking-pthread.patch
@@ -0,0 +1,11 @@
+--- trunk/libindi/CMakeLists.txt 2010/11/20 11:45:07 397
++++ trunk/libindi/CMakeLists.txt 2010/12/01 08:36:20 412
+@@ -164,7 +164,7 @@
+ ############# INDI Client Library ################
+ ##################################################
+ add_library(indiclient STATIC ${indibase_SRCS})
+-target_link_libraries(indiclient indi)
++target_link_libraries(indiclient indi pthread)
+ install(TARGETS indiclient ARCHIVE DESTINATION lib${LIB_POSTFIX})
+
+ #####################################