[Libreoffice-commits] .: 2 commits - configure.in scp2/source

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Fri Dec 3 03:14:48 PST 2010


 configure.in                            |   37 +++++++++++++++++++-------------
 scp2/source/impress/makefile.mk         |    4 +++
 scp2/source/impress/module_impress.scp  |    3 ++
 scp2/source/impress/module_ogltrans.scp |    4 +++
 scp2/source/ooo/file_library_ooo.scp    |    2 -
 scp2/source/ooo/makefile.mk             |    3 ++
 6 files changed, 36 insertions(+), 17 deletions(-)

New commits:
commit 212acde8d82ed5943f6b4a17a2fb03de3947beb4
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Fri Dec 3 04:46:15 2010 -0600

    disable cairo on MacOS

diff --git a/configure.in b/configure.in
index f955fe3..c2129c1 100644
--- a/configure.in
+++ b/configure.in
@@ -1628,6 +1628,7 @@ case "$build_os" in
         test_gtk=yes
         test_randr=no
         test_freetype=no
+	test_cairo=no
         _os=Darwin
       if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
          AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray])
commit b6f1ca2d484a564957b72a9612af3cc9f1f8da23
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Thu Dec 2 19:34:50 2010 -0600

    Make --with-opengl work on MacOS
    
    now that --with-opengl is enabled by default, merge the patch
    dev300/transogl-crossplatform.diff.

diff --git a/configure.in b/configure.in
index 0db1336..f955fe3 100644
--- a/configure.in
+++ b/configure.in
@@ -6487,24 +6487,30 @@ dnl ===================================================================
 AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
 ENABLE_OPENGL=
 
-if test "x$enable_opengl" != "xno" ; then
-   if test "$_os" != "WNT"; then
-      save_LDFLAGS=$LDFLAGS
-     LDFLAGS="$LDFLAGS -lm"
-     AC_MSG_RESULT([yes])
-     AC_CHECK_HEADER(GL/gl.h, [],
+if test "$_os" = "Darwin" ; then
+   # We use frameworks on Mac OS X, no need for detail checks
+   ENABLE_OPENGL=TRUE
+   AC_MSG_RESULT([yes])
+else
+   if test "x$enable_opengl" != "xno" ; then
+      if test "$_os" != "WNT"; then
+         save_LDFLAGS=$LDFLAGS
+        LDFLAGS="$LDFLAGS -lm"
+        AC_MSG_RESULT([yes])
+        AC_CHECK_HEADER(GL/gl.h, [],
                      [AC_MSG_ERROR([OpenGL headers not found])], [])
-     AC_CHECK_LIB(GL, main, [],
-       [AC_MSG_ERROR(libGL not installed or functional)], [])
-     AC_CHECK_LIB(GLU, main, [],
-       [AC_MSG_ERROR(libGLU not installed or functional)], [])
-     ENABLE_OPENGL=TRUE
-     LDFLAGS=$save_LDFLAGS
+        AC_CHECK_LIB(GL, main, [],
+                     [AC_MSG_ERROR(libGL not installed or functional)], [])
+        AC_CHECK_LIB(GLU, main, [],
+                     [AC_MSG_ERROR(libGLU not installed or functional)], [])
+        ENABLE_OPENGL=TRUE
+        LDFLAGS=$save_LDFLAGS
+      else
+        AC_MSG_RESULT([not on windows])
+      fi
    else
-     AC_MSG_RESULT([not on windows])
+      AC_MSG_RESULT([no])
    fi
-else
-   AC_MSG_RESULT([no])
 fi
 
 AC_SUBST(ENABLE_OPENGL)
diff --git a/scp2/source/impress/makefile.mk b/scp2/source/impress/makefile.mk
index 0a6e4c3..0a67e86 100644
--- a/scp2/source/impress/makefile.mk
+++ b/scp2/source/impress/makefile.mk
@@ -39,6 +39,10 @@ TARGETTYPE=CUI
 
 SCP_PRODUCT_TYPE=osl
 
+.IF "$(ENABLE_OPENGL)"=="TRUE"
+SCPDEFS+=-DENABLE_OPENGL
+.ENDIF
+
 PARFILES= \
         module_impress.par              \
         file_impress.par 
diff --git a/scp2/source/impress/module_impress.scp b/scp2/source/impress/module_impress.scp
index 1682b88..0960117 100644
--- a/scp2/source/impress/module_impress.scp
+++ b/scp2/source/impress/module_impress.scp
@@ -45,6 +45,9 @@ Module gid_Module_Prg_Impress_Bin
     Files = (gid_File_Extra_Urldesktop_Impress,gid_File_Extra_Urlnew_Impress,gid_File_Extra_Urlstart_Impress,gid_File_Extra_Urltasks_Impress,gid_File_Lib_Placeware,
     gid_File_Share_Registry_Impress_Xcd,
 	gid_File_Lib_Animcore,gid_File_Share_Config_Sofficecfg_Impress_Effects_Xml, gid_File_Share_Config_Sofficecfg_Impress_Transitions_Xml,
+ #if defined ENABLE_OPENGL
+     gid_File_Share_Config_Sofficecfg_Impress_Transitions_OGL_Xml,
+ #endif
     gid_File_Tmp_Userinstall_Impress_Inf);
 End
 
diff --git a/scp2/source/impress/module_ogltrans.scp b/scp2/source/impress/module_ogltrans.scp
index 06fbb4b..e3a767a 100644
--- a/scp2/source/impress/module_ogltrans.scp
+++ b/scp2/source/impress/module_ogltrans.scp
@@ -42,7 +42,11 @@ File gid_File_Lib_OpenGLTransitions
     RegistryID = gid_Starregistry_Services_Rdb;
     Dir = SCP2_OOO_BIN_DIR;
   #ifdef UNX
+    #ifdef QUARTZ
+    Name = STRING(CONCAT2(libOGLTrans.uno,UNXSUFFIX));
+    #else
     Name = STRING(CONCAT2(OGLTrans.uno,UNXSUFFIX));
+    #endif
   #else
     Name = "OGLTrans.uno.dll";
   #endif
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index db10a1f..c3efa6f 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -592,7 +592,6 @@ End
 #endif
 #endif
 
-#ifdef MACOSX
 #ifdef QUARTZ
 File gid_File_Lib_Fps_Aqua
     TXT_FILE_BODY;
@@ -619,7 +618,6 @@ File gid_File_Lib_avmediaQuickTime
 	Dir = SCP2_OOO_BIN_DIR;
 End
 #endif
-#endif
 
 #ifdef WNT
 SPECIAL_UNO_COMPONENT_LIB_FILE( gid_File_Lib_Fps_ODMA, fps_odma.uno )
diff --git a/scp2/source/ooo/makefile.mk b/scp2/source/ooo/makefile.mk
index fc2ebdd..8220876 100644
--- a/scp2/source/ooo/makefile.mk
+++ b/scp2/source/ooo/makefile.mk
@@ -49,6 +49,9 @@ SCPDEFS+=-DBUILD_SPECIAL
 SCPDEFS+=-DBUILD_X64
 .ENDIF
 
+.IF "$(ENABLE_OPENGL)"=="TRUE"
+SCPDEFS+=-DENABLE_OPENGL
+.ENDIF
 
 SCPDEFS+=-DINCLUDE_JAVA_ACCESSBRIDGE
 


More information about the Libreoffice-commits mailing list