12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Licensed under the GNU General Public License, version 3.
- # See the file https://www.gnu.org/licenses/gpl-3.0.txt
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import get
- WorkDir = "SDL2_mixer-%s" % get.srcVERSION()
- def setup():
- #pisitools.dosed("timidity/config.h", "/usr/local/lib/timidity", "/usr/share/timidity")
- options = "--disable-dependency-tracking \
- --disable-static \
- --enable-music-midi \
- --enable-music-midi-timidity \
- --enable-music-mod \
- --enable-music-mp3 \
- --enable-music-ogg"
- if get.buildTYPE() == "emul32":
- options += " --includedir=/usr/include \
- --libdir=/usr/lib32"
- shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
- shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
- shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
- shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
- autotools.configure(options)
- def build():
- autotools.make()
- def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- pisitools.dodoc("CHANGES.txt", "LICENSE.txt", "README.txt")
|