wok-next annotate 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 |
rev | line source |
---|---|
pascal@20185 | 1 # SliTaz package receipt v2. |
rcx@3231 | 2 |
rcx@3231 | 3 PACKAGE="mono" |
al@20865 | 4 VERSION="5.12.0.226" |
rcx@3231 | 5 CATEGORY="development" |
al@20865 | 6 SHORT_DESC="Cross platform, open source .NET framework" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15172 | 8 LICENSE="LGPL2" |
al@20865 | 9 WEB_SITE="https://www.mono-project.com/" |
al@20534 | 10 |
al@20865 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20865 | 12 WGET_URL="https://download.mono-project.com/sources/mono/$TARBALL" |
pascal@15172 | 13 |
al@21078 | 14 BUILD_DEPENDS="zlib-dev gettext-dev libtool libx11-dev cmake libgdiplus-dev" |
al@21020 | 15 SPLIT="$PACKAGE-doc $PACKAGE $PACKAGE-dev" |
al@20865 | 16 COOKOPTS="skip-log-errors" |
rcx@3231 | 17 |
al@20865 | 18 # Build documentation at https://www.mono-project.com/docs/compiling-mono/ |
rcx@3231 | 19 |
al@20534 | 20 compile_rules() { |
al@20869 | 21 # mono fails to build for i486... |
al@20869 | 22 export CFLAGS=${CFLAGS/i486/i686} |
al@20869 | 23 echo "CFLAGS : $CFLAGS" |
al@20869 | 24 |
al@20866 | 25 # --with-spectre-mitigation=yes \ |
al@20866 | 26 # --with-spectre-indirect-branch-choice=extern \ |
rcx@3231 | 27 ./configure \ |
slaxemulator@12320 | 28 --with-libgdiplus=installed \ |
al@20534 | 29 $CONFIGURE_ARGS && |
al@20599 | 30 fix libtool && |
al@20865 | 31 make && |
al@20534 | 32 make install |
slaxemulator@12320 | 33 |
slaxemulator@12320 | 34 cd $src/mcs/jay |
al@20534 | 35 make -j1 && |
al@21020 | 36 make \ |
al@21020 | 37 DESTDIR=$install \ |
al@21020 | 38 prefix=/usr \ |
al@21020 | 39 INSTALL=../../install-sh \ |
al@21020 | 40 install || return 1 |
slaxemulator@12320 | 41 |
al@20865 | 42 chmod +x $install/usr/bin/*.py |
rcx@3231 | 43 } |
rcx@3231 | 44 |
al@20534 | 45 genpkg_rules() { |
pascal@20185 | 46 case $PACKAGE in |
al@20534 | 47 mono-doc) |
al@20534 | 48 copy usr/lib/monodoc/ |
al@20534 | 49 CAT="development|documentation" |
al@20534 | 50 ;; |
al@20534 | 51 mono) |
al@20534 | 52 copy @std @rm |
al@20534 | 53 DEPENDS="glib glibc-base zlib libgdiplus" |
al@20534 | 54 ;; |
al@20534 | 55 mono-dev) |
al@20534 | 56 copy @dev |
al@20534 | 57 ;; |
pascal@20185 | 58 esac |
rcx@3231 | 59 } |