[74206] trunk/dports/_resources/port1.0/group/kde4-1.1.tcl
michaelld at macports.org
michaelld at macports.org
Tue Dec 7 07:27:56 PST 2010
Revision: 74206
http://trac.macports.org/changeset/74206
Author: michaelld at macports.org
Date: 2010-12-07 07:27:51 -0800 (Tue, 07 Dec 2010)
Log Message:
-----------
KDE 1.1 PortGroup:
* Make sure the build.dir is set for destroot, in case the user is installing by stages.
* Add extra comments on the build.dir.
* Fix spacing of Phonon reinplace.
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/kde4-1.1.tcl
Modified: trunk/dports/_resources/port1.0/group/kde4-1.1.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/kde4-1.1.tcl 2010-12-07 15:24:49 UTC (rev 74205)
+++ trunk/dports/_resources/port1.0/group/kde4-1.1.tcl 2010-12-07 15:27:51 UTC (rev 74206)
@@ -37,19 +37,26 @@
PortGroup cmake 1.0
PortGroup qt4 1.0
+# build in a separate directory; have to put these into phases because
+# ${distname} and ${workpath} are not necessarily defined at the
+# top-level while they are guaranteed to be by the pre-fetch phase.
+
# setup all KDE4 ports to build in a separate directory from the source;
# this setting must be the full directory path
post-extract { file mkdir ${workpath}/build }
+# Have to set for configure, build, and destroot phases only.
pre-configure {
# standard post-arg, where to find the primary CMakeLists.txt file.
configure.post_args ../${distname}
configure.dir ${workpath}/build
}
-
pre-build {
build.dir ${workpath}/build
}
+pre-destroot {
+ build.dir ${workpath}/build
+}
# Automoc added as build dependency here as most, if not all kde
# programs currently need it. The automoc port, which includes this
@@ -78,9 +85,9 @@
# Following the official word: Change #include ["<]Phonon...[">] to
# ...phonon... in all files that contain that header.
fs-traverse item ${workpath}/${distname} {
- if {[file isfile ${item}]} {
- reinplace "/#include/s at Phonon@phonon@" ${item}
- }
+ if {[file isfile ${item}]} {
+ reinplace "/#include/s at Phonon@phonon@" ${item}
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101207/6ec71cc8/attachment.html>
More information about the macports-changes
mailing list