[96468] trunk/dports/archivers/pbzip2/Portfile

cal at macports.org cal at macports.org
Fri Aug 10 15:58:59 PDT 2012


Revision: 96468
          https://trac.macports.org/changeset/96468
Author:   cal at macports.org
Date:     2012-08-10 15:58:58 -0700 (Fri, 10 Aug 2012)
Log Message:
-----------
pbzip2: use the right compiler

Modified Paths:
--------------
    trunk/dports/archivers/pbzip2/Portfile

Modified: trunk/dports/archivers/pbzip2/Portfile
===================================================================
--- trunk/dports/archivers/pbzip2/Portfile	2012-08-10 22:24:27 UTC (rev 96467)
+++ trunk/dports/archivers/pbzip2/Portfile	2012-08-10 22:58:58 UTC (rev 96468)
@@ -23,13 +23,16 @@
 checksums         rmd160 179b548c72f63555a6d51d9d3bd86e3ab002e6a6 \
                   sha256 86bd6d58e5a6c13cf8c709620ebfe186fca423c2724225bb30431fa7a453aee2
 
-set CFLAGS        "${configure.ldflags} ${configure.cppflags}"
-
 configure {
-  reinplace "s|-pthread -lpthread|${CFLAGS}|" ${worksrcpath}/Makefile
   reinplace "s|man|share/man|" ${worksrcpath}/Makefile
 }
 
+
+# yes, the Makefile actually requires $(CC) to compile C++
+build.args-append CC=${configure.cxx} \
+                  CFLAGS=\"${configure.cxxflags} [get_canonical_archflags cxx]\" \
+                  LDFLAGS=\"${configure.ldflags} -lbz2\"
+
 destroot.destdir  PREFIX=${destroot}${prefix}
 
 post-destroot {
@@ -43,9 +46,7 @@
     ${destroot}${docdir}
 }
 
-variant universal {
-  set CFLAGS "${CFLAGS} ${configure.universal_cflags}"
-}
+variant universal {}
 
 livecheck.type    regex
 livecheck.url     ${homepage}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120810/afc7ba4f/attachment.html>


More information about the macports-changes mailing list