[50078] trunk/dports/multimedia/libmpeg2/Portfile
devans at macports.org
devans at macports.org
Fri Apr 24 10:56:49 PDT 2009
Revision: 50078
http://trac.macports.org/changeset/50078
Author: devans at macports.org
Date: 2009-04-24 10:56:48 -0700 (Fri, 24 Apr 2009)
Log Message:
-----------
libmpeg2: in the default case, make sure the correct X11 paths are configured and add missing dependency, add +no_x11 variant.
Modified Paths:
--------------
trunk/dports/multimedia/libmpeg2/Portfile
Modified: trunk/dports/multimedia/libmpeg2/Portfile
===================================================================
--- trunk/dports/multimedia/libmpeg2/Portfile 2009-04-24 16:37:21 UTC (rev 50077)
+++ trunk/dports/multimedia/libmpeg2/Portfile 2009-04-24 17:56:48 UTC (rev 50078)
@@ -5,6 +5,7 @@
name libmpeg2
version 0.5.1
+revision 1
categories multimedia
maintainers nomaintainer
homepage http://libmpeg2.sourceforge.net/
@@ -20,10 +21,11 @@
sha1 0f9163d8fd52db5f577ebe45636f674252641fd7 \
rmd160 00b2d669655ed3f7a176f5eecc925045159a0301
-depends_lib port:libsdl
+depends_lib port:libsdl \
+ port:xorg-libXv
-configure.args --enable-shared \
- --mandir=${prefix}/share/man
+configure.args --enable-shared \
+ --mandir=${prefix}/share/man
configure.cppflags-append "-no-cpp-precomp"
@@ -32,6 +34,18 @@
configure.args-append --disable-sdl
}
+variant no_x11 {
+ configure.args-append --without-x
+ depends_lib-delete port:xorg-libXv
+}
+
+if {![variant_isset no_x11]} {
+ if {[file exists ${prefix}/lib/pkgconfig/x11.pc]} {
+ configure.args-append --x-includes=${prefix}/include \
+ --x-libraries=${prefix}/lib
+ }
+}
+
livecheck.check regex
livecheck.url ${homepage}downloads.html
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090424/8ef75250/attachment.html>
More information about the macports-changes
mailing list