summaryrefslogtreecommitdiff
path: root/community/cgal
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-11 03:21:28 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-11 03:21:28 +0000
commit121ee20158ca9869daadf9a2993b431af9661cb6 (patch)
tree3b8f82250a4d0f25ef33e3ea3300c24a74c262dd /community/cgal
parentffe0bbfd85b1341f3b15f809ea92f330d2f7cea3 (diff)
Tue Feb 11 03:19:20 UTC 2014
Diffstat (limited to 'community/cgal')
-rw-r--r--community/cgal/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/cgal/PKGBUILD b/community/cgal/PKGBUILD
new file mode 100644
index 000000000..eba147901
--- /dev/null
+++ b/community/cgal/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 105550 2014-02-10 04:57:25Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Dmitriy Morozov <foxcub>
+
+pkgname=cgal
+pkgver=4.3
+pkgrel=2
+_pkgid=32995
+pkgdesc="Computational Geometry Algorithms Library"
+arch=('i686' 'x86_64')
+url="http://www.cgal.org"
+license=('GPL' 'LGPL')
+source=(http://gforge.inria.fr/frs/download.php/$_pkgid/CGAL-$pkgver.tar.xz)
+depends=('mpfr' 'boost-libs' 'gmp' 'mesa' 'glu')
+optdepends=('qt4: for CGAL_Qt4'
+ 'eigen: for some packages, see the CGAL manual')
+makedepends=('cmake' 'qt4' 'eigen' 'boost')
+md5sums=('c0af5e3a56300b0c92ebd3a1f0df9149')
+
+# consider building with swig for python stuff
+
+build() {
+ cd "$srcdir/CGAL-$pkgver"
+ mkdir build
+ cd build
+ cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/CGAL-$pkgver/build"
+ make install DESTDIR="$pkgdir"
+
+ # The tarball still has all theese licenses included
+ for _license in LICENSE{,.FREE_USE,.GPL,.LGPL}; do
+ install -D -m644 "$srcdir/CGAL-$pkgver/$_license" "$pkgdir/usr/share/licenses/$pkgname/$_license"
+ done
+}