import 'compile/cmake' name=yajl version=2.1.0 update_url="https://github.com/lloyd/$name/releases" update_names="/archive/$version.tar.gz" dlextract "https://github.com/lloyd/$name/archive/$version.tar.gz" \ '6887e0ed7479d2549761a4d284d3ecb0' header_end cd "$name-$version" # Don't build the static library sed -i -e '/yajl_s/d' \ -e '/COMMAND ${CMAKE_COMMAND}/d' src/CMakeLists.txt find . -name "CMakeLists.txt" -exec sed -i -e '/TARGET_LINK_LIBRARIES/s/yajl_s/yajl/' '{}' \; # Fix paths sed -i -e "/DESTINATION/s/lib\${LIB_SUFFIX}/\"$(safe_sed "$dir_libdir")\"/" \ -e "/DESTINATION/s/share\/pkgconfig/\"$(safe_sed "$dir_datadir/pkgconfig")\"/" \ -e "/DESTINATION/s/include\/yajl/\"$(safe_sed "$dir_includedir/yajl")\"/" src/CMakeLists.txt sed -i -e "/DESTINATION/s/bin/\"$(safe_sed "$dir_bindir")\"/" \ verify/CMakeLists.txt reformatter/CMakeLists.txt compile_cmake # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: