2 # This is for perl modules that use the old Makefile.PL build system
4 FILES_${PN} += '${libdir}/perl5'
7 DEPENDS += "perl-native"
10 cpan_do_configure () {
11 perl Makefile.PL ${EXTRA_CPANFLAGS}
12 if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
13 . ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh
14 sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5/site_perl/${version}:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" < Makefile > Makefile.new
15 mv Makefile.new Makefile
20 # You must use gcc to link on sh
22 if test ${TARGET_ARCH} = "sh3" -o ${TARGET_ARCH} = "sh4"; then
23 OPTIONS="LD=${TARGET_ARCH}-${TARGET_OS}-gcc"
25 oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}" $OPTIONS
29 oe_runmake install_vendor
32 EXPORT_FUNCTIONS do_configure do_compile do_install