27 lines
1.0 KiB
Python
27 lines
1.0 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Licensed under the GNU General Public License, version 3.
|
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
|
|
|
from pisi.actionsapi import shelltools
|
|
from pisi.actionsapi import autotools
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import libtools
|
|
from pisi.actionsapi import get
|
|
|
|
def setup():
|
|
shelltools.export("CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
|
|
shelltools.export("CFLAGS", "%s -DLTM_DESC -DUSE_LTM -fPIC" % get.CFLAGS())
|
|
shelltools.system('export EXTRALIBS="-ltommath"')
|
|
autotools.make("-f makefile.shared IGNORE_SPEED=1 library test")
|
|
|
|
def build():
|
|
autotools.make("-f makefile.shared IGNORE_SPEED=1 library test EXTRALIBS='-ltommath' CFLAGS='%s -DLTM_DESC -DUSE_LTM' \
|
|
INCPATH='/usr/include' LIBPATH='/usr/lib' PREFIX='/usr' LDFLAGS='%s' " % (get.CFLAGS(), get.LDFLAGS()))
|
|
|
|
def install():
|
|
autotools.rawInstall("-f makefile.shared DESTDIR=%s PREFIX=/usr INSTALL_GROUP='root'" % get.installDIR())
|
|
pisitools.dodoc("LICENSE", "README.md")
|
|
|