[buildout]

extends =
  ../attr/buildout.cfg
  ../gperf/buildout.cfg

parts = libcap

[libcap2]
recipe = slapos.recipe.cmmi
shared = true
url = http://pkgs.fedoraproject.org/lookaside/pkgs/libcap/libcap-2.22.tar.bz2/ce64058bdb3f086ddbfca8ce6c919845/libcap-2.22.tar.bz2
md5sum = ce64058bdb3f086ddbfca8ce6c919845
location = @@LOCATION@@
configure-command = :
make-options =
  RAISE_SETFCAP=no
  prefix=${:location}
  CFLAGS=-I${attr:location}/include/
  LDFLAGS="-L${attr:location}/lib/ -Wl,-rpath=${attr:location}/lib/ -Wl,-rpath=${:location}/lib/"
  install

environment =
  PATH=${gperf:location}/bin:%(PATH)s

# if lib64 exists, then create a symlink from lib to lib64
post-install =
  cd ${:location}
  [ -d lib64 ] && ln -s lib64 lib

[libcap]
<= libcap2
