imlib add repo
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/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 shelltools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
optimizationtype = "--enable-amd64" if get.ARCH() == "x86_64" else "--enable-mmx"
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure("--disable-static \
|
||||
--with-x \
|
||||
--with-jpeg \
|
||||
--with-png \
|
||||
--with-tiff \
|
||||
--with-gif \
|
||||
--with-zlib \
|
||||
--with-bzip2 \
|
||||
%s \
|
||||
--enable-visibility-hiding" % optimizationtype)
|
||||
#--with-id3 \
|
||||
shelltools.system("sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool")
|
||||
shelltools.system("sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dohtml("doc/*")
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "README", "TODO")
|
||||
Reference in New Issue
Block a user