Modified: trunk/dports/_resources/port1.0/group/kde4-1.1.tcl (74205 => 74206)
--- 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@Phonon@phonon@" ${item}
- }
+ if {[file isfile ${item}]} {
+ reinplace "/#include/s@Phonon@phonon@" ${item}
+ }
}
}