From 56b1821dbd757e75902020de5176211c9305cc4f Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 1 Mar 2011 04:07:23 +0000 Subject: [PATCH] Ajout support pour compiler module perl avec fonctions AC --- functions-ac | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/functions-ac b/functions-ac index 618c47f..0b056a3 100644 --- a/functions-ac +++ b/functions-ac @@ -44,21 +44,30 @@ ipkg_decompress_package() # Default configure function hvconfig() { - if [ "x${IPKG_MODE}" = "xacnb" ]; then - # Broken autoconf package that must build in source dir + if [ "x${IPKG_MODE}" = "xacnb" -o "x${IPKG_MODE}" = "xpm" ]; then + # Broken autoconf package that must build in source dir, or Perl module. cd ${LFS_TMP}/${PACKAGE} else # Standard autoconf mode cd ${LFS_TMP}/${PACKAGE}-build fi - ${LFS_TMP}/${PACKAGE}/configure ${CONFIGURE_OPTS} + if [ "x${IPKG_MODE}" = "xpm" ]; then + # Configure Perl module. + # The option "-n" is used to avoid having to answer a question and + # accept the default configuration. + perl Makefile.PL -n ${CONFIGURE_OPTS} + else + # Standard configure script + ${LFS_TMP}/${PACKAGE}/configure ${CONFIGURE_OPTS} + fi } # Default build function hvbuild() { - if [ "x${IPKG_MODE}" = "xnoac" ]; then + if [ "x${IPKG_MODE}" = "xacnb" -o "x${IPKG_MODE}" = "xpm" ]; then + # Broken autoconf package that must build in source dir, or Perl module. cd ${LFS_TMP}/${PACKAGE} fi -- 2.20.1