Mercurial > gub
changeset 6035:cc56a8639ce2
target::bzip: new package.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Wed, 10 Nov 2010 15:00:40 +0100 |
parents | c6499b19a961 |
children | 1fe35e8a72bd |
files | gub/specs/bzip2.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/bzip2.py Wed Nov 10 15:00:30 2010 +0100 +++ b/gub/specs/bzip2.py Wed Nov 10 15:00:40 2010 +0100 @@ -1,4 +1,16 @@ from gub import tools +from gub import target + +class Bzip2 (target.MakeBuild): + source = 'http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz' + compile_flags = ''' -f Makefile-libbz2_so CC='%(toolchain_prefix)sgcc %(target_gcc_flags)s -fno-stack-protector' ''' + install_flags = (target.MakeBuild.install_flags + + ' PREFIX=%(install_prefix)s') + def install (self): + target.MakeBuild.install (self) + self.system ('cp -pv %(builddir)s/libbz2.so* %(install_prefix)s/lib') + # junk broken symlinks + self.system ('cd %(install_prefix)s/bin && rm -f bzless bzfgrep bzegrep bzcmp') class Bzip2__tools (tools.MakeBuild): source = 'http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz'