[28759] trunk/dports/multimedia/libtheora/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 8 06:49:03 PDT 2007


Revision: 28759
          http://trac.macosforge.org/projects/macports/changeset/28759
Author:   nox at macports.org
Date:     2007-09-08 06:49:03 -0700 (Sat, 08 Sep 2007)

Log Message:
-----------
libtheora:
 * Added doc variant and standard doc install.
 * Fixed livecheck.
 * Added md5 and rmd160 checksums.
 * pkgconfig is now a build dependency.

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

Modified: trunk/dports/multimedia/libtheora/Portfile
===================================================================
--- trunk/dports/multimedia/libtheora/Portfile	2007-09-08 13:34:10 UTC (rev 28758)
+++ trunk/dports/multimedia/libtheora/Portfile	2007-09-08 13:49:03 UTC (rev 28759)
@@ -1,11 +1,15 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem       1.0
+
 name             libtheora
 version          1.0alpha7
 revision         1
 categories       multimedia
+platforms        darwin
+maintainers      nomaintainer
 description      Xiph.org Foundation's open video codec
+
 long_description \
 	Theora is an open video codec being developed by the \
 	Xiph.org Foundation as part of their Ogg project (It is \
@@ -13,15 +17,44 @@
 	Ogg Vorbis audio codec and Ogg multimedia container \
 	formats into a multimedia solution that can compete \
 	with MPEG-4 format).
-maintainers      nomaintainer at macports.org
-platforms        darwin
+
 homepage         http://www.theora.org/
-
 master_sites     http://downloads.xiph.org/releases/theora/
 use_bzip2        yes
-checksums        sha1 ee97d30e0818c27666477113c019d53f15449d3d
+
+checksums        md5 1bc851e39e4b16977131d5e5f769f48b \
+                 sha1 ee97d30e0818c27666477113c019d53f15449d3d \
+                 rmd160 45a46c35cb1bd6f44a82a286940937e031edb14f
+
 patchfiles       patch-configure
 
-depends_lib      port:libvorbis port:libogg port:pkgconfig
+post-patch {
+    if {! [variant_isset doc]} {
+        reinplace -E "s/^(all|install):.*/\\1:/" \
+            ${worksrcpath}/doc/Makefile.in
+    }
+}
 
-configure.args   --enable-shared --disable-sdltest
+depends_build    port:pkgconfig
+depends_lib      port:libvorbis port:libogg
+
+configure.args   --disable-oggtest --disable-vorbistest
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}-${version}
+	if {! [variant_isset doc]} {
+		xinstall -d ${destroot}${docdir}
+	}
+    xinstall -m 0644 -W ${worksrcpath} AUTHORS CHANGES COPYING LICENSE README \
+        ${destroot}${docdir}
+}
+
+test.run    yes
+test.target check
+
+variant doc description {Install extra documentation} {}
+
+livecheck.check  regex
+livecheck.url    ${master_sites}?C=M&O=D
+livecheck.regex  ${name}-(\\d+(?:\\.\\d+)*(?:\\w+\\d*)?)
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070908/de414b41/attachment.html


More information about the macports-changes mailing list