blob: 645f918affd76609967181f59d4706666abd9060 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
include $(CLEAR_AUTOTOOLS_VARS)
# $(1): autotools build dir
# $(2): output dir for module
# $(3): install dir for module
# $(4): export_includes file
# $(5): export_pkgconfig file
define ncurses_cb
cd $(2) && \
ln -sf libncurses.so libncurses.so.6
cd $(3) && \
ln -sf libncurses.so libncurses.so.6
endef
LOCAL_MODULE := libncurses
LOCAL_CONFIGURE_OPTIONS := \
--with-shared \
--without-normal \
--without-debug \
--without-cxx-binding \
LOCAL_C_INCLUDES := ../ncurses ../progs
LOCAL_AUTOTOOLS_POST_INSTALL_CALLBACK := ncurses_cb
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)