xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/perl-cross/perlcross_1.3.7.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Perl-cross build system"
2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/arsv/perl-cross"
3*4882a593SmuzhiyunDESCRIPTION = "perl-cross provides configure script, top-level Makefile and some auxiliary files for perl, \
4*4882a593Smuzhiyunwith the primary emphasis on cross-compiling the source."
5*4882a593SmuzhiyunSECTION = "devel"
6*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later"
7*4882a593Smuzhiyun# README.md is taken from https://github.com/arsv/perl-cross/blob/master/README.md
8*4882a593Smuzhiyun# but is not provided inside the release tarballs
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${WORKDIR}/README.md;md5=252fcce2026b765fee1ad74d2fb07a3b"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit allarch
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRC_URI = "https://github.com/arsv/perl-cross/releases/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-cross \
14*4882a593Smuzhiyun           file://README.md \
15*4882a593Smuzhiyun           file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \
16*4882a593Smuzhiyun           file://determinism.patch \
17*4882a593Smuzhiyun           file://0001-Makefile-check-the-file-if-patched-or-not.patch \
18*4882a593Smuzhiyun           "
19*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/arsv/perl-cross/releases/"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunSRC_URI[perl-cross.sha256sum] = "77f13ca84a63025053852331b72d4046c1f90ded98bd45ccedea738621907335"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunS = "${WORKDIR}/perl-cross-${PV}"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyundo_configure () {
26*4882a593Smuzhiyun}
27*4882a593Smuzhiyun
28*4882a593Smuzhiyundo_compile () {
29*4882a593Smuzhiyun}
30*4882a593Smuzhiyun
31*4882a593Smuzhiyundo_install:class-native() {
32*4882a593Smuzhiyun    mkdir -p ${D}/${datadir}/perl-cross/
33*4882a593Smuzhiyun    cp -rf ${S}/* ${D}/${datadir}/perl-cross/
34*4882a593Smuzhiyun    rm -rf ${D}/${datadir}/perl-cross/patches/
35*4882a593Smuzhiyun}
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunBBCLASSEXTEND = "native"
38*4882a593Smuzhiyun
39