moved into main repo for pisi 2.0

This commit is contained in:
ayhanyalcinsoy
2015-06-19 13:37:07 +03:00
parent 487859c59e
commit 9050f3df88
36 changed files with 2094 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
#!/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 get
from pisi.actionsapi import shelltools
from pisi.actionsapi import libtools
def setup():
options = "-with-xinput=yes \
--enable-man"
#shelltools.export("CFLAGS", get.CFLAGS().replace("-fomit-frame-pointer",""))
#gtk2 needs -DGTK_COMPILATION CPPFLAG when compiling itself
#Avoid "Only <gtk/gtk.h> can be included directly error"
shelltools.export("CPPFLAGS", "-DGTK_COMPILATION")
if get.buildTYPE() == "_emul32":
options += " --libdir=/usr/lib32 \
--bindir=/_emul32/bin \
--sbindir=/_emul32/sbin \
--disable-cups"
shelltools.export("CC", "%s -m32" % get.CC())
shelltools.export("CXX", "%s -m32" % get.CC())
shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
shelltools.export("CPPFLAGS", "-DGTK_COMPILATION")
autotools.autoconf()
autotools.configure(options)
pisitools.dosed("libtool"," -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# remove empty dir
#pisitools.removeDir("/usr/share/man")
pisitools.dodoc("AUTHORS", "README*", "HACKING", "ChangeLog*", "NEWS*")
if get.buildTYPE() == "_emul32":
for binaries in ["gtk-query-immodules-2.0", "gtk-demo"]:
pisitools.domove("/_emul32/bin/%s" % binaries, "/usr/bin/", "%s-32bit" % binaries)
pisitools.removeDir("/_emul32")
#hack to install gdkconfig.h in gdk headers dir
pisitools.dosym("/usr/lib/gtk-2.0/include/gdkconfig.h","/usr/include/gtk-2.0/gdk/gdkconfig.h")