[79915] trunk/dports/multimedia/avidemux/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Jun 29 02:05:32 PDT 2011
Revision: 79915
http://trac.macports.org/changeset/79915
Author: ryandesign at macports.org
Date: 2011-06-29 02:05:31 -0700 (Wed, 29 Jun 2011)
Log Message:
-----------
avidemux: use built-in reinplace instead of external dos2unix to fix line endings
Modified Paths:
--------------
trunk/dports/multimedia/avidemux/Portfile
Modified: trunk/dports/multimedia/avidemux/Portfile
===================================================================
--- trunk/dports/multimedia/avidemux/Portfile 2011-06-29 08:47:29 UTC (rev 79914)
+++ trunk/dports/multimedia/avidemux/Portfile 2011-06-29 09:05:31 UTC (rev 79915)
@@ -26,8 +26,7 @@
depends_build-append \
port:pkgconfig \
- port:yasm \
- port:dos2unix
+ port:yasm
depends_lib-append port:gtk2 \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
@@ -46,8 +45,16 @@
patch-libsdl_CMakeLists.txt.diff \
patch-x264.diff
-pre-patch {
- system "cd ${worksrcpath}/plugins/ADM_videoEncoder/ADM_vidEnc_x264 && dos2unix *.h *.cpp"
+post-extract {
+ # DOS to UNIX line endings so we can patch properly.
+ fs-traverse file ${worksrcpath}/plugins/ADM_videoEncoder/ADM_vidEnc_x264 {
+ switch [file extension ${file}] {
+ .cpp -
+ .h {
+ reinplace "s|\r||g" ${file}
+ }
+ }
+ }
}
# do a out of place build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110629/08f60d01/attachment.html>
More information about the macports-changes
mailing list