diff options
Diffstat (limited to 'meta/recipes-extended/bzip2/bzip2_1.0.6.bb')
-rw-r--r-- | meta/recipes-extended/bzip2/bzip2_1.0.6.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-extended/bzip2/bzip2_1.0.6.bb b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb new file mode 100644 index 0000000000..9dd9e6a1f9 --- /dev/null +++ b/meta/recipes-extended/bzip2/bzip2_1.0.6.bb | |||
@@ -0,0 +1,54 @@ | |||
1 | SUMMARY = "Very high-quality data compression program" | ||
2 | DESCRIPTION = "bzip2 compresses files using the Burrows-Wheeler block-sorting text compression algorithm, and \ | ||
3 | Huffman coding. Compression is generally considerably better than that achieved by more conventional \ | ||
4 | LZ77/LZ78-based compressors, and approaches the performance of the PPM family of statistical compressors." | ||
5 | HOMEPAGE = "http://www.bzip.org/" | ||
6 | SECTION = "console/utils" | ||
7 | LICENSE = "bzip2" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=8;endline=37;md5=40d9d1eb05736d1bfc86cfdd9106e6b2" | ||
9 | PR = "r5" | ||
10 | |||
11 | SRC_URI = "http://www.bzip.org/${PV}/${BPN}-${PV}.tar.gz \ | ||
12 | file://configure.ac \ | ||
13 | file://run-ptest \ | ||
14 | file://Makefile.am" | ||
15 | |||
16 | SRC_URI[md5sum] = "00b516f4704d4a7cb50a1d97e6e8e15b" | ||
17 | SRC_URI[sha256sum] = "a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd" | ||
18 | |||
19 | PACKAGES =+ "libbz2 libbz2-dev libbz2-staticdev" | ||
20 | |||
21 | CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64" | ||
22 | |||
23 | inherit autotools update-alternatives ptest | ||
24 | |||
25 | ALTERNATIVE_PRIORITY = "100" | ||
26 | ALTERNATIVE_${PN} = "bunzip2 bzcat" | ||
27 | |||
28 | #install binaries to bzip2-native under sysroot for replacement-native | ||
29 | EXTRA_OECONF_append_class-native = " --bindir=${STAGING_BINDIR_NATIVE}/${PN}" | ||
30 | do_extraunpack () { | ||
31 | cp ${WORKDIR}/configure.ac ${S}/ | ||
32 | cp ${WORKDIR}/Makefile.am ${S}/ | ||
33 | } | ||
34 | |||
35 | addtask extraunpack after do_unpack before do_patch | ||
36 | |||
37 | do_install_ptest () { | ||
38 | cp -f ${B}/Makefile ${D}${PTEST_PATH}/Makefile | ||
39 | sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile | ||
40 | } | ||
41 | |||
42 | FILES_libbz2 = "${libdir}/lib*${SOLIBS}" | ||
43 | |||
44 | FILES_libbz2-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV}" | ||
45 | SECTION_libbz2-dev = "devel" | ||
46 | RDEPENDS_libbz2-dev = "libbz2 (= ${EXTENDPKGV})" | ||
47 | |||
48 | FILES_libbz2-staticdev = "${libdir}/*.a" | ||
49 | SECTION_libbz2-staticdev = "devel" | ||
50 | RDEPENDS_libbz2-staticdev = "libbz2-dev (= ${EXTENDPKGV})" | ||
51 | |||
52 | PROVIDES_append_class-native = " bzip2-replacement-native" | ||
53 | BBCLASSEXTEND = "native nativesdk" | ||
54 | |||