You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
866 B
26 lines
866 B
import 'compile/cmake'
|
|
|
|
name=yajl
|
|
version=2.1.0
|
|
|
|
dlextract "https://github.com/lloyd/$name/archive/$version/$name-$version.tar.gz" \
|
|
'6887e0ed7479d2549761a4d284d3ecb0'
|
|
_
|
|
|
|
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_lib")\"/" \
|
|
-e "/DESTINATION/s/share\/pkgconfig/\"$(safe_sed "$dir_data/pkgconfig")\"/" \
|
|
-e "/DESTINATION/s/include\/yajl/\"$(safe_sed "$dir_include/yajl")\"/" src/CMakeLists.txt
|
|
sed -i -e "/DESTINATION/s/bin/\"$(safe_sed "$dir_bin")\"/" \
|
|
verify/CMakeLists.txt reformatter/CMakeLists.txt
|
|
|
|
compile_cmake
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|
|
|