buildout.cfg 1.56 KB
Newer Older
1 2
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
3 4
  ../gdbm/buildout.cfg
  ../patch/buildout.cfg
5 6 7 8 9
parts =
  perl

[perl-keep-linker-flags-in-ldflags.patch]
recipe = hexagonit.recipe.download
10
url = ${:_profile_base_location_}/${:filename}
11 12 13 14
md5sum = 9873a89c969bd5a478434c3b8b2d57d8
download-only = true
filename = ${:_buildout_section_name_}

15 16 17 18 19 20 21
[perl-postmakehook-download]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
md5sum = 7fded8308c1676decf77575c6d6b325f
download-only = true
filename = create-libs-symlink.py

22 23
[perl]
recipe = hexagonit.recipe.cmmi
24 25
depends =
  ${gdbm:version}
26
version = 5.14.2
27
url = http://www.cpan.org/src/5.0/perl-${:version}.tar.bz2
28
md5sum = 04a4c5d3c1f9f19d77daff8e8cd19a26
29
siteprefix = ${buildout:parts-directory}/site_${:_buildout_section_name_}
30 31 32
patch-options = -p1
patches =
  ${perl-keep-linker-flags-in-ldflags.patch:location}/${perl-keep-linker-flags-in-ldflags.patch:filename}
33 34
# Viktor has adapted the following commands for AMD64 compilation
# TODO: find out how we can write a generic code that suits all architectures
35 36
configure-command =
  sh Configure -des \
37
    -A ccflags=-fPIC \
38
    -Dprefix=${buildout:parts-directory}/${:_buildout_section_name_} \
39
    -Dsiteprefix=${:siteprefix} \
40
    -Dcflags=-I${gdbm:location}/include \
41
    -Dldflags="-L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib" \
42
    -Ui_db \
43 44
    -Dnoextensions=ODBM_File \
    -Dusethreads
45 46
environment =
  PATH=${patch:location}/bin:%(PATH)s
47
  CFLAGS='-m64 -mtune=nocona'
48
post-make-hook = ${perl-postmakehook-download:location}/${perl-postmakehook-download:filename}:post_make_hook