libmikmod ported from pisi 1.2 update and check

This commit is contained in:
groni
2015-10-19 15:30:03 +02:00
parent 49564baa3f
commit da97dc8282
3 changed files with 165 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import libtools
from pisi.actionsapi import get
WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-"))
def setup():
shelltools.sym(".", "m4")
shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())
autotools.autoreconf("-vfi -Im4")
libtools.gnuconfig_update()
options = "--disable-esd \
--disable-af \
--disable-alsa \
--enable-oss \
--disable-static"
if get.buildTYPE() == "emul32":
options += " --bindir=/emul32/bin"
shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS())
shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
autotools.configure(options)
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "NEWS", "README", "TODO")
pisitools.dohtml("docs/*.html")