mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
libpng: Convert to BBCLASSEXTEND and drop custom staging function as unneeded
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
require libpng_${PV}.bb
|
||||
inherit native
|
||||
DEPENDS = "zlib-native"
|
||||
|
||||
do_stage() {
|
||||
cp libpng.pc libpng12.pc
|
||||
install -m 644 png.h ${STAGING_INCDIR}/png.h
|
||||
install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
|
||||
oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
|
||||
ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
|
||||
}
|
||||
@@ -4,22 +4,13 @@ LICENSE = "libpng"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "zlib"
|
||||
PRIORITY = "required"
|
||||
PR = "r6"
|
||||
PR = "r7"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/libpng/libpng-${PV}.tar.bz2 \
|
||||
file://makefile_fix.patch;patch=1"
|
||||
|
||||
inherit autotools binconfig pkgconfig pkgconfig_stage
|
||||
|
||||
do_stage() {
|
||||
cp libpng.pc libpng12.pc
|
||||
install -m 644 png.h ${STAGING_INCDIR}/png.h
|
||||
install -m 644 pngconf.h ${STAGING_INCDIR}/pngconf.h
|
||||
oe_libinstall -so libpng ${STAGING_LIBDIR}/
|
||||
oe_libinstall -so libpng12 ${STAGING_LIBDIR}/
|
||||
ln -sf libpng12.so ${STAGING_LIBDIR}/libpng.so
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${mandir}
|
||||
@@ -47,3 +38,5 @@ FILES_${PN} = "${libdir}/lib*${SOLIBS}"
|
||||
FILES_${PN}-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV} ${libdir}/*.la \
|
||||
${libdir}/*.a ${libdir}/pkgconfig \
|
||||
${datadir}/aclocal ${bindir} ${sbindir}"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
Reference in New Issue
Block a user