wok-current annotate cocoalib/receipt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents fff755dd0f58
children
rev   line source
al@13723 1 # SliTaz package receipt.
al@13723 2
al@13723 3 PACKAGE="cocoalib"
Hans-G?nter@22604 4 VERSION="0.99650"
al@13723 5 CATEGORY="misc"
Hans-G?nter@22604 6 SHORT_DESC="C++ library for computations in commutative algebra"
al@13723 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15058 8 LICENSE="GPL3"
pascal@25105 9 WEB_SITE="https://web.archive.org/web/20220622092428/https://cocoa.dima.unige.it/cocoa/cocoalib/"
Hans-G?nter@22604 10
al@13723 11 TARBALL="CoCoALib-$VERSION.tgz"
pascal@25105 12 WGET_URL="https://web.archive.org/web/20220621195548if_/https://cocoa.dima.unige.it/cocoa/cocoalib/tgz/$TARBALL"
al@13723 13
Hans-G?nter@22604 14 DEPENDS="gcc83-lib-base gmp gsl libboost-filesystem libboost-iostreams
Hans-G?nter@22604 15 libboost-system libboost-thread libboost-tr1"
Hans-G?nter@22604 16 BUILD_DEPENDS="bash gcc83 gmp-dev gsl-dev libboost-filesystem-dev
Hans-G?nter@22604 17 libboost-iostreams-dev libboost-system-dev libboost-thread-dev
Hans-G?nter@22604 18 libboost-tr1-dev"
al@13723 19
pascal@24433 20 # What is the latest version available today?
pascal@24433 21 current_version()
pascal@24433 22 {
pascal@24433 23 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24433 24 sed "/latest/d;/CoCoALib-[0-9]/!d;/tgz/!d;s|.*CoCoALib-\\(.*\\).tgz.*|\\1|" | sort -Vr | sed q
pascal@24433 25 }
pascal@24433 26
al@13723 27 # Rules to configure and make the package.
al@13723 28 compile_rules()
al@13723 29 {
Hans-G?nter@22604 30 # find | grep Makefile | sed 's/Makefile.*/Makefile_dependencies/' | \
Hans-G?nter@22604 31 # xargs touch -d 197001010000
Hans-G?nter@22604 32
Hans-G?nter@22604 33 export CC=gcc-83 # rejected as configure parameter
Hans-G?nter@22604 34 export CXX=g++-83
Hans-G?nter@22604 35
Hans-G?nter@22604 36 ./configure &&
Hans-G?nter@22604 37 make library
al@13723 38 # INSTALL TARGET for CoCoALib NOT YET IMPLEMENTED
al@13723 39 }
al@13723 40
al@13723 41 # Rules to gen a SliTaz package suitable for Tazpkg.
al@13723 42 genpkg_rules()
al@13723 43 {
Hans-G?nter@22604 44 mkdir -p $fs/usr/lib
Hans-G?nter@22604 45 mkdir -p $fs/usr/include
Hans-G?nter@22604 46 cp -a $src/lib/libcocoa.a /$fs/usr/lib
Hans-G?nter@22604 47 cp -a $src/include/* $fs/usr/include
al@13723 48 }