mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
fontconfig: Update staging to use do_install
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -5,10 +5,8 @@ DEPENDS = "freetype-native expat-native zlib-native"
|
||||
EXTRA_OEMAKE = ""
|
||||
EXTRA_OECONF = "${@[' --disable-docs',' --disable-docs --with-freetype-config=%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1)][os.path.isfile('%s/freetype-config' % bb.data.getVar('STAGING_BINDIR', d, 1))]}"
|
||||
|
||||
do_stage () {
|
||||
oe_runmake install
|
||||
install fc-lang/fc-lang ${STAGING_BINDIR}
|
||||
install fc-glyphname/fc-glyphname ${STAGING_BINDIR}
|
||||
install -d ${STAGING_LIBDIR}/pkgconfig/
|
||||
install -m 0644 fontconfig.pc ${STAGING_LIBDIR}/pkgconfig/
|
||||
do_install_append () {
|
||||
install -d ${D}${bindir}/
|
||||
install fc-lang/fc-lang ${D}${bindir}/
|
||||
install fc-glyphname/fc-glyphname ${D}${bindir}/
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ DEBIAN_NOAUTONAME_fontconfig-utils = "1"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
inherit autotools pkgconfig
|
||||
inherit autotools_stage pkgconfig
|
||||
|
||||
export HASDOCBOOK="no"
|
||||
|
||||
@@ -40,14 +40,6 @@ python do_unpack () {
|
||||
bb.build.exec_func('fontconfig_do_unpack', d)
|
||||
}
|
||||
|
||||
do_stage () {
|
||||
oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
|
||||
install -d ${STAGING_INCDIR}/fontconfig
|
||||
for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
|
||||
install -d ${STAGING_LIBDIR}/pkgconfig/
|
||||
install -m 0644 fontconfig.pc ${STAGING_LIBDIR}/pkgconfig/
|
||||
}
|
||||
|
||||
BUILD_CFLAGS += " -I${STAGING_INCDIR}/freetype2"
|
||||
|
||||
do_configure_append () {
|
||||
@@ -78,10 +70,10 @@ do_install () {
|
||||
}
|
||||
|
||||
do_install_append() {
|
||||
install -d ${D}/etc/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/97_fontconfig ${D}/etc/default/volatiles
|
||||
rmdir ${D}/var/cache/fontconfig
|
||||
rmdir ${D}/var/cache/
|
||||
install -d ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/97_fontconfig ${D}${sysconfdir}/default/volatiles
|
||||
rmdir ${D}${localstatedir}/cache/fontconfig
|
||||
rmdir ${D}${localstatedir}/cache/
|
||||
}
|
||||
|
||||
pkg_postinst_hal () {
|
||||
|
||||
Reference in New Issue
Block a user