[78422] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Fri May 6 23:41:34 PDT 2011


Revision: 78422
          http://trac.macports.org/changeset/78422
Author:   ryandesign at macports.org
Date:     2011-05-06 23:41:32 -0700 (Fri, 06 May 2011)
Log Message:
-----------
t4k_common: new port, version 0.1.1; see #29375

Added Paths:
-----------
    trunk/dports/devel/t4k_common/
    trunk/dports/devel/t4k_common/Portfile
    trunk/dports/devel/t4k_common/files/
    trunk/dports/devel/t4k_common/files/patch-linewrap_fix.diff

Added: trunk/dports/devel/t4k_common/Portfile
===================================================================
--- trunk/dports/devel/t4k_common/Portfile	                        (rev 0)
+++ trunk/dports/devel/t4k_common/Portfile	2011-05-07 06:41:32 UTC (rev 78422)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                t4k_common
+version             0.1.1
+categories          devel
+platforms           darwin
+maintainers         gmail.com:davidstuartbruce
+
+description         shared code for Tux4Kids apps "TuxMath" and "Tux Typing"
+
+long_description    ${name} is a common library for routines used in TuxMath \
+                    and Tux Typing.
+
+homepage            http://tux4kids.debian.alioth.org/
+master_sites        http://alioth.debian.org/frs/download.php/3540/
+
+checksums           sha1    626eddedee86059ccab593a226c8d98571018b46 \
+                    rmd160  6c0332ea44e4a44021c645e5b4329c2efd377fed
+
+depends_lib         port:libsdl \
+                    port:libsdl_image \
+                    port:libsdl_mixer \
+                    port:libsdl_net \
+                    port:libsdl_ttf \
+                    port:libsdl_pango \
+                    port:libxml2 \
+                    port:librsvg \
+                    port:libpng \
+                    port:gettext
+
+patchfiles          patch-linewrap_fix.diff


Property changes on: trunk/dports/devel/t4k_common/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/t4k_common/files/patch-linewrap_fix.diff
===================================================================
--- trunk/dports/devel/t4k_common/files/patch-linewrap_fix.diff	                        (rev 0)
+++ trunk/dports/devel/t4k_common/files/patch-linewrap_fix.diff	2011-05-07 06:41:32 UTC (rev 78422)
@@ -0,0 +1,43 @@
+diff --git src/linebreak/linebreak.c src/linebreak/linebreak.c
+index f9c88a1..6b0bf66 100644
+--- src/linebreak/linebreak.c
++++ src/linebreak/linebreak.c
+@@ -18,10 +18,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+ #include <config.h>
+ 
+ /* Modification by David Bruce <davidstuartbruce at gmail.com>
+- * to allow compilation under mingw-cross-env:
++ * to allow compilation under mingw-cross-env and OS-X:
+  */
+ 
+-#if defined BUILD_MINGW32 && !defined ICONV_CONST
++#ifndef ICONV_CONST
+ #define ICONV_CONST const
+ #endif
+ 
+diff --git src/t4k_common.h src/t4k_common.h
+index d4676e7..ef8bbd6 100644
+--- src/t4k_common.h
++++ src/t4k_common.h
+@@ -239,7 +239,7 @@ MFStrategy;
+ #define MAX_LINES 128     //!< Maximum lines to wrap.
+ #define MAX_LINEWIDTH 256 //!< Maximum characters of each line.
+ 
+-char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.
++static char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; //!< Global buffer for wrapped lines.
+ 
+ //TODO separate headers for different areas a la SDL?
+ 
+diff --git src/t4k_linewrap.c src/t4k_linewrap.c
+index 5f80ad1..cfa7308 100644
+--- src/t4k_linewrap.c
++++ src/t4k_linewrap.c
+@@ -32,7 +32,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+ #include <stdio.h>
+ 
+ static char wrapped_lines0[MAX_LINES][MAX_LINEWIDTH];  // for internal storage
+-char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; // publicly available!
++//char wrapped_lines[MAX_LINES][MAX_LINEWIDTH]; // publicly available!
+ 
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110506/3cf6474e/attachment-0001.html>


More information about the macports-changes mailing list