From: gobo72 Date: Tue, 1 Mar 2011 04:07:23 +0000 (+0000) Subject: Ajout support pour compiler module perl avec fonctions AC X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=56b1821dbd757e75902020de5176211c9305cc4f;p=hvlinux.git Ajout support pour compiler module perl avec fonctions AC --- 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