[133940] trunk/dports/devel/xxdiff/Portfile

larryv at macports.org larryv at macports.org
Sun Mar 15 17:17:09 PDT 2015


Revision: 133940
          https://trac.macports.org/changeset/133940
Author:   larryv at macports.org
Date:     2015-03-15 17:17:09 -0700 (Sun, 15 Mar 2015)
Log Message:
-----------
xxdiff: Refactor build stage

The first `make` command generates a makefile that the second `make`
command uses to do the actual building, so let's split them into
a faux-configure phase and a proper build phase.

Modified Paths:
--------------
    trunk/dports/devel/xxdiff/Portfile

Modified: trunk/dports/devel/xxdiff/Portfile
===================================================================
--- trunk/dports/devel/xxdiff/Portfile	2015-03-16 00:17:02 UTC (rev 133939)
+++ trunk/dports/devel/xxdiff/Portfile	2015-03-16 00:17:09 UTC (rev 133940)
@@ -27,14 +27,18 @@
                     sha1    ab2848fd9279f55b5db270f319ad4791154ecf82 \
                     rmd160  12e7527f39713b925f05b687c2ad8b60459bb670
 
-use_configure       no
+# "Configure" and build adapted from README.build.
 
-build {
-    # Build xxdiff with qmake.
-    system "cd ${worksrcpath}/src; make -f Makefile.bootstrap makefile QTDIR=${prefix}"
-    system "cd ${worksrcpath}/src; make QTDIR=${prefix}"
-}
+build.type          gnu
 
+configure.dir       ${worksrcpath}/src
+configure.cmd       ${build.cmd}
+configure.pre_args  -f Makefile.bootstrap
+configure.args      QTDIR='${prefix}' makefile
+
+build.dir           ${configure.dir}
+build.args          QTDIR='${prefix}'
+
 destroot {
 
     # Destroot xxdiff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150315/aaadb8a3/attachment.html>


More information about the macports-changes mailing list