updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cgal / PKGBUILD
blobf1f9ee15d53d5caa6180c89cfb0b55b336e6812d
1 pkgname=cgal
2 pkgver=3.9
3 pkgrel=4
4 _pkgid=29125
5 pkgdesc="Computational Geometry Algorithms Library"
6 arch=('i686' 'x86_64')
7 url="http://www.cgal.org"
8 source=(http://gforge.inria.fr/frs/download.php/$_pkgid/CGAL-$pkgver.tar.xz
9         boost-1.48.patch)
10 depends=('mpfr' 'boost' 'gmp')
11 optdepends=('qt: for CGAL_Qt4')
12 makedepends=('cmake' 'xz')
13 license=('LGPL' 'custom:QPL')
14 md5sums=('797697130ff9231627521c0a38f16d2f'
15          '62a49b37ff4d04daae9b3a03365de4ef')
17 build() {
18   cd $srcdir/CGAL-$pkgver
19   patch -p1 < $srcdir/boost-1.48.patch
20   cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
21   make
22   make install DESTDIR=$pkgdir
24   for _license in LICENSE{,.FREE_USE,.QPL,.LGPL}; do
25     install -D -m644 $srcdir/CGAL-$pkgver/$_license $pkgdir/usr/share/licenses/$pkgname/$_license
26   done