]> git.pld-linux.org Git - packages/dotnet-gnome-sharp.git/blob - dotnet-gnome-sharp-mint.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dotnet-gnome-sharp.git] / dotnet-gnome-sharp-mint.patch
1 diff -urN gnome-sharp-2.24.2/configure.in gnome-sharp-2.24.2.new//configure.in
2 --- gnome-sharp-2.24.2/configure.in     2010-10-09 21:42:55.000000000 +0200
3 +++ gnome-sharp-2.24.2.new//configure.in        2010-10-23 15:49:01.620369916 +0200
4 @@ -98,6 +98,15 @@
5         fi
6  fi
7  
8 +PKG_CHECK_MODULES(MINT_DEPENDENCY, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
9 +if test "x$has_mint" = "xfalse" ; then
10 +       MONO_REQUIRED_VERSION=1.0
11 +       PKG_CHECK_MODULES(MINT_DEPENDENCY, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
12 +       if test "x$has_mint" = "xtrue" ; then
13 +               enable_monogetoptions=yes
14 +       fi
15 +fi
16 +
17  AC_PATH_PROG(GACUTIL, gacutil, no)
18  if test "x$GACUTIL" = "xno" ; then
19         AC_MSG_ERROR([No gacutil tool found. You need to install either the mono or .Net SDK.])
20 @@ -126,6 +135,20 @@
21         LIB_PREFIX=.so
22         LIB_SUFFIX=
23  fi
24 +elif test "x$has_mint" = "xtrue"; then
25 +dnl use mint if mono is not found
26 +GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /root $(DESTDIR)$(prefix)/lib'
27 +GENERATED_SOURCES=generated/*.cs
28 +AC_PATH_PROG(RUNTIME, mint, no)
29 +AC_PATH_PROG(CSC, mcs, no)
30 +LIB_PREFIX=.so
31 +LIB_SUFFIX=
32 +SDCHECK="`$GACUTIL /l |grep ^System.Drawing, | head -n1 |cut -f1 -d','`"
33 +if test "x$SDCHECK" = "xSystem.Drawing"; then
34 +       enable_dotnet=yes
35 +else
36 +       enable_dotnet=no
37 +fi
38  else
39  AC_PATH_PROG(CSC, csc.exe, no)
40  GACUTIL_FLAGS=
This page took 0.065448 seconds and 3 git commands to generate.