json-c rebuild
This commit is contained in:
@@ -10,18 +10,23 @@ from pisi.actionsapi import shelltools
|
|||||||
from pisi.actionsapi import cmaketools
|
from pisi.actionsapi import cmaketools
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
|
|
||||||
|
LIBDIR = "lib32" if get.buildTYPE() == "emul32" else "lib"
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
shelltools.makedirs("build")
|
shelltools.makedirs("build")
|
||||||
shelltools.cd("build")
|
shelltools.cd("build")
|
||||||
options = "-DCMAKE_INSTALL_PREFIX=/usr \
|
options = "-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-DCMAKE_INSTALL_LIBDIR=%s \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_STATIC_LIBS=OFF"
|
-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")
|
||||||
options = " -DCMAKE_INSTALL_LIBDIR=lib32 -DBUILD_STATIC_LIBS=OFF"
|
options += " -DBUILD_STATIC_LIBS=OFF \
|
||||||
|
"
|
||||||
|
|
||||||
cmaketools.configure(options, sourceDir=".." )
|
cmaketools.configure(options, sourceDir=".." )
|
||||||
|
|
||||||
@@ -32,6 +37,8 @@ def build():
|
|||||||
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":
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
shelltools.cd("..")
|
shelltools.cd("..")
|
||||||
|
|||||||
@@ -50,10 +50,9 @@
|
|||||||
<Name>json-c-32bit</Name>
|
<Name>json-c-32bit</Name>
|
||||||
<PartOf>emul32</PartOf>
|
<PartOf>emul32</PartOf>
|
||||||
<Summary>32-bit shared libraries for json-c</Summary>
|
<Summary>32-bit shared libraries for json-c</Summary>
|
||||||
<BuildDependencies>
|
|
||||||
|
|
||||||
</BuildDependencies>
|
|
||||||
<BuildType>emul32</BuildType>
|
<BuildType>emul32</BuildType>
|
||||||
|
<BuildDependencies>
|
||||||
|
</BuildDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="library">/usr/lib32</Path>
|
<Path fileType="library">/usr/lib32</Path>
|
||||||
</Files>
|
</Files>
|
||||||
|
|||||||
Reference in New Issue
Block a user