mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
zlib: Clean up recipe and use BBCLASSEXTEND for native and sdk versions
This commit is contained in:
@@ -105,6 +105,12 @@ python __anonymous () {
|
|||||||
else:
|
else:
|
||||||
autoextend = False
|
autoextend = False
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
|
if dep.endswith("-cross"):
|
||||||
|
if autoextend:
|
||||||
|
depends = depends.replace(dep, dep.replace("-cross", "-native"))
|
||||||
|
else:
|
||||||
|
bb.note("%s has depends %s which ends in -cross?" % (pn, dep))
|
||||||
|
|
||||||
if not dep.endswith("-native"):
|
if not dep.endswith("-native"):
|
||||||
if autoextend:
|
if autoextend:
|
||||||
depends = depends.replace(dep, dep + "-native")
|
depends = depends.replace(dep, dep + "-native")
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
ZLIB_EXTRA = ""
|
|
||||||
inherit native
|
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
install -m 0644 zlib.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zconf.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zlibdefs.h ${STAGING_INCDIR}/
|
|
||||||
oe_libinstall -a -so libz ${STAGING_LIBDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
DEPENDS = "libtool-native"
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
require zlib_${PV}.bb
|
|
||||||
require zlib-native.inc
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
ZLIB_EXTRA = ""
|
|
||||||
inherit sdk
|
|
||||||
|
|
||||||
do_stage() {
|
|
||||||
install -d ${STAGING_INCDIR}
|
|
||||||
install -m 0644 zlib.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zconf.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zlibdefs.h ${STAGING_INCDIR}/
|
|
||||||
oe_libinstall -a -so libz ${STAGING_LIBDIR}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
require zlib_${PV}.bb
|
|
||||||
require zlib-sdk.inc
|
|
||||||
@@ -3,31 +3,15 @@ SECTION = "libs"
|
|||||||
PRIORITY = "required"
|
PRIORITY = "required"
|
||||||
HOMEPAGE = "http://www.gzip.org/zlib/"
|
HOMEPAGE = "http://www.gzip.org/zlib/"
|
||||||
LICENSE = "zlib"
|
LICENSE = "zlib"
|
||||||
PR = "r6"
|
PR = "r7"
|
||||||
|
|
||||||
SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \
|
SRC_URI = "http://www.zlib.net/zlib-1.2.3.tar.bz2 \
|
||||||
file://1.2.3.3.dfsg.patch.gz;patch=1 \
|
file://1.2.3.3.dfsg.patch.gz;patch=1 \
|
||||||
file://visibility.patch;patch=1 \
|
file://visibility.patch;patch=1 \
|
||||||
file://autotools.patch;patch=1 "
|
file://autotools.patch;patch=1 "
|
||||||
|
|
||||||
S = "${WORKDIR}/zlib-${PV}"
|
|
||||||
|
|
||||||
DEPENDS = "libtool-cross"
|
DEPENDS = "libtool-cross"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools_stage
|
||||||
|
|
||||||
do_stage() {
|
BBCLASSEXTEND = "native sdk"
|
||||||
install -m 0644 zlib.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zconf.h ${STAGING_INCDIR}/
|
|
||||||
install -m 0644 zlibdefs.h ${STAGING_INCDIR}/
|
|
||||||
oe_libinstall -a -so libz ${STAGING_LIBDIR}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
install -d ${D}${prefix} ${D}${includedir} ${D}${libdir}
|
|
||||||
oe_runmake "prefix=${D}${prefix}" \
|
|
||||||
"exec_prefix=${D}${exec_prefix}" \
|
|
||||||
"man3dir=${D}${mandir}/man3" \
|
|
||||||
"includedir=${D}${includedir}" \
|
|
||||||
"libdir=${D}${libdir}" install
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user