Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
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.
|
|
|
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 install dirs
|
|
|
|
sed -i -e "/DESTINATION/s/lib\${LIB_SUFFIX}/\"$(safe_sed "$dir_libdir")\"/" \
|
|
|
|
-e "/DESTINATION/s/share\\pkgconfig/\"$(safe_sed "$dir_datadir/pkgconfig")\"/" 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 et:
|