wok-next view mono/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | cef5e17a43a1 |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mono"
4 VERSION="2.10.8"
5 CATEGORY="development"
6 SHORT_DESC="Cross-platform, open source .NET development framework"
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.mono-project.com/"
11 WGET_URL="http://download.mono-project.com/sources/$PACKAGE/$TARBALL"
13 BUILD_DEPENDS="tar bzip2 m4 pkg-config bison gawk \
14 gettext glib-dev perl libgdiplus-dev"
15 SPLIT="mono mono-dev mono-doc"
17 # Build documentation at http://mono-project.com/Compiling_Mono
18 # and http://mono-project.com/Release_Notes_Mono_2.4#Installing_Mono_2.4
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --sysconfdir=/etc \
25 --with-libgdiplus=installed \
26 $CONFIGURE_ARGS 2>&1 | grep -v /libtool &&
27 make -j 1 2>&1 | grep -v 'dll.makefrag: No such file' && make install
29 for i in System.Web_standalone_test_net_2_0 \
30 System.Web_standalone_test_net_4_0 \
31 System.Web.Extensions_standalone_test_net_2_0 \
32 System.Web.Extensions_standalone_test_net_4_0 \
33 net_2_0_standalone-runner-support \
34 net_4_0_standalone-runner-support ; do
35 touch -d 197001010000 mcs/build/deps/$i.dll.makefrag
36 done
37 cd $src/mcs/jay
38 make -j 1 && make DESTDIR=$DESTDIR prefix=/usr INSTALL=../../install-sh install
40 #fix .pc file to be able to request mono on what it depends, fixes #go-oo build
41 sed -i -e "s:#Requires:Requires:" $DESTDIR/usr/lib/pkgconfig/mono.pc
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 case $PACKAGE in
48 mono)
49 DEPENDS="glib glibc-base zlib libgdiplus"
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/mono $fs/usr/lib
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/etc $fs
55 chmod +x $fs/usr/bin/*
56 ;;
57 mono-dev)
58 CAT="development|mono development files."
59 DEPENDS="mono pkg-config"
60 mkdir -p $fs/usr/lib
61 cp -a $install/usr/lib/*.a $fs/usr/lib
62 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
63 cp -a $install/usr/include $fs/usr
64 ;;
65 mono-doc)
66 CAT="development|mono documentation files."
67 mkdir -p $fs/usr/lib
68 cp -a $install/usr/lib/monodoc $fs/usr/lib
69 ;;
70 esac
71 }