summaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb')
-rw-r--r--meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb b/meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb
new file mode 100644
index 0000000000..e6fc3c8300
--- /dev/null
+++ b/meta-perl/recipes-perl/libcurses/libcurses-perl_1.45.bb
@@ -0,0 +1,32 @@
1DESCRIPTION = "lib-curses provides an interface between Perl programs and \
2the curses library."
3
4SECTION = "libs"
5HOMEPAGE = "https://metacpan.org/pod/Curses"
6LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
7
8LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=0b37356c5e9e28080a3422d82af8af09"
9
10DEPENDS += "perl ncurses "
11
12SRC_URI = "${CPAN_MIRROR}/authors/id/G/GI/GIRAFFED/Curses-${PV}.tar.gz \
13 file://0001-testtyp.c-Use-proper-prototype-for-main-function.patch \
14 "
15
16SRC_URI[sha256sum] = "84221e0013a2d64a0bae6a32bb44b1ae5734d2cb0465fb89af3e3abd6e05aeb2"
17
18S = "${UNPACKDIR}/Curses-${PV}"
19
20EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR} LIBS=-L${STAGING_LIBDIR} TEST_SYMS_OPTS=-v"
21
22# enable NCURSES_WIDECHAR=1 only if ENABLE_WIDEC has not been explicitly disabled (e.g. by the distro config).
23# When compiling against the ncurses library, NCURSES_WIDECHAR needs to explicitly set to 0 in this case.
24CFLAGS:append:libc-musl = "${@' -DNCURSES_WIDECHAR=1' if bb.utils.to_boolean((d.getVar('ENABLE_WIDEC') or 'True')) else ' -DNCURSES_WIDECHAR=0'} -DNCURSES_INTERNALS"
25
26inherit cpan
27
28do_compile() {
29 export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
30 cpan_do_compile
31}
32