[69917] trunk/dports/x11/imake

mcalhoun at macports.org mcalhoun at macports.org
Wed Jul 21 13:14:58 PDT 2010


Revision: 69917
          http://trac.macports.org/changeset/69917
Author:   mcalhoun at macports.org
Date:     2010-07-21 13:14:57 -0700 (Wed, 21 Jul 2010)
Log Message:
-----------
imake: Ensure correct compiler is used; Add openmaintainer.

Modified Paths:
--------------
    trunk/dports/x11/imake/Portfile

Added Paths:
-----------
    trunk/dports/x11/imake/files/
    trunk/dports/x11/imake/files/patch-imakemdep.h.diff

Modified: trunk/dports/x11/imake/Portfile
===================================================================
--- trunk/dports/x11/imake/Portfile	2010-07-21 20:10:49 UTC (rev 69916)
+++ trunk/dports/x11/imake/Portfile	2010-07-21 20:14:57 UTC (rev 69917)
@@ -7,7 +7,7 @@
 version      1.0.3
 categories   x11 devel
 platforms    darwin
-maintainers  mcalhoun
+maintainers  mcalhoun openmaintainer
 
 description       Discontinued imake build system.
 long_description  ${description}
@@ -23,6 +23,13 @@
                     sha1    625a974dd0fe4c4e9d7ec036fc7b079ec05185f1 \
                     rmd160  5cbd5f23fc8360a10cb36c367405f5950443349d
 
+patchfiles-append patch-imakemdep.h.diff
+
+post-patch {
+    reinplace "s|__MACPORTS_CPP__|${configure.cpp}|g" ${worksrcpath}/imakemdep.h
+    reinplace "s|__MACPORTS_CC__|${configure.cc}|g"   ${worksrcpath}/imakemdep.h
+}
+
 depends_run    port:xorg-cf-files path:bin/perl:perl5
 depends_build  port:pkgconfig port:xorg-xproto
 

Added: trunk/dports/x11/imake/files/patch-imakemdep.h.diff
===================================================================
--- trunk/dports/x11/imake/files/patch-imakemdep.h.diff	                        (rev 0)
+++ trunk/dports/x11/imake/files/patch-imakemdep.h.diff	2010-07-21 20:14:57 UTC (rev 69917)
@@ -0,0 +1,13 @@
+--- imakemdep.h.orig	2010-05-02 10:59:14.000000000 -0700
++++ imakemdep.h	2010-05-02 11:00:51.000000000 -0700
+@@ -270,8 +270,8 @@
+ #  if !defined (CROSSCOMPILE) || defined (CROSSCOMPILE_CPP)
+ 
+ #   if defined(__APPLE__)
+-#    define DEFAULT_CPP "/usr/bin/cpp"
+-#    define DEFAULT_CC "cc"
++#    define DEFAULT_CPP "__MACPORTS_CPP__"
++#    define DEFAULT_CC "__MACPORTS_CC__"
+ #   endif
+ #   if defined(Lynx) || defined(__Lynx__)
+ #    define DEFAULT_CC "gcc"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100721/8bb65d26/attachment.html>


More information about the macports-changes mailing list