# SliTaz package receipt. PACKAGE="cgal" SOURCE="CGAL" VERSION="4.9" CATEGORY="misc" SHORT_DESC="Computational Geometry Algorithms Library." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3 LGPL3" TARBALL="$SOURCE-$VERSION.tar.xz" WEB_SITE="https://www.cgal.org/" WGET_URL="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$VERSION/$TARBALL" DEPENDS="libboost-thread libboost-system gcc-lib-base" BUILD_DEPENDS="wget cmake libboost-dev gmp-dev mpfr-dev libboost-thread-dev" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { cmake -DCMAKE_INSTALL_PREFIX=/usr . make make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }