[84348] trunk/dports/multimedia/live555/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Sep 22 22:43:39 PDT 2011
Revision: 84348
http://trac.macports.org/changeset/84348
Author: ryandesign at macports.org
Date: 2011-09-22 22:43:36 -0700 (Thu, 22 Sep 2011)
Log Message:
-----------
live555: remove unnecessary build artifacts and distribution files from destroot; see #31324
Modified Paths:
--------------
trunk/dports/multimedia/live555/Portfile
Modified: trunk/dports/multimedia/live555/Portfile
===================================================================
--- trunk/dports/multimedia/live555/Portfile 2011-09-23 05:10:41 UTC (rev 84347)
+++ trunk/dports/multimedia/live555/Portfile 2011-09-23 05:43:36 UTC (rev 84348)
@@ -4,6 +4,7 @@
name live555
version 2011.09.19
+revision 1
categories multimedia
maintainers milosh openmaintainer
description LIVE555 Streaming Media
@@ -23,16 +24,42 @@
distname live.${version}
universal_variant no
worksrcdir live
+
+set files_0 ${workpath}/files-0.txt
+set files_1 ${workpath}/files-1.txt
+set files_new ${workpath}/files-new.txt
+
configure.cmd ./genMakefiles
configure.pre_args {}
+post-configure {
+ ui_debug "Create a list of files: \[${files_0}\]"
+ system -W ${worksrcpath} "find -s . ! -type d > ${files_0}"
+}
+
build.args-append C_COMPILER='${configure.cc} [get_canonical_archflags]' \
CPLUSPLUS_COMPILER='${configure.cxx} [get_canonical_archflags]' \
LINK='${configure.cxx} [get_canonical_archflags] -o '
-
+
+post-build {
+ ui_debug "Create an updated list of files: \[${files_1}\]"
+ system -W ${worksrcpath} "find -s . ! -type d > ${files_1}"
+
+ ui_debug "Create a list of new files: \[${files_new}\]"
+ system "comm -1 -3 ${files_0} ${files_1} > ${files_new}"
+}
+
destroot {
- xinstall -d ${destroot}${prefix}/lib
- file copy ${workpath}/live ${destroot}${prefix}/lib/
+ set dst ${destroot}${prefix}/lib/live
+
+ ui_debug "Copy worksrcpath into destroot"
+ file copy ${worksrcpath} ${dst}
+
+ ui_debug "Delete everything but *.hh and *.h files listed in \[${files_0}\]"
+ system -W ${dst} "grep -v -e '\\.h\$' -e '\\.hh\$' ${files_0} | xargs rm"
+
+ ui_debug "Delete every *.o file listed in \[${files_new}\]"
+ system -W ${dst} "grep -e '\\.o\$' ${files_new} | xargs rm"
}
platform macosx {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110922/8bbfe924/attachment-0001.html>
More information about the macports-changes
mailing list