# 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