[35077] trunk/dports/multimedia/ffmpeg/Portfile

reiffert at macports.org reiffert at macports.org
Sun Mar 16 10:06:52 PDT 2008


Revision: 35077
          http://trac.macosforge.org/projects/macports/changeset/35077
Author:   reiffert at macports.org
Date:     2008-03-16 10:06:47 -0700 (Sun, 16 Mar 2008)

Log Message:
-----------
Symlink the library header files to a single place, at least for libav*. libdlna expects them there.

Modified Paths:
--------------
    trunk/dports/multimedia/ffmpeg/Portfile

Modified: trunk/dports/multimedia/ffmpeg/Portfile
===================================================================
--- trunk/dports/multimedia/ffmpeg/Portfile	2008-03-16 16:47:37 UTC (rev 35076)
+++ trunk/dports/multimedia/ffmpeg/Portfile	2008-03-16 17:06:47 UTC (rev 35077)
@@ -114,6 +114,14 @@
 variant a52 requires gpl description {enable GPLed liba52 support} {
 	depends_lib-append port:a52dec
 	configure.args-append --enable-liba52
+	post-destroot {
+		file mkdir ${destroot}${prefix}/include/ffmpeg
+		foreach f [glob ${destroot}${prefix}/include/libavcodec/*.h ${destroot}${prefix}/include/libavformat/*.h ${destroot}${prefix}/include/libavutil/*.h] {
+	regsub -all $destroot ${f} "" srclink
+	ln -s ${srclink} ${destroot}${prefix}/include/ffmpeg/[lindex [split ${f} /] end]
+		}
+		
+	}
 }
 variant avfilter requires gpl description {video filter support (replaces vhook)} {
 	patchfiles-append patch-libswscale-Makefile.diff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080316/75d465b8/attachment-0001.html


More information about the macports-changes mailing list