]> git.pld-linux.org Git - packages/dotnet-gtk-sharp.git/blob - dotnet-gtk-sharp-mint.patch
- outdated with mono 1.0
[packages/dotnet-gtk-sharp.git] / dotnet-gtk-sharp-mint.patch
1 diff -urN gtk-sharp-0.98.orig/configure.in gtk-sharp-0.98/configure.in
2 --- gtk-sharp-0.98.orig/configure.in    2004-06-20 12:44:16.977015568 +0200
3 +++ gtk-sharp-0.98/configure.in 2004-06-20 12:50:28.532530544 +0200
4 @@ -62,6 +62,7 @@
5  
6  MONO_REQUIRED_VERSION=0.96
7  PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
8 +PKG_CHECK_MODULES(MINT_DEPENDENCY, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
9  
10  if test "x$has_mono" = "xtrue"; then
11  GACUTIL_FLAGS='/package $(PACKAGE) /gacdir $(libdir)'
12 @@ -76,17 +77,22 @@
13         LIB_SUFFIX=
14  fi
15  else
16 -AC_PATH_PROG(CSC, csc.exe, no)
17 -GACUTIL_FLAGS=
18 -GENERATED_SOURCES=generated\\\\*.cs
19 -
20 -if test x$CSC = "xno"; then
21 -       AC_MSG_ERROR([You need to install either mono or .Net])
22 -else
23 -RUNTIME=
24 -LIB_PREFIX=
25 -LIB_SUFFIX=.dylib
26 -fi
27 +dnl use mint if mono is not found                                                                                               
28 +    if test "x$has_mint" = "xtrue"; then                                                                                        
29 +       AC_PATH_PROG(RUNTIME, mint, no)                                                                                          
30 +       AC_PATH_PROG(CSC, mcs, no)                                                                                               
31 +       LIB_PREFIX=                                                                                                              
32 +       LIB_SUFFIX=.so                                                                                                           
33 +    else                                                                                                                        
34 +       AC_PATH_PROG(CSC, csc.exe, no)                                                                                           
35 +       if test x$CSC = "xno"; then                                                                                              
36 +           AC_MSG_ERROR([You need to install either mono or .Net])                                                              
37 +       else                                                                                                                     
38 +           RUNTIME=                                                                                                             
39 +           LIB_PREFIX=                                                                                                          
40 +           LIB_SUFFIX=.dylib                                                                                                    
41 +       fi                                                                                                                       
42 +    fi           
43  fi
44  
45  CS="C#"
This page took 0.076681 seconds and 3 git commands to generate.