diff mbox

CMake requires ncurses

Message ID CAHkwnC-uYxTH+=NKsQH_QwTFRr5=kLii=xYzr3TWR3zeGEmfTQ@mail.gmail.com
State Not Applicable
Headers show

Commit Message

Fabio Porcedda May 7, 2014, 4:20 p.m. UTC
On Wed, May 7, 2014 at 5:45 PM, Samuel Martin <s.martin49@gmail.com> wrote:
> Hi Fabio, all,
>
> On Wed, May 7, 2014 at 5:32 PM, Fabio Porcedda <fabio.porcedda@gmail.com> wrote:
>> On Wed, May 7, 2014 at 4:47 PM, Thomas Petazzoni
>> <thomas.petazzoni@free-electrons.com> wrote:
>>> Dear Fabio Porcedda,
>>>
>>> On Wed, 7 May 2014 13:53:07 +0200, Fabio Porcedda wrote:
>>>
>>>> because the cmake package requires the ncurses library, what is best
>>>> thing to do?
>>>
>>> Huh? I built CMake just yesterday, and I don't think ncurses was
>>> needed. Isn't it an optional dependency?
>>
>> Are you sure that In your system there isn't installed the ncurses
>> development package?
>>
>
> After checking cmake source, it seems ncurses is a dependency of
> ccmake program (the CMake curses interface).
>
> Its build can be disabled by adding -DBUILD_CursesDialog=OFF to the
> configure command line.
>
> @Fabio: care to test this and cook a patch if it works as expected?

Great that works!

I will send the patch.

Thanks
diff mbox

Patch

diff --git a/package/cmake/cmake.mk b/package/cmake/cmake.mk
index d45c642..d0af828 100644
--- a/package/cmake/cmake.mk
+++ b/package/cmake/cmake.mk
@@ -15,6 +15,7 @@  define HOST_CMAKE_CONFIGURE_CMDS
                LDFLAGS="$(HOST_LDFLAGS)" \
                CFLAGS="$(HOST_CFLAGS)" \
                ./bootstrap --prefix=$(HOST_DIR)/usr
--parallel=$(PARALLEL_JOBS) \
+               -- -DBUILD_CursesDialog=OFF \
        )
 endef