wok-next view mono/receipt @ rev 21382

updated nbd (3.3 -> 3.20)
author Hans-G?nter Theisgen
date Thu Apr 16 17:27:00 2020 +0100 (2020-04-16)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mono"
4 VERSION="5.12.0.226"
5 CATEGORY="development"
6 SHORT_DESC="Cross platform, open source .NET framework"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.mono-project.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="https://download.mono-project.com/sources/mono/$TARBALL"
14 BUILD_DEPENDS="zlib-dev gettext-dev libtool libx11-dev cmake libgdiplus-dev"
15 SPLIT="$PACKAGE-doc $PACKAGE $PACKAGE-dev"
16 COOKOPTS="skip-log-errors"
18 # Build documentation at https://www.mono-project.com/docs/compiling-mono/
20 compile_rules() {
21 # mono fails to build for i486...
22 export CFLAGS=${CFLAGS/i486/i686}
23 echo "CFLAGS : $CFLAGS"
25 # --with-spectre-mitigation=yes \
26 # --with-spectre-indirect-branch-choice=extern \
27 ./configure \
28 --with-libgdiplus=installed \
29 $CONFIGURE_ARGS &&
30 fix libtool &&
31 make &&
32 make install
34 cd $src/mcs/jay
35 make -j1 &&
36 make \
37 DESTDIR=$install \
38 prefix=/usr \
39 INSTALL=../../install-sh \
40 install || return 1
42 chmod +x $install/usr/bin/*.py
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 mono-doc)
48 copy usr/lib/monodoc/
49 CAT="development|documentation"
50 ;;
51 mono)
52 copy @std @rm
53 DEPENDS="glib glibc-base zlib libgdiplus"
54 ;;
55 mono-dev)
56 copy @dev
57 ;;
58 esac
59 }