2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "XML::Parser - A perl module for parsing XML documents"
|
2005-08-31 10:45:47 +00:00
|
|
|
SECTION = "libs"
|
2015-01-13 12:17:57 +00:00
|
|
|
LICENSE = "Artistic-1.0 | GPL-1.0+"
|
2011-04-08 09:24:13 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://README;beginline=2;endline=6;md5=c8767d7516229f07b26e42d1cf8b51f1"
|
2011-07-02 12:24:33 +00:00
|
|
|
|
2007-11-29 10:09:00 +00:00
|
|
|
DEPENDS += "expat expat-native"
|
2007-05-30 09:33:32 +00:00
|
|
|
|
|
|
|
SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"
|
2015-01-22 02:42:45 +00:00
|
|
|
SRC_URI[md5sum] = "af4813fe3952362451201ced6fbce379"
|
|
|
|
SRC_URI[sha256sum] = "1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2005-08-31 10:45:47 +00:00
|
|
|
S = "${WORKDIR}/XML-Parser-${PV}"
|
|
|
|
|
2014-07-01 07:51:54 +00:00
|
|
|
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR} CC='${CC}' LD='${CCLD}' FULL_AR='${AR}'"
|
2007-05-30 09:33:32 +00:00
|
|
|
|
2005-08-31 10:45:47 +00:00
|
|
|
inherit cpan
|
2007-05-30 09:33:32 +00:00
|
|
|
|
2012-07-05 19:18:35 +00:00
|
|
|
# fix up sub MakeMaker project as arguments don't get propagated though
|
|
|
|
# see https://rt.cpan.org/Public/Bug/Display.html?id=28632
|
|
|
|
do_configure_append() {
|
|
|
|
sed 's:--sysroot=.*\(\s\|$\):--sysroot=${STAGING_DIR_TARGET} :g' -i Makefile Expat/Makefile
|
|
|
|
sed 's:^FULL_AR = .*:FULL_AR = ${AR}:g' -i Expat/Makefile
|
|
|
|
}
|
|
|
|
|
2009-11-18 20:05:55 +00:00
|
|
|
do_compile() {
|
|
|
|
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
|
|
|
|
cpan_do_compile
|
|
|
|
}
|
|
|
|
|
2012-10-27 08:48:17 +00:00
|
|
|
do_compile_class-native() {
|
2011-07-02 12:24:33 +00:00
|
|
|
cpan_do_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/XML/Parser/Expat/.debug/"
|
|
|
|
|
|
|
|
BBCLASSEXTEND="native"
|
|
|
|
|