Adjust ghostscript to build libgs for upcoming libspectre

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2022-10-06 23:23:07 +02:00
parent 36626b857f
commit e94b79bb1b

View File

@@ -0,0 +1,20 @@
DEPENDS:append:class-target = " libidn"
EXTRA_OECONF:remove:class-target = "--without-libidn"
do_configure:append:class-target() {
# more (so) copy tools from the native ghostscript build
mkdir -p soobj/aux
for i in genarch genconf mkromfs echogs gendev genht packps; do
cp -f ${STAGING_BINDIR_NATIVE}/ghostscript-${PV}/$i soobj/aux/$i
done
}
do_compile:class-target() {
oe_runmake so
}
do_install:class-target() {
oe_runmake 'DESTDIR=${D}' soinstall
mv -f ${D}${bindir}/gsc ${D}${bindir}/gs
}