libtg_owt rebuild
This commit is contained in:
@@ -13,25 +13,30 @@ from pisi.actionsapi import get
|
||||
def setup():
|
||||
shelltools.cd("%s" % get.workDIR())
|
||||
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.move("../libvpx/*", "src/third_party/libvpx/source/libvpx")
|
||||
shelltools.move("../libyuv/*", "src/third_party/libyuv")
|
||||
|
||||
shelltools.system("mkdir build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure("-DBUILD_SHARED_LIBS=TRUE \
|
||||
-DTG_OWT_PACKAGED_BUILD=TRUE \
|
||||
-DTG_OWT_USE_PROTOBUF=TRUE", sourceDir="..")
|
||||
pisitools.flags.add("-fPIC")
|
||||
cmaketools.configure("-G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DTG_OWT_SPECIAL_TARGET=linux \
|
||||
-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():
|
||||
shelltools.cd("%s" % get.workDIR())
|
||||
shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||
cmaketools.make()
|
||||
#shelltools.cd("%s" % get.workDIR())
|
||||
#shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||
shelltools.system("ninja")
|
||||
|
||||
def install():
|
||||
shelltools.cd("%s" % get.workDIR())
|
||||
shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
#shelltools.cd("%s" % get.workDIR())
|
||||
#shelltools.cd("tg-owt-%s/build" % get.srcVERSION())
|
||||
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="5a0168aab75bc0b1dbaa425f6b2b3eaf6e427b72" type="targz">https://sourceforge.net/projects/pisilinux/files/source/libyuv.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>ninja</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
<Dependency>yasm-devel</Dependency>
|
||||
<Dependency>unzip</Dependency>
|
||||
@@ -29,7 +30,6 @@
|
||||
<Dependency>protobuf-devel</Dependency>
|
||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
<Dependency>libvpx-devel</Dependency>
|
||||
<Dependency>python3-setuptools</Dependency>
|
||||
</BuildDependencies>
|
||||
<!--
|
||||
@@ -62,8 +62,8 @@
|
||||
<Summary>Development files for libtg_owt</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libtg_owt</Dependency>
|
||||
<Dependency>yasm-devel</Dependency>
|
||||
<Dependency>unzip</Dependency>
|
||||
<Dependency>yasm-devel</Dependency>
|
||||
<Dependency>unzip</Dependency>
|
||||
<Dependency>libopus-devel</Dependency>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
<Dependency>libXrandr-devel</Dependency>
|
||||
@@ -74,7 +74,7 @@
|
||||
<Dependency>protobuf-devel</Dependency>
|
||||
<Dependency>pulseaudio-libs-devel</Dependency>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
<Dependency>libvpx-devel</Dependency>
|
||||
<!--Dependency>libvpx-devel</Dependency-->
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
|
||||
Reference in New Issue
Block a user