yann@156: # Template file for a tool utility yann@156: yann@156: # Check here wether your tool is enabled or not. yann@156: # This will get redefined over and over again for each tool, so don't yann@156: # count on it in the functions below. yann@156: is_enabled="${CT_FOOBAR}" yann@156: yann@156: # Small function to print the filename yann@156: # Note that this function gets redefined over and over again for each tool. yann@156: # It's of no use when building the toolchain proper, but shows all its yann@156: # usefullness when saving the toolchain and building the tarball. yann@156: # You shall not echo anything if you're not enabled! yann@156: # Echo the name of the file, without the extension, below. yann@156: do_print_filename() { yann@156: # For example: yann@156: # [ "{CT_FOOBAR}" = "y" ] || return 0 yann@156: # echo "foobar-${CT_FOOBAR_VERSION}" yann@156: : yann@156: } yann@156: yann@156: # Put your download code here yann@156: do_tools_foobar_get() { yann@156: # For example: yann@156: # CT_GetFile "foobar-${CT_FOOBAR_VERSION}" http://foobar.com/releases/ yann@156: : yann@156: } yann@156: yann@156: # Put your extract code here yann@156: do_tools_foobar_extract() { yann@156: # For example: yann@156: # CT_ExtractAndPatch "foobar-${CT_FOOBAR_VERSION}" yann@156: : yann@156: } yann@156: yann@156: # Put your build code here yann@156: do_tools_foobar_build() { yann@156: # For example: yann@234: # mkdir -p "${CT_BUILD_DIR}/build-foobar" yann@234: # CT_Pushd "${CT_BUILD_DIR}/build-foobar" yann@156: # "${CT_SRC_DIR}/foobar-${CT_FOOBAR_VERSION}/configure" \ yann@156: # --build=${CT_BUILD} \ yann@156: # --host=${CT_TARGET} \ yann@156: # --prefix=/usr \ yann@156: # --foobar-options yann@156: # make yann@156: # make DESTDIR="${CT_SYSROOT_DIR}" install yann@156: # CT_Popd yann@156: : yann@156: } yann@156: