Modified: trunk/dports/multimedia/avidemux/Portfile (79914 => 79915)
--- 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