xxhash-0.8.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Licensed under the GNU General Public License, version 3.
|
# Licensed under the GNU General Public License, version 3.
|
||||||
@@ -6,23 +6,23 @@
|
|||||||
|
|
||||||
from pisi.actionsapi import get
|
from pisi.actionsapi import get
|
||||||
from pisi.actionsapi import autotools
|
from pisi.actionsapi import autotools
|
||||||
from pisi.actionsapi import pisitools, shelltools, cmaketools
|
from pisi.actionsapi import pisitools, shelltools
|
||||||
|
|
||||||
|
# WorkDir="xxHash-%s" % get.srcVERSION()
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
shelltools.system("cmake -B build -S cmake_unofficial \
|
shelltools.system("export CFLAGS='$CFLAGS -DXXH_FORCE_MEMORY_ACCESS=1 -flto=auto -O2'")
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
# shelltools.cd("%s" % get.workDIR())
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
# shelltools.move("xxHash-*", "xxhash-%s" % get.srcVERSION())
|
||||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib")
|
|
||||||
|
# shelltools.cd("boost-%s" % get.srcVERSION())
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
shelltools.cd("build")
|
autotools.make("PREFIX=/usr DISPATCH=1")
|
||||||
cmaketools.make()
|
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
shelltools.cd("build")
|
# shelltools.system("make PREFIX=/usr DISPATCH=1 DESTDIR=%s install" % get.installDIR())
|
||||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
autotools.install("PREFIX=/usr DISPATCH=1 DESTDIR=%s" % get.installDIR()), 0755
|
||||||
# pisitools.remove('/usr/lib/libxxhash.a')
|
pisitools.remove('/usr/lib/libxxhash.a')
|
||||||
|
|
||||||
shelltools.cd("..")
|
|
||||||
pisitools.dodoc("LICENSE", "doc/*")
|
pisitools.dodoc("LICENSE", "doc/*")
|
||||||
|
|||||||
Reference in New Issue
Block a user