6 cmake
-DCMAKE_INSTALL_PREFIX=$PWD/..
/install "$@" .
14 if [ -d "$dir" ]; then
18 git clone
"$url" "$dir"
25 clone libubox git
://git.openwrt.org
/project
/libubox.git
26 build libubox
-DBUILD_LUA=off
27 if [ "$UNAME" = "Linux" ]; then
28 clone libnl-tiny git
://git.openwrt.org
/project
/libnl-tiny.git
29 build libnl-tiny
-DBUILD_LUA=off
31 rm -f install
/lib
/*.
{so
,dylib
}
32 if [ "$UNAME" = "Linux" ]; then
33 mv install
/include
/libnl-tiny
/* install
/include
/
35 export CFLAGS
=-I$PWD/install
/include
36 export LDFLAGS
=-L$PWD/install
/lib
37 cmake
-DCMAKE_FIND_ROOT_PATH=$PWD/install -DUBUS_SUPPORT=off .