On Wed, 20 May 2009, Alex Popov wrote:

> On 5/19/2009 12:07, Anil Madhavapeddy wrote:
>> Here is an early diff for anyone who wants to try out OCaml 3.11.1RC1
>>    
> Anil,
>
> I have built and installed ocaml-3.11.1RC1 using your diff, but when I  
> am building unison it downloads ocaml-3.11.0 instead.
> What do I need to changed in unison port to make it use newer ocaml.
>
> Thanks,
>
> Alex
>

Hi,

For example, in order to build mldonkey, You need to change 
ports/net/mldonkey/stable/patches/patch-config_configure_in from this:

$OpenBSD: patch-config_configure_in,v 1.9 2009/03/11 21:30:31 avsm Exp $
--- config/configure.in.orig    Sun Sep  9 16:15:08 2007
+++ config/configure.in Thu Nov 27 11:24:05 2008
@@ -279,9 +279,9 @@ if test ! -z "$SUB_VERSION3"; then
   MLDONKEY_VERSION=$MLDONKEY_VERSION.$SUB_VERSION3
 fi
 
-REQUIRED_OCAML=3.10.0
-DOWNLOAD_OCAML_MAJOR=3.10
-DOWNLOAD_OCAML=3.10.0
+REQUIRED_OCAML=3.11.0
+DOWNLOAD_OCAML_MAJOR=3.11
+DOWNLOAD_OCAML=3.11.0
 
 REQUIRED_LABLGTK=1.2.7
 
@@ -850,7 +850,7 @@ if test "$GD" != "no"; then
       PNG_LDFLAGS=`$PNGLIBCONFIG --ldflags`
       LDFLAGS="$LDFLAGS $PNG_LDFLAGS"
     fi
-    AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes])
+    AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes],, -lz -lm)
 # restore variables
     LIBS=$SAVE_LIBS_PNG
     CFLAGS=$SAVE_CFLAGS_PNG
@@ -878,7 +878,7 @@ if test "$GD" != "no"; then
         GD=yes
        GD_PNG=yes
         AC_MSG_RESULT(yes)
-       AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 
1,)])
+       AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 
1,)],, -lz -lm)
         AC_DEFINE(HAVE_GD_PNG, 1, [Define to 1 if you have png support in 
libgd.])
       else
         AC_MSG_RESULT(no)

To this:

$OpenBSD: patch-config_configure_in,v 1.9 2009/03/11 21:30:31 avsm Exp $
--- config/configure.in.orig    Sun Sep  9 16:15:08 2007
+++ config/configure.in Thu Nov 27 11:24:05 2008
@@ -279,9 +279,9 @@ if test ! -z "$SUB_VERSION3"; then
   MLDONKEY_VERSION=$MLDONKEY_VERSION.$SUB_VERSION3
 fi
 
-REQUIRED_OCAML=3.10.0
-DOWNLOAD_OCAML_MAJOR=3.10
-DOWNLOAD_OCAML=3.10.0
+REQUIRED_OCAML=3.11.1+rc0
+DOWNLOAD_OCAML_MAJOR=3.11
+DOWNLOAD_OCAML=3.11.1+rc0

 REQUIRED_LABLGTK=1.2.7
 
@@ -850,7 +850,7 @@ if test "$GD" != "no"; then
       PNG_LDFLAGS=`$PNGLIBCONFIG --ldflags`
       LDFLAGS="$LDFLAGS $PNG_LDFLAGS"
     fi
-    AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes])
+    AC_CHECK_LIB(png, png_create_read_struct , [LIBPNG=yes],, -lz -lm)
 # restore variables
     LIBS=$SAVE_LIBS_PNG
     CFLAGS=$SAVE_CFLAGS_PNG
@@ -878,7 +878,7 @@ if test "$GD" != "no"; then
         GD=yes
        GD_PNG=yes
         AC_MSG_RESULT(yes)
-       AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 
1,)])
+       AC_CHECK_LIB(png, png_access_version_number,[AC_DEFINE(HAVE_PNGVERSION, 
1,)],, -lz -lm)
         AC_DEFINE(HAVE_GD_PNG, 1, [Define to 1 if you have png support in 
libgd.])
       else
         AC_MSG_RESULT(no)


Best regards,
David

Reply via email to