def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if can_access_file('configure'): gnuconfig_update() prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (prefix, \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if get.buildTYPE() == "emul32": args += " --libdir=/usr/lib32" if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def install(): if get.buildTYPE() == "emul32": pisitools.insinto("/usr/lib32", "poppler/.libs/libpoppler.so*") pisitools.insinto("/usr/lib32", "glib/.libs/libpoppler-glib.so*") for f in ["poppler.pc", "poppler-glib.pc"]: pisitools.insinto("/usr/lib32/pkgconfig", f) pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), get.emul32prefixDIR(), get.defaultprefixDIR()) return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.removeDir("/usr/share/gtk-doc") pisitools.dodoc("README", "AUTHORS", "ChangeLog", "NEWS", "README-XPDF", "TODO")
def install(): shelltools.cd("build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": pisitools.removeDir("/emul32") #pisitools.insinto("/usr/lib32", "poppler/.libs/libpoppler.so*") #pisitools.insinto("/usr/lib32", "glib/.libs/libpoppler-glib.so*") for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), get.emul32prefixDIR(), get.defaultprefixDIR()) return pisitools.removeDir("/usr/share/gtk-doc") pisitools.dodoc("README", "AUTHORS", "ChangeLog", "NEWS", "README-XPDF", "TODO")
def install(): if get.buildTYPE() == "emul32": pisitools.insinto("/usr/lib32", "libopenjpeg/.libs/libopenjpeg.so*") pisitools.insinto("/usr/lib32/pkgconfig", "libopenjpeg1.pc") pisitools.dosed("%s//usr/lib32/pkgconfig/libopenjpeg1.pc" % get.installDIR(), get.emul32prefixDIR(), get.defaultprefixDIR()) return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dosym("openjpeg-1.5/openjpeg.h", "/usr/include/openjpeg.h") pisitools.dodoc("README*")
def install(): if get.buildTYPE() == "emul32": pisitools.insinto("/usr/lib32", "libopenjpeg/.libs/libopenjpeg.so*") pisitools.insinto("/usr/lib32/pkgconfig", "libopenjpeg1.pc") pisitools.dosed( "%s//usr/lib32/pkgconfig/libopenjpeg1.pc" % get.installDIR(), get.emul32prefixDIR(), get.defaultprefixDIR()) return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dosym("openjpeg-1.5/openjpeg.h", "/usr/include/openjpeg.h") pisitools.dodoc("README*")
def fixpc(): ''' fix .pc files in installDIR()/usr/lib32/pkgconfig''' path = "%s/usr/lib32/pkgconfig" % get.installDIR() if isDirectory(path): for f in ls("%s/*.pc" % path): dosed(f, get.emul32prefixDIR(), get.defaultprefixDIR())