diff options
Diffstat (limited to 'recipes/perl')
-rw-r--r-- | recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch | 39 | ||||
-rw-r--r-- | recipes/perl/libxml-libxml-perl_1.70.bb | 24 |
2 files changed, 63 insertions, 0 deletions
diff --git a/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch b/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch new file mode 100644 index 0000000000..c8e0218ede --- /dev/null +++ b/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch @@ -0,0 +1,39 @@ +--- a/Makefile.PL 2010-01-21 15:31:53.000000000 +0100 ++++ b/Makefile.PL 2010-01-21 15:32:51.000000000 +0100 +@@ -291,21 +291,21 @@ + + # -------------------------------------------------------------------------- # + # test if the libraries are really installed! +-unless (have_library("xml2") or have_library("libxml2")) { +- print STDERR <<DEATH; +-libxml2 not found +-Try setting LIBS and INC values on the command line +-Or get libxml2 from +- http://xmlsoft.org/ +-If you install via RPMs, make sure you also install the -devel +-RPMs, as this is where the headers (.h files) are. +- +-Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter +-to see the exact reason why the detection of libxml2 installation +-failed or why Makefile.PL was not able to compile a test program. +-DEATH +-exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors) +-} ++#unless (have_library("xml2") or have_library("libxml2")) { ++# print STDERR <<DEATH; ++#libxml2 not found ++#Try setting LIBS and INC values on the command line ++#Or get libxml2 from ++# http://xmlsoft.org/ ++#If you install via RPMs, make sure you also install the -devel ++#RPMs, as this is where the headers (.h files) are. ++# ++#Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter ++#to see the exact reason why the detection of libxml2 installation ++#failed or why Makefile.PL was not able to compile a test program. ++#DEATH ++#exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors) ++#} + # -------------------------------------------------------------------------- # + + # -------------------------------------------------------------------------- # diff --git a/recipes/perl/libxml-libxml-perl_1.70.bb b/recipes/perl/libxml-libxml-perl_1.70.bb new file mode 100644 index 0000000000..ac56c9f4ad --- /dev/null +++ b/recipes/perl/libxml-libxml-perl_1.70.bb @@ -0,0 +1,24 @@ +DESCRIPTION = "XML-LibXML" +SECTION = "libs" +LICENSE = "" +DEPENDS += "libxml2 \ + libxml-sax-perl \ + zlib \ +" +PR = "r0" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-${PV}.tar.gz;name=libxml \ + file://libxml-libxml-perl-disable-libxml2-check.patch;patch=1 \ +" +SRC_URI[libxml.md5sum] = "33d4294f708e20c298cfe534d1166844" +SRC_URI[libxml.sha256sum] = "53e6cf06772ba9d85055dc6e4488dbd876d2376e48ef3578fa73246ee98b3ba0" + +S = "${WORKDIR}/XML-LibXML-${PV}" + +inherit cpan + +EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR}/libxml2 LIBS=-L${STAGING_LIBDIR}" + +BBCLASSEXTEND = "native" + +CFLAGS += " -D_GNU_SOURCE " |