diff options
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.bb | 32 |
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 @@ | |||
1 | DESCRIPTION = "lib-curses provides an interface between Perl programs and \ | ||
2 | the curses library." | ||
3 | |||
4 | SECTION = "libs" | ||
5 | HOMEPAGE = "https://metacpan.org/pod/Curses" | ||
6 | LICENSE = "Artistic-1.0 | GPL-1.0-or-later" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=0b37356c5e9e28080a3422d82af8af09" | ||
9 | |||
10 | DEPENDS += "perl ncurses " | ||
11 | |||
12 | SRC_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 | |||
16 | SRC_URI[sha256sum] = "84221e0013a2d64a0bae6a32bb44b1ae5734d2cb0465fb89af3e3abd6e05aeb2" | ||
17 | |||
18 | S = "${UNPACKDIR}/Curses-${PV}" | ||
19 | |||
20 | EXTRA_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. | ||
24 | CFLAGS:append:libc-musl = "${@' -DNCURSES_WIDECHAR=1' if bb.utils.to_boolean((d.getVar('ENABLE_WIDEC') or 'True')) else ' -DNCURSES_WIDECHAR=0'} -DNCURSES_INTERNALS" | ||
25 | |||
26 | inherit cpan | ||
27 | |||
28 | do_compile() { | ||
29 | export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" | ||
30 | cpan_do_compile | ||
31 | } | ||
32 | |||