mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
gnuplot: add x11 PACKAGECONFIG
Currently, gnuplot recipe requires the x11 distro feature to be built. However, X11 is not needed for running gnuplot as long as we don't use a gnuplot X11 terminal. This commit adds the x11 package config used to make the need of x11 distro feature optional to build gnuplot. `features_check` inherit is removed as any of the functionalities of this class is now used. Signed-off-by: Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
641e11b0eb
commit
7d46922407
@@ -5,11 +5,10 @@ HOMEPAGE = "http://www.gnuplot.info/"
|
||||
SECTION = "console/scientific"
|
||||
LICENSE = "gnuplot"
|
||||
LIC_FILES_CHKSUM = "file://Copyright;md5=243a186fc2fd3b992125d60d5b1bab8f"
|
||||
DEPENDS = "${BPN}-native virtual/libx11 gd readline"
|
||||
DEPENDS = "${BPN}-native gd readline"
|
||||
|
||||
inherit autotools features_check pkgconfig
|
||||
inherit autotools pkgconfig
|
||||
# depends on virtual/libx11
|
||||
REQUIRED_DISTRO_FEATURES = "x11"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${PV}/${BP}.tar.gz;name=archive \
|
||||
http://www.mneuroth.de/privat/zaurus/qtplot-0.2.tar.gz;name=qtplot \
|
||||
@@ -38,10 +37,11 @@ do_install:class-native() {
|
||||
rm ${D}${bindir}/*.o
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= "cairo"
|
||||
PACKAGECONFIG ??= "cairo ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||
PACKAGECONFIG[cairo] = "--with-cairo,--without-cairo,cairo pango"
|
||||
PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua"
|
||||
PACKAGECONFIG[qt5] = "--with-qt --with-qt5nativesysroot=${STAGING_DIR_NATIVE},--without-qt,qtbase-native qtbase qtsvg qttools-native"
|
||||
PACKAGECONFIG[x11] = "--with-x,--without-x,virtual/libx11"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--with-readline=${STAGING_LIBDIR}/.. \
|
||||
|
||||
Reference in New Issue
Block a user