This commit is contained in:
4fury-c3440d8
2020-09-11 11:51:23 +03:00
parent 00db285cc0
commit 2cb823a399
2 changed files with 38 additions and 21 deletions
+12 -10
View File
@@ -5,25 +5,27 @@
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
shelltools.export("JOBS", get.makeJOBS().replace("-j5", "-j1"))
def setup():
# autotools.autoreconf("-vif")
autotools.configure("--disable-static --enable-sdl --with-zlib")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib -L", sourceDir = '..')
def build():
autotools.make()
shelltools.cd("build")
cmaketools.make()
cmaketools.make("docs")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# Extract and install shipped man pages
#shelltools.system("tar xvf docs/zziplib-manpages.tar")
for manp in shelltools.ls("man3"):
pisitools.doman("man3/%s" % manp)
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dohtml("docs/*.htm*")
shelltools.cd("..")
pisitools.dodoc("ChangeLog", "COPYING.LIB", "README", "TODO", "docs/COPYING*", "docs/README.SDL")