snappy 1.1.7

This commit is contained in:
idriskalp
2019-12-27 13:15:30 +03:00
parent d3bdf40be3
commit 27566510bd
3 changed files with 38 additions and 12 deletions
+13 -9
View File
@@ -7,24 +7,28 @@
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get
def setup():
pisitools.flags.remove("-DNDEBUG")
shelltools.system("./autogen.sh")
autotools.configure("--prefix=/usr \
--disable-static \
--enable-shared")
#shelltools.system("./autogen.sh")
#autotools.configure("--prefix=/usr \
#--disable-static \
#--enable-shared")
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
#pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
cmaketools.configure("-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_LIBDIR=lib")
def build():
autotools.make()
cmaketools.make()
def build():
autotools.make("check")
def check():
cmaketools.make("test")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("README", "COPYING", "ChangeLog", "NEWS", "AUTHORS")
pisitools.dodoc("README.md", "COPYING", "AUTHORS")