Files
2026-06-19 23:14:39 +03:00

38 lines
1.1 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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.makedirs("test/TokenizerTest/objects")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure("-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
-DPODOFO_HAVE_JPEG_LIB=1 \
-DPODOFO_HAVE_PNG_LIB=1 \
-DPODOFO_HAVE_TIFF_LIB=1 \
-DWANT_FONTCONFIG=1 \
-DPODOFO_BUILD_STATIC=FALSE \
-DWANT_BOOST=1", sourceDir="..")
#-DUSE_STLPORT=1"
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("..")
pisitools.dodoc("AUTHORS*", "COPYING", "TODO*")
# pisitools.dohtml("README.html", "FAQ.html")