Mercurial > gub
changeset 3472:1d07bd0ca445
Another libgphoto2 compile fix.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Fri, 11 May 2007 17:51:55 +0200 |
parents | 38373ff3216c |
children | 991da4c30d99 |
files | gub/specs/libgphoto2.py |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/libgphoto2.py Fri May 11 17:44:43 2007 +0200 +++ b/gub/specs/libgphoto2.py Fri May 11 17:51:55 2007 +0200 @@ -12,13 +12,23 @@ --define-variable prefix=%(system_root)s/usr\ --define-variable includedir=%(system_root)s/usr/include\ --define-variable libdir=%(system_root)s/usr/lib\ -"$@" + "$@" ''', '%(srcdir)s/pkg-config') import os os.chmod (self.expand ('%(srcdir)s/pkg-config'), 0755) + def wrap_libusb_config (self): + self.dump ('''#! /bin/sh +/usr/bin/libusb-config\ + --prefix=%(system_root)s/usr\ + "$@" +''', + '%(srcdir)s/libusb-config') + import os + os.chmod (self.expand ('%(srcdir)s/libusb-config'), 0755) def patch (self): self.wrap_pkg_config () + self.wrap_libusb_config () def configure_command (self): return ('PATH=%(srcdir)s:$PATH ' + targetpackage.TargetBuildSpec.configure_command (self))