wok-next view mono/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | b7b6a40f3cb4 |
children | 5669e8b3be70 |
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 xorg-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 }