buildout.cfg 1.13 KB
[buildout]
extends =
  ../cmake/buildout.cfg
  ../openssl/buildout.cfg
  ../zlib/buildout.cfg
  ../bison/buildout.cfg
  ../ruby/buildout.cfg

parts =
  h2o

[h2o]
recipe = slapos.recipe.cmmi
shared = True
url = https://github.com/h2o/h2o/archive/v2.2.6.tar.gz
md5sum = 075283f92347fcb7b2f87dcc5251b922
configure-command = ${cmake:location}/bin/cmake
configure-options =
  -DCMAKE_INSTALL_PREFIX=@@LOCATION@@
  -DWITH_MRUBY=on
  -DCMAKE_C_FLAGS="${:CMAKE_CFLAGS}"
  -DCMAKE_CXX_FLAGS="${:CMAKE_CFLAGS}"
  -DCMAKE_INSTALL_RPATH=${:CMAKE_LIBRARY_PATH}
CMAKE_CFLAGS=-I${openssl:location}/include -I${zlib:location}/include
CMAKE_LIBRARY_PATH=${openssl:location}/lib:${zlib:location}/lib
environment =
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig ${zlib:location}/lib/pkgconfig ${ruby:location}/lib/pkgconfig ${bison:location}/lib/pkgconfig
  CMAKE_INCLUDE_PATH=${openssl:location}/include:${zlib:location}/include
  CMAKE_LIBRARY_PATH=${:CMAKE_LIBRARY_PATH}
  LDFLAGS=-L${openssl:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib
  PATH=${ruby:location}/bin:${bison:location}/bin:%(PATH)s