Files
main/multimedia/graphics/lcms/actions.py
T

43 lines
1.2 KiB
Python

#!/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():
#needed by mozilla patch
autotools.autoreconf("-vfi")
options = "--disable-dependency-tracking \
--disable-static \
--with-jpeg \
--with-tiff \
--with-zlib \
--with-python"
if get.buildTYPE() == "emul32":
options += " --without-python"
autotools.configure(options)
def build():
#needed by mozilla patch, swig must be run again
shelltools.cd("python")
shelltools.system("./swig_lcms")
shelltools.cd("..")
autotools.make()
def install():
autotools.rawInstall('DESTDIR=%s \
BINDIR=%s/usr/bin \
includedir=/usr/include' % (get.installDIR(), get.installDIR()))
pisitools.insinto("/usr/share/lcms/profiles", "testbed/*.icm")
pisitools.dodoc("AUTHORS", "README*", "NEWS", "doc/*")