mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
29d4fc8895
rrdtool needs groff-native to format the documentation. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
123 lines
4.0 KiB
BlitzBasic
123 lines
4.0 KiB
BlitzBasic
SUMMARY = "High performance data logging and graphing system for time series data"
|
|
HOMEPAGE = "http://oss.oetiker.ch/rrdtool/"
|
|
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0"
|
|
|
|
DEPENDS = "libpng zlib cairo pango glib-2.0 libxml2 groff-native"
|
|
|
|
SRCREV = "1850e00a17e25e93c39e608f4e2da50f29c5c712"
|
|
PV = "1.4.8"
|
|
|
|
SRC_URI = "\
|
|
git://github.com/oetiker/rrdtool-1.x.git;branch=1.4 \
|
|
file://remove_hardcoded_xml_include.patch \
|
|
file://0001-removing-testing-leftovers.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit autotools-brokensep gettext pythonnative perlnative python-dir cpan-base
|
|
|
|
EXTRA_AUTORECONF = "-I m4"
|
|
|
|
PACKAGECONFIG ??= "python perl"
|
|
|
|
PACKAGECONFIG[python] = "--enable-python=yes \
|
|
am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages \
|
|
am_cv_python_pyexecdir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages,\
|
|
--disable-python,python,"
|
|
|
|
PACKAGECONFIG[perl] = \
|
|
"--enable-perl=yes --with-perl-options='INSTALLDIRS="vendor"' \
|
|
ac_cv_path_PERL_CC='${CC}', \
|
|
--disable-perl,perl,"
|
|
|
|
PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi"
|
|
|
|
EXTRA_OECONF = " \
|
|
--enable-shared \
|
|
--disable-libwrap \
|
|
--program-prefix='' \
|
|
rd_cv_ieee_works=yes \
|
|
--disable-ruby \
|
|
--disable-lua \
|
|
--disable-tcl \
|
|
--disable-rpath \
|
|
"
|
|
|
|
# don't use perl.real, this results in break issues with prebuilts since perl.real doesn't
|
|
# know where the PERL5LIB is...
|
|
# use wrapper perl instead
|
|
EXTRA_OEMAKE = "PERL=${STAGING_BINDIR_NATIVE}/perl-native/perl FULLPERL=${STAGING_BINDIR_NATIVE}/perl-native/perl"
|
|
|
|
export BUILD_SYS
|
|
export HOST_SYS
|
|
export STAGING_LIBDIR
|
|
export STAGING_INCDIR
|
|
|
|
# Env var which tells perl if it should use host (no) or target (yes) settings
|
|
export PERLCONFIGTARGET = "${@is_target(d)}"
|
|
export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE"
|
|
export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
|
export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
|
|
|
do_configure() {
|
|
#fix the pkglib problem with newer automake
|
|
#perl
|
|
sed -i -e "s|-Wl,--rpath -Wl,\$rp||g" \
|
|
${S}/bindings/perl-shared/Makefile.PL
|
|
|
|
#python
|
|
sed -i -e '/PYTHON_INCLUDES="-I${/c \
|
|
PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \
|
|
${S}/m4/acinclude.m4
|
|
#remove the hardcoded $(libdir) rpath
|
|
sed -i -e 's|--rpath=$(libdir)||g' ${S}/bindings/Makefile.am
|
|
|
|
autotools_do_configure
|
|
|
|
#modify python sitepkg
|
|
#remove the dependency of perl-shared:Makefile
|
|
#or perl-shared/Makefile will be regenerated
|
|
#if any code touch bindings/Makefile after below perl bindings code
|
|
sed -i -e "s:\$(PYTHON) setup.py install:\$(PYTHON) setup.py install \
|
|
--install-lib=${D}${PYTHON_SITEPACKAGES_DIR}:" \
|
|
-e "s:perl-shared/Makefile.PL Makefile:perl-shared/Makefile.PL:" \
|
|
${B}/bindings/Makefile
|
|
|
|
#redo the perl bindings
|
|
(
|
|
cd ${S}/bindings/perl-shared;
|
|
perl Makefile.PL INSTALLDIRS="vendor" INSTALLPRIVLIB="abc";
|
|
|
|
cd ../../bindings/perl-piped;
|
|
perl Makefile.PL INSTALLDIRS="vendor";
|
|
)
|
|
|
|
#change the interpreter in file
|
|
sed -i -e "s|^PERL = ${STAGING_BINDIR_NATIVE}/.*|PERL = /usr/bin/perl|g" \
|
|
${B}/examples/Makefile
|
|
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl|/usr/bin/perl|g" \
|
|
${B}/examples/*.pl
|
|
}
|
|
|
|
PACKAGES =+ "${PN}-perl ${PN}-python"
|
|
|
|
FILES_${PN}-doc += "${datadir}/examples"
|
|
|
|
DESCRIPTION_${PN}-perl = \
|
|
"The ${PN}-perl package includes RRDtool bindings for perl."
|
|
FILES_${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm ${datadir}/rrdtool/examples \
|
|
${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*"
|
|
RDEPENDS_${PN}-perl = "perl perl-module-lib perl-module-getopt-long perl-module-time-hires \
|
|
perl-module-io-file perl-module-ipc-open2 perl-module-io-socket"
|
|
|
|
DESCRIPTION_${PN}-python = \
|
|
"The ${PN}-python package includes RRDtool bindings for python."
|
|
FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
|
|
RDEPENDS_${PN}-python = "python"
|
|
|
|
FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \
|
|
${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug"
|