wok-next view cgal/receipt @ rev 20748
Update (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed May 30 20:13:48 2018 +0300 (2018-05-30) |
parents | df086e75a457 |
children | a244e109372e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cgal"
4 SOURCE="CGAL"
5 VERSION="4.11"
6 CATEGORY="misc"
7 SHORT_DESC="Computational Geometry Algorithms Library."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3 LGPL3"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="https://www.cgal.org/"
12 WGET_URL="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$VERSION/$TARBALL"
14 BUILD_DEPENDS="cmake libboost-dev gmp-dev mpfr-dev libboost-thread"
15 SPLIT="cgal cgal-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cmake -DCMAKE_INSTALL_PREFIX=/usr .
21 make
22 make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 case $PACKAGE in
29 cgal)
30 DEPENDS="libboost-thread libboost-system gcc-lib-base"
31 mkdir -p $fs/usr/lib
32 cp -a $install/usr/lib/*.so* $fs/usr/lib
33 ;;
34 cgal-dev)
35 CAT="development|Computational Geometry Algorithms Library, development files."
36 DEPENDS="cgal"
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/include $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib/CGAL $fs/usr/lib
41 ;;
42 esac
43 }