[114087] trunk/dports/games/gtypist

cal at macports.org cal at macports.org
Thu Nov 28 11:34:45 PST 2013


Revision: 114087
          https://trac.macports.org/changeset/114087
Author:   cal at macports.org
Date:     2013-11-28 11:34:45 -0800 (Thu, 28 Nov 2013)
Log Message:
-----------
gtypist: Fix build on OS X by actually using the variable defined by the configure check for libiconv.

Modified Paths:
--------------
    trunk/dports/games/gtypist/Portfile

Added Paths:
-----------
    trunk/dports/games/gtypist/files/
    trunk/dports/games/gtypist/files/patch-src_Makefile.in-add-libiconv.diff

Modified: trunk/dports/games/gtypist/Portfile
===================================================================
--- trunk/dports/games/gtypist/Portfile	2013-11-28 17:20:01 UTC (rev 114086)
+++ trunk/dports/games/gtypist/Portfile	2013-11-28 19:34:45 UTC (rev 114087)
@@ -24,7 +24,8 @@
 
 depends_lib     port:ncurses port:gettext
 
-patch {
+patchfiles      patch-src_Makefile.in-add-libiconv.diff
+post-patch {
     #Fix ncursesw dependency, wide char support is included in ncurses now.
     foreach f {cursmenu.c error.c gtypist.c script.c utf8.c} {
         reinplace "s|ncursesw/ncurses.h|ncurses.h|" ${worksrcpath}/src/$f

Added: trunk/dports/games/gtypist/files/patch-src_Makefile.in-add-libiconv.diff
===================================================================
--- trunk/dports/games/gtypist/files/patch-src_Makefile.in-add-libiconv.diff	                        (rev 0)
+++ trunk/dports/games/gtypist/files/patch-src_Makefile.in-add-libiconv.diff	2013-11-28 19:34:45 UTC (rev 114087)
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig	2013-11-28 20:31:12.000000000 +0100
++++ src/Makefile.in	2013-11-28 20:31:35.000000000 +0100
+@@ -358,7 +358,7 @@
+ gtypist_SOURCES = gtypist.c cursmenu.c script.c error.c getopt.c getopt1.c \
+ 		cursmenu.h error.h getopt.h gettext.h gtypist.h script.h utf8.c utf8.h
+ 
+-gtypist_LDADD = @LIBINTL@
++gtypist_LDADD = @LIBINTL@ @LIBICONV@
+ AM_CPPFLAGS = -I../intl \
+   -DDATADIR=\"$(pkgdatadir)\" \
+   -DLOCALEDIR=\"$(datadir)/locale\"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131128/792d5707/attachment.html>


More information about the macports-changes mailing list