[65478] trunk/dports/audio/sphinx3/Portfile

singingwolfboy at macports.org singingwolfboy at macports.org
Fri Mar 26 09:39:01 PDT 2010


Revision: 65478
          http://trac.macports.org/changeset/65478
Author:   singingwolfboy at macports.org
Date:     2010-03-26 09:39:00 -0700 (Fri, 26 Mar 2010)
Log Message:
-----------
Updated sphinx3 to version 0.8

Modified Paths:
--------------
    trunk/dports/audio/sphinx3/Portfile

Modified: trunk/dports/audio/sphinx3/Portfile
===================================================================
--- trunk/dports/audio/sphinx3/Portfile	2010-03-26 16:37:43 UTC (rev 65477)
+++ trunk/dports/audio/sphinx3/Portfile	2010-03-26 16:39:00 UTC (rev 65478)
@@ -2,16 +2,45 @@
 
 PortSystem 1.0
 name		sphinx3
-version		0.4.1
+version		0.8
 description	Speech recognition package
 long_description	Sphinx-3 is CMU's state-of-the-art large vocabulary \
 			speech recognition system. It uses Hidden Markov \
 			Models (HMM) with continuous output probability \
 			density functions (PDF). 
-maintainers	nomaintainer
+maintainers	singingwolfboy openmaintainer
 categories	audio
 platforms	darwin freebsd
 homepage	http://www.speech.cs.cmu.edu/sphinx/
 master_sites     sourceforge:cmusphinx
-checksums	md5 dd4c6597cce63b721fb2b0aa68a23e93
-extract.suffix	.tgz
+
+use_bzip2   yes
+depends_lib     port:sphinxbase port:python26
+
+checksums           md5     e32bf4c507509b27482adf4cfc467e8f \
+                    sha1    2e58b5a5ec7f397a7db8ef996043daf8162e3657 \
+                    rmd160  95d05c09914bc30ae0b9d849c2141fa3d7a0bdd3
+
+configure.cppflags-append   "-I${prefix}/include/sphinxbase"
+
+pre-configure {
+    # configure ignores cppflags, so we have to fix it
+    reinplace "s|CPPFLAGS=\"-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase\"|CPPFLAGS=\"-I${prefix}/include/sphinxbase\"|" ${worksrcpath}/configure
+}
+
+set python.branch       2.6
+set python.prefix       ${frameworks_dir}/Python.framework/Versions/${python.branch}
+set python.bin  ${python.prefix}/bin/python${python.branch}
+set python.lib  ${python.prefix}/Python
+set python.libdir ${python.prefix}/lib/python${python.branch}
+set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages
+set python.include      ${python.prefix}/include/python${python.branch} 
+
+post-destroot {
+    reinplace "s|/usr/local/include/sphinx|${prefix}/include/sphinx|" ${worksrcpath}/python/setup.py
+    system "cd ${worksrcpath}/python && ${python.bin} setup.py --no-user-cfg install --prefix=${python.prefix} --root=${destroot}"
+    
+    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
+    system "find ${worksrcpath}/doc -name .svn -print0 | xargs -0 rm -rf"
+    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100326/054afab4/attachment.html>


More information about the macports-changes mailing list