openjpeg2 rebuild
This commit is contained in:
@@ -10,34 +10,35 @@ from pisi.actionsapi import get
|
|||||||
from pisi.actionsapi import shelltools
|
from pisi.actionsapi import shelltools
|
||||||
|
|
||||||
|
|
||||||
def setup():
|
libdir = "lib32" if get.buildTYPE() == "emul32" else "lib"
|
||||||
#shelltools.makedirs("build")
|
|
||||||
#shelltools.cd("build")
|
|
||||||
|
|
||||||
options = "-DCMAKE_BUILD_TYPE=Release \
|
def setup():
|
||||||
|
options = "-B build -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DOPENJPEG_INSTALL_LIB_DIR=lib \
|
-DOPENJPEG_INSTALL_LIB_DIR=lib \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DBUILD_STATIC_LIBS=OFF \
|
-DOPENJPEG_INSTALL_LIB_DIR=%s \
|
||||||
-DBUILD_DOC=on"
|
-DBUILD_STATIC_LIBS=OFF" % libdir
|
||||||
|
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
shelltools.export("CC", "gcc -m32")
|
shelltools.export("CC", "gcc -m32")
|
||||||
shelltools.export("CXX", "g++ -m32")
|
shelltools.export("CXX", "g++ -m32")
|
||||||
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||||
|
|
||||||
options = "-DOPENJPEG_INSTALL_LIB_DIR=lib32 \
|
options += " -DOPENJPEG_INSTALL_BIN_DIR=emul32 \
|
||||||
-DOPENJPEG_INSTALL_BIN_DIR=emul32 \
|
-DBUILD_DOC=OFF"
|
||||||
-DBUILD_DOC=OFF"
|
|
||||||
|
else:
|
||||||
|
options += " -DBUILD_DOC=on"
|
||||||
|
|
||||||
cmaketools.configure(options)
|
cmaketools.configure(options)
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
#shelltools.cd("build")
|
shelltools.cd("build")
|
||||||
cmaketools.make()
|
cmaketools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
#shelltools.cd("build")
|
shelltools.cd("build")
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
@@ -45,10 +46,12 @@ def install():
|
|||||||
pisitools.insinto("/usr/bin/","%s/usr/emul32/opj_decompress" % get.installDIR(),"opj_decompress_32")
|
pisitools.insinto("/usr/bin/","%s/usr/emul32/opj_decompress" % get.installDIR(),"opj_decompress_32")
|
||||||
pisitools.insinto("/usr/bin/","%s/usr/emul32/opj_dump" % get.installDIR(),"opj_dump_32")
|
pisitools.insinto("/usr/bin/","%s/usr/emul32/opj_dump" % get.installDIR(),"opj_dump_32")
|
||||||
pisitools.dosed("%s/usr/lib32/pkgconfig/libopenjp2.pc" % get.installDIR(), "emul32", "bin")
|
pisitools.dosed("%s/usr/lib32/pkgconfig/libopenjp2.pc" % get.installDIR(), "emul32", "bin")
|
||||||
pisitools.dosed("%s/usr/lib32/openjpeg-2.5/OpenJPEGTargets-relwithdebinfo.cmake" % get.installDIR(), "emul32", "bin")
|
pisitools.dosed("%s/usr/lib32/openjpeg-2.5/OpenJPEGTargets-release.cmake" % get.installDIR(), "emul32", "bin")
|
||||||
pisitools.removeDir("/usr/emul32")
|
pisitools.removeDir("/usr/emul32")
|
||||||
|
return
|
||||||
|
|
||||||
pisitools.dosym("openjpeg-2.5/openjpeg.h", "/usr/include/openjpeg.h")
|
pisitools.dosym("openjpeg-2.5/openjpeg.h", "/usr/include/openjpeg.h")
|
||||||
|
|
||||||
|
shelltools.cd("..")
|
||||||
pisitools.dodoc("AUTHORS*", "CHANGELOG*", "NEWS*", "README*")
|
pisitools.dodoc("AUTHORS*", "CHANGELOG*", "NEWS*", "README*")
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,8 @@
|
|||||||
<Path fileType="header">/usr/include</Path>
|
<Path fileType="header">/usr/include</Path>
|
||||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||||
<Path fileType="library">/usr/lib32/pkgconfig</Path>
|
<Path fileType="library">/usr/lib32/pkgconfig</Path>
|
||||||
<Path fileType="data">/usr/lib/openjpeg-2.3</Path>
|
<Path fileType="data">/usr/lib/openjpeg-2*</Path>
|
||||||
<Path fileType="data">/usr/lib32/openjpeg-2.3</Path>
|
<Path fileType="data">/usr/lib32/openjpeg-2*</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
<Package>
|
<Package>
|
||||||
@@ -78,6 +78,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="8">
|
||||||
|
<Date>2023-01-22</Date>
|
||||||
|
<Version>2.5.0</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="7">
|
<Update release="7">
|
||||||
<Date>2022-06-24</Date>
|
<Date>2022-06-24</Date>
|
||||||
<Version>2.5.0</Version>
|
<Version>2.5.0</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user