openpgm:moved from contrib

This commit is contained in:
blue-devil
2020-01-18 22:21:13 +03:00
parent 3bb5f20c61
commit a43dc73bc8
8 changed files with 323 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/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.cd("openpgm/pgm/")
shelltools.system("pwd")
libtools.libtoolize("-fc")
autotools.aclocal()
autotools.autoheader()
autotools.automake("--add-missing --copy")
autotools.autoconf()
# suppress c compiler warnings
pisitools.cflags.add("-Wno-cpp -Wno-unused-result")
autotools.configure()
def build():
shelltools.cd("openpgm/pgm/")
autotools.make()
def install():
shelltools.cd("openpgm/pgm/")
autotools.rawInstall("DESTDIR=%s" % get.installDIR())