• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ncurses/ncurses.mk
Jerzy GrzegorekJerzy Grzegorek committed bd8c733fb4a31 Mar 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# ncurses
4
#
5
################################################################################
6
​
7
NCURSES_VERSION = 5.9
8
NCURSES_SITE = $(BR2_GNU_MIRROR)/ncurses
9
NCURSES_INSTALL_STAGING = YES
10
NCURSES_DEPENDENCIES = host-ncurses
11
HOST_NCURSES_DEPENDENCIES =
12
NCURSES_PROGS = clear infocmp tabs tic toe tput tset
13
NCURSES_LICENSE = MIT with advertising clause
14
NCURSES_LICENSE_FILES = README
15
NCURSES_CONFIG_SCRIPTS = ncurses$(NCURSES_LIB_SUFFIX)$(NCURSES_ABI_VERSION)-config
16
​
17
NCURSES_CONF_OPTS = \
18
    --without-cxx \
19
    --without-cxx-binding \
20
    --without-ada \
21
    --without-tests \
22
    --disable-big-core \
23
    --without-profile \
24
    --disable-rpath \
25
    --disable-rpath-hack \
26
    --enable-echo \
27
    --enable-const \
28
    --enable-overwrite \
29
    --enable-pc-files \
30
    $(if $(BR2_PACKAGE_NCURSES_TARGET_PROGS),,--without-progs) \
31
    --without-manpages
32
​
33
# Install after busybox for the full-blown versions
34
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
35
NCURSES_DEPENDENCIES += busybox
36
endif
37
​
38
ifeq ($(BR2_STATIC_LIBS),y)
39
NCURSES_CONF_OPTS += --without-shared --with-normal
40
else ifeq ($(BR2_SHARED_LIBS),y)
41
NCURSES_CONF_OPTS += --with-shared --without-normal
42
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
43
NCURSES_CONF_OPTS += --with-shared --with-normal
44
endif
45
​
46
# configure can't find the soname for libgpm when cross compiling
47
ifeq ($(BR2_PACKAGE_GPM),y)
48
NCURSES_CONF_OPTS += --with-gpm=libgpm.so.2
49
NCURSES_DEPENDENCIES += gpm
50
else
51
NCURSES_CONF_OPTS += --without-gpm
52
endif
53
​
54
NCURSES_LIBS-y = ncurses
55
NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_MENU) += menu
56
NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_PANEL) += panel
57
NCURSES_LIBS-$(BR2_PACKAGE_NCURSES_TARGET_FORM) += form
58
​
59
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
60
NCURSES_CONF_OPTS += --enable-widec
61
NCURSES_LIB_SUFFIX = w
62
​
63
define NCURSES_LINK_LIBS_STATIC
64
    for lib in $(NCURSES_LIBS-y:%=lib%); do \
65
        ln -sf $${lib}$(NCURSES_LIB_SUFFIX).a \
66
            $(1)/usr/lib/$${lib}.a; \
67
    done
68
    ln -sf libncurses$(NCURSES_LIB_SUFFIX).a \
69
        $(1)/usr/lib/libcurses.a
70
endef
71
​
72
define NCURSES_LINK_LIBS_SHARED
73
    for lib in $(NCURSES_LIBS-y:%=lib%); do \
74
        ln -sf $${lib}$(NCURSES_LIB_SUFFIX).so \
75
            $(1)/usr/lib/$${lib}.so; \
76
    done
77
    ln -sf libncurses$(NCURSES_LIB_SUFFIX).so \
78
        $(1)/usr/lib/libcurses.so
79
endef
80
​
81
define NCURSES_LINK_PC
82
    for pc in $(NCURSES_LIBS-y); do \
83
        ln -sf $${pc}$(NCURSES_LIB_SUFFIX).pc \
84
            $(1)/usr/lib/pkgconfig/$${pc}.pc; \
85
    done
86
endef
87
​
88
NCURSES_LINK_TARGET_LIBS = \
89
    $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_STATIC,$(TARGET_DIR));) \
90
    $(if $(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_SHARED,$(TARGET_DIR)))
91
NCURSES_LINK_STAGING_LIBS = \
92
    $(if $(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),$(call NCURSES_LINK_LIBS_STATIC,$(STAGING_DIR));) \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.