[23681] trunk/dports/graphics/antigraingeometry

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 6 12:41:06 PDT 2007


Revision: 23681
          http://trac.macosforge.org/projects/macports/changeset/23681
Author:   jann at macports.org
Date:     2007-04-06 12:41:06 -0700 (Fri, 06 Apr 2007)

Log Message:
-----------
Fixed issue with sdl dependency

Modified Paths:
--------------
    trunk/dports/graphics/antigraingeometry/Portfile

Added Paths:
-----------
    trunk/dports/graphics/antigraingeometry/files/
    trunk/dports/graphics/antigraingeometry/files/configure.in.diff
    trunk/dports/graphics/antigraingeometry/files/src-platform-Makefile.am.diff

Modified: trunk/dports/graphics/antigraingeometry/Portfile
===================================================================
--- trunk/dports/graphics/antigraingeometry/Portfile	2007-04-06 19:34:50 UTC (rev 23680)
+++ trunk/dports/graphics/antigraingeometry/Portfile	2007-04-06 19:41:06 UTC (rev 23681)
@@ -30,6 +30,10 @@
 depends_lib         port:freetype lib:libX11:XFree86
 depends_build       port:automake
 
+# These patchfiles hack out sdl support, it can't be done with a
+# configure flag because of some autoconf/automake issues...
+patchfiles          configure.in.diff src-platform-Makefile.am.diff
+
 use_autoconf        yes
 use_automake        yes
 automake.args       --foreign --add-missing --ignore-deps
@@ -51,3 +55,8 @@
 # Empty so it gets set for pre-configure
 variant darwin {
 }
+
+variant sdl {
+    patchfiles-delete   configure.in.diff src-platform-Makefile.am.diff
+    depends_lib-append  port:libsdl
+}

Added: trunk/dports/graphics/antigraingeometry/files/configure.in.diff
===================================================================
--- trunk/dports/graphics/antigraingeometry/files/configure.in.diff	                        (rev 0)
+++ trunk/dports/graphics/antigraingeometry/files/configure.in.diff	2007-04-06 19:41:06 UTC (rev 23681)
@@ -0,0 +1,41 @@
+--- configure.in.orig	2006-10-08 21:06:36.000000000 -0700
++++ configure.in	2007-04-06 11:40:26.000000000 -0700
+@@ -91,30 +91,6 @@
+ dnl ###############################################
+ 
+ 
+-
+-
+-dnl #########  Check for SDL: #####################
+-dnl the sdl script pollutes our global values:
+-temp_LIBS="$LIBS"
+-temp_CFLAGS="$CFLAGS"
+-temp_CXXFLAGS="$CXXFLAGS"
+-sdl_enabled=""
+-SDL_VERSION=1.2.0
+-AM_PATH_SDL($SDL_VERSION,
+-    [sdl_enabled="yes"],
+-    AC_MSG_WARN([*** SDL version $SDL_VERSION not found! Omitting sdl layer.])
+-    )
+-dnl ### Restore old values
+-CFLAGS=$temp_CFLAGS
+-CXXFLAGS=$temp_CXXFLAGS
+-LIBS=$temp_LIBS
+-dnl ### the sdl script already does that:
+-dnl AC_SUBST(SDL_CFLAGS)
+-dnl AC_SUBST(SDL_LIBS)
+-AM_CONDITIONAL(ENABLE_SDL,[test xyes = x$sdl_enabled -a xno != x$enable_platform -a x$win32_host != xyes])
+-dnl ###############################################
+-
+-
+ dnl #########  Checking for X11: ##################
+ AC_PATH_X
+ if test "$no_x" = "yes"; then
+@@ -151,7 +127,6 @@
+    src/ctrl/Makefile
+    src/platform/Makefile
+    src/platform/X11/Makefile
+-   src/platform/sdl/Makefile
+    src/platform/mac/Makefile
+    src/platform/win32/Makefile
+    src/platform/BeOS/Makefile

Added: trunk/dports/graphics/antigraingeometry/files/src-platform-Makefile.am.diff
===================================================================
--- trunk/dports/graphics/antigraingeometry/files/src-platform-Makefile.am.diff	                        (rev 0)
+++ trunk/dports/graphics/antigraingeometry/files/src-platform-Makefile.am.diff	2007-04-06 19:41:06 UTC (rev 23681)
@@ -0,0 +1,5 @@
+--- src/platform/Makefile.am.orig	2006-10-08 21:07:23.000000000 -0700
++++ src/platform/Makefile.am	2007-04-06 11:56:50.000000000 -0700
+@@ -1 +1 @@
+-SUBDIRS = X11 sdl win32 AmigaOS BeOS mac
++SUBDIRS = X11 win32 AmigaOS BeOS mac

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070406/24ccd248/attachment.html


More information about the macports-changes mailing list