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
736 B
26 lines
736 B
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
|
|
|
|
# Fix install dirs
|
|
sed -i -e "s/lib\${LIB_SUFFIX}/$(safe_sed "$dir_libdir")/" \
|
|
-e "/INSTALL(/s/share/$(safe_sed "$dir_datadir")/" src/CMakeLists.txt
|
|
sed -i -e "/INSTALL(/s/bin/$(safe_sed "$dir_bindir")/" \
|
|
verify/CMakeLists.txt reformatter/CMakeLists.txt
|
|
|
|
compile_cmake
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|
|
|