[62645] trunk/dports/devel/git-core/Portfile

sharky at macports.org sharky at macports.org
Wed Jan 13 05:11:00 PST 2010


Revision: 62645
          http://trac.macports.org/changeset/62645
Author:   sharky at macports.org
Date:     2010-01-13 05:10:57 -0800 (Wed, 13 Jan 2010)
Log Message:
-----------
git-core: fix build errors when using arch flags

Modified Paths:
--------------
    trunk/dports/devel/git-core/Portfile

Modified: trunk/dports/devel/git-core/Portfile
===================================================================
--- trunk/dports/devel/git-core/Portfile	2010-01-13 12:56:05 UTC (rev 62644)
+++ trunk/dports/devel/git-core/Portfile	2010-01-13 13:10:57 UTC (rev 62645)
@@ -5,6 +5,7 @@
 
 name              git-core
 version           1.6.6
+revision          1
 description       A fast version control system
 long_description  Git is a fast, scalable, distributed open source version \
                   control system focusing on speed and efficiency.
@@ -39,7 +40,10 @@
 
 use_configure  no
 
-build.args     CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib" \
+set CFLAGS     "-Wall -O2 -I${prefix}/include ${configure.cc_archflags}"
+set LDFLAGS    "-L${prefix}/lib ${configure.ld_archflags}"
+
+build.args     CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
                CC=${configure.cc} \
                prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} \
                PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 \
@@ -54,7 +58,7 @@
 
 destroot.destdir  DESTDIR=${destroot} prefix=${prefix}
 destroot.target   install
-destroot.args     CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib" \
+destroot.args     CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
                   prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} \
                   PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 \
                   NO_R_TO_GCC_LINKER=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100113/378e6eff/attachment.html>


More information about the macports-changes mailing list