Terminé conversion fcron.d pour tous les packages. Enlevé mailman
[hvlinux.git] / functions-ipkg
index f8669af..23a1e1a 100644 (file)
@@ -11,6 +11,7 @@ function_exists()
     return $?
 }
 
+unset -f hvpatch_pre
 unset -f hvconfig_pre
 unset -f hvconfig_cache
 unset -f hvconfig_post
@@ -127,6 +128,12 @@ ipkg_script()
         source ${PACKAGE_DEF}
     fi
 
+    # Execute pre-patch function if applicable
+    if function_exists hvpatch_pre ; then
+        echo "Running patch pre-script"
+        hvpatch_pre
+    fi
+
     hvpatch
 
     # Execute pre-configure function if applicable
@@ -144,6 +151,14 @@ ipkg_script()
             --cache-file=${LFS_TMP}/${PACKAGE}-build/config.cache"
     fi
 
+    # Add option --disable-dependency-tracking if supported
+    if cat ${LFS_TMP}/${PACKAGE}/configure | \
+        grep "disable-dependency-tracking" 1> /dev/null 2>&1; then
+        CONFIGURE_OPTS="\
+            ${CONFIGURE_OPTS} \
+            --disable-dependency-tracking"
+    fi
+
     ipkg_display_build_infos
 
     if [ "x${IPKG_MODE}" = "xnoac" ]; then