import 'compile/cmake' name=slop version=6.3.47 dlextract "https://github.com/naelstrof/$name/archive/v$version/$name-$version.tar.gz" \ 'd094a769ac3f8d444f6a903a3f076196' _ cd "$name-$version" # Fix paths sed -i -e "/^install(/s/bin/$(safe_sed "$dir_bin")/" \ -e "/^install(/s/lib/$(safe_sed "$dir_lib")/" \ -e "/^install(/s/include/$(safe_sed "$dir_include")/" CMakeLists.txt # Disabling SLOP_UNICODE and defining USE_UNICODE manually to avoid CMake errors due to missing FindICU.cmake. CFLAGS="$CFLAGS -DCXXOPTS_USE_UNICODE $(pkg-config --cflags icu-uc)" \ LDFLAGS="$LDFLAGS $(pkg-config --libs icu-uc)" \ compile_cmake -- -DCMAKE_INSTALL_MANDIR="/$dir_prefix/$dir_man" -DSLOP_UNICODE=FALSE # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: