x265 3.2.1

This commit is contained in:
idriskalp
2020-01-17 16:40:54 +03:00
parent 147fab48a2
commit e370266e34
2 changed files with 61 additions and 7 deletions
+53 -6
View File
@@ -9,17 +9,64 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
WorkDir="x265_3.2.1"
def setup():
shelltools.cd("source")
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_STATIC=OFF")
shelltools.system("mkdir build8 build10 build12")
#shelltools.cd("source")
#cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
#-DENABLE_STATIC=OFF")
def build():
shelltools.cd("source")
cmaketools.make()
#shelltools.cd("source")
shelltools.cd("build12")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr'\
-DHIGH_BIT_DEPTH='TRUE' \
-DMAIN12='TRUE' \
-DEXPORT_C_API='FALSE' \
-DENABLE_CLI='FALSE'\
-DENABLE_SHARED='FALSE' \
")
cmaketools.make()
shelltools.cd("../build10")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr'\
-DHIGH_BIT_DEPTH='TRUE' \
-DEXPORT_C_API='FALSE' \
-DENABLE_CLI='FALSE'\
-DENABLE_SHARED='FALSE' \
")
cmaketools.make()
shelltools.cd("../build8")
shelltools.system("ln -s ../build10/libx265.a libx265_main10.a")
shelltools.system("ln -s ../build12/libx265.a libx265_main12.a")
shelltools.system("cmake ../source -G 'Unix Makefiles' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DENABLE_SHARED='TRUE' \
-DENABLE_HDR10_PLUS='TRUE' \
-DEXTRA_LIB='x265_main10.a;x265_main12.a' \
-DEXTRA_LINK_FLAGS='-L.' \
-DLINKED_10BIT='TRUE' \
-DLINKED_12BIT='TRUE' \
")
cmaketools.make()
def install():
shelltools.cd("source")
shelltools.cd("build8")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/lib/libx265.a")
+8 -1
View File
@@ -13,7 +13,7 @@
<IsA>app:console</IsA>
<Summary>Open source H265/EVC encoder</Summary>
<Description>x265 is a commercially funded open source implementation of the H.265/High Efficiency Video Coding (HEVC) compression standard.</Description>
<Archive sha1sum="5922f88d0997c47e2c95feee95dc98bcb2e54871" type="targz">https://bitbucket.org/multicoreware/x265/downloads/x265_3.2.tar.gz</Archive>
<Archive sha1sum="0bd4889ff3ad596372ce2338f2d896947a2eec53" type="targz">https://bitbucket.org/multicoreware/x265/downloads/x265_3.2.1.tar.gz</Archive>
<BuildDependencies>
<Dependency>yasm-devel</Dependency>
<Dependency>cmake</Dependency>
@@ -47,6 +47,13 @@
</Package>
<History>
<Update release="10">
<Date>2020-01-17</Date>
<Version>3.2.1</Version>
<Comment>Version Bump.</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2019-10-06</Date>
<Version>3.2</Version>