123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #!/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 get
- def setup():
- shelltools.system('sed -i "s/sys_siglist\[termsig\]/strsignal(termsig)/" "x11/rootv.c"')
- shelltools.system('sed -i "s/sys_siglist\[signal\]/strsignal(signal)/" "console/record.c"')
- shelltools.system('sed -i "s/sys_siglist\[termsig\]/strsignal(termsig)/" "console/fbtools.c"')
- shelltools.system("NOCONFIGURE=1 ./autogen.sh")
- shelltools.export("CFLAGS", "%s -Wno-pointer-sign %s" % (get.CFLAGS(), get.LDFLAGS()))
- autotools.autoreconf("-vfi")
- autotools.configure("--with-x \
- --enable-xfree-ext \
- --enable-xvideo \
- --enable-dv \
- --disable-motif \
- --enable-quicktime \
- --enable-alsa \
- --enable-lirc \
- --enable-gl \
- --enable-zvbi \
- --enable-xft \
- --prefix=/usr \
- --enable-aa")
- # --enable-mmx \ # let the build decide it
- def build():
- autotools.make()
- def install():
- autotools.install("libdir=%(D)s/usr/lib/xawtv \
- resdir=%(D)s/etc/X11" % {"D": get.installDIR()})
- pisitools.dobin("x11/v4lctl")
- pisitools.dodoc("COPYING", "Changes", "README*", "TODO")
- pisitools.removeDir("/usr/share/man/fr")
- pisitools.removeDir("/usr/share/man/es")
- pisitools.dodir("/usr/share/xawtv")
- pisitools.domove("/usr/share/*.list", "/usr/share/xawtv/")
- pisitools.domove("/usr/share/Index*", "/usr/share/xawtv/")
- shelltools.chmod("contrib/xawtv48x48.xpm", 0644)
- pisitools.insinto("/usr/share/pixmaps", "contrib/xawtv48x48.xpm", "xawtv.xpm")
|