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