wok-4.x view mpc-library/receipt @ rev 12466
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.23.1
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Nov 09 15:12:00 2022 +0000 (2022-11-09) |
parents | dd0e8a306fc7 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpc-library"
4 VERSION="1.0.2"
5 CATEGORY="development"
6 SHORT_DESC="MPC is a C library for the arithmetic of complex numbers."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="mpc"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.multiprecision.org/"
11 WGET_URL="http://www.multiprecision.org/mpc/download/$TARBALL"
13 DEPENDS="mpfr gmp"
14 BUILD_DEPENDS="mpfr-dev gmp-dev"
16 compile_rules()
17 {
18 cd $src
19 ./configure $CONFIGURE_ARGS && make && make install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr
26 cp -a $_pkg/usr/lib $fs/usr
27 cp -a $_pkg/usr/include $fs/usr
29 # Workaround soname transition (mpc 0.8.2 > 1.0.2)
30 # libmpc.so.2 > libmpc.so.3 for cc1
31 cd $fs/usr/lib
32 ln -sf libmpc.so.3 libmpc.so.2
33 }