libtg_owt rebuild
This commit is contained in:
@@ -13,25 +13,30 @@ from pisi.actionsapi import get
|
|||||||
def setup():
|
def setup():
|
||||||
shelltools.cd("%s" % get.workDIR())
|
shelltools.cd("%s" % get.workDIR())
|
||||||
shelltools.move("tg_owt-*", "tg-owt-%s" % get.srcVERSION())
|
shelltools.move("tg_owt-*", "tg-owt-%s" % get.srcVERSION())
|
||||||
|
#shelltools.system("git clone https://chromium.googlesource.com/webm/libvpx")
|
||||||
|
#shelltools.system("git clone https://chromium.googlesource.com/libyuv/libyuv")
|
||||||
shelltools.cd("tg-owt-%s" % get.srcVERSION())
|
shelltools.cd("tg-owt-%s" % get.srcVERSION())
|
||||||
|
|
||||||
shelltools.move("../libvpx/*", "src/third_party/libvpx/source/libvpx")
|
shelltools.move("../libvpx/*", "src/third_party/libvpx/source/libvpx")
|
||||||
shelltools.move("../libyuv/*", "src/third_party/libyuv")
|
shelltools.move("../libyuv/*", "src/third_party/libyuv")
|
||||||
|
|
||||||
shelltools.system("mkdir build")
|
pisitools.flags.add("-fPIC")
|
||||||
shelltools.cd("build")
|
cmaketools.configure("-G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||||
cmaketools.configure("-DBUILD_SHARED_LIBS=TRUE \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DTG_OWT_PACKAGED_BUILD=TRUE \
|
-DTG_OWT_SPECIAL_TARGET=linux \
|
||||||
-DTG_OWT_USE_PROTOBUF=TRUE", sourceDir="..")
|
-DTG_OWT_LIBJPEG_INCLUDE_PATH=/usr/include \
|
||||||
|
-DTG_OWT_OPENSSL_INCLUDE_PATH=/usr/include \
|
||||||
|
-DTG_OWT_OPUS_INCLUDE_PATH=/usr/include/opus \
|
||||||
|
-DTG_OWT_FFMPEG_INCLUDE_PATH=/usr/include")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.cd("%s" % get.workDIR())
|
#shelltools.cd("%s" % get.workDIR())
|
||||||
shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
#shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||||
cmaketools.make()
|
shelltools.system("ninja")
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
shelltools.cd("%s" % get.workDIR())
|
#shelltools.cd("%s" % get.workDIR())
|
||||||
shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
#shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
|
||||||
|
|
||||||
pisitools.dodoc("../LICENSE")
|
pisitools.dodoc("LICENSE")
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<Archive sha1sum="c737657d7701a43ce0cd21cf1ad9cc7d6b478807" type="targz">https://sourceforge.net/projects/pisilinux/files/source/libvpx.tar.gz</Archive>
|
<Archive sha1sum="c737657d7701a43ce0cd21cf1ad9cc7d6b478807" type="targz">https://sourceforge.net/projects/pisilinux/files/source/libvpx.tar.gz</Archive>
|
||||||
<Archive sha1sum="5a0168aab75bc0b1dbaa425f6b2b3eaf6e427b72" type="targz">https://sourceforge.net/projects/pisilinux/files/source/libyuv.tar.gz</Archive>
|
<Archive sha1sum="5a0168aab75bc0b1dbaa425f6b2b3eaf6e427b72" type="targz">https://sourceforge.net/projects/pisilinux/files/source/libyuv.tar.gz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
|
<Dependency>ninja</Dependency>
|
||||||
<Dependency>cmake</Dependency>
|
<Dependency>cmake</Dependency>
|
||||||
<Dependency>yasm-devel</Dependency>
|
<Dependency>yasm-devel</Dependency>
|
||||||
<Dependency>unzip</Dependency>
|
<Dependency>unzip</Dependency>
|
||||||
@@ -29,7 +30,6 @@
|
|||||||
<Dependency>protobuf-devel</Dependency>
|
<Dependency>protobuf-devel</Dependency>
|
||||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||||
<Dependency>alsa-lib-devel</Dependency>
|
<Dependency>alsa-lib-devel</Dependency>
|
||||||
<Dependency>libvpx-devel</Dependency>
|
|
||||||
<Dependency>python3-setuptools</Dependency>
|
<Dependency>python3-setuptools</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<!--
|
<!--
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<Dependency>protobuf-devel</Dependency>
|
<Dependency>protobuf-devel</Dependency>
|
||||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||||
<Dependency>alsa-lib-devel</Dependency>
|
<Dependency>alsa-lib-devel</Dependency>
|
||||||
<Dependency>libvpx-devel</Dependency>
|
<!--Dependency>libvpx-devel</Dependency-->
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="header">/usr/include</Path>
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
|||||||
Reference in New Issue
Block a user