2007-07-13 12:22:34 +00:00
|
|
|
# Build script for ltrace
|
|
|
|
|
|
|
|
do_debug_ltrace_get() {
|
2008-05-03 17:51:16 +00:00
|
|
|
CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
|
2007-07-13 12:22:34 +00:00
|
|
|
# Create a link so that the following steps are easier to do:
|
|
|
|
cd "${CT_TARBALLS_DIR}"
|
2008-05-20 21:32:39 +00:00
|
|
|
ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig")
|
2007-07-13 12:22:34 +00:00
|
|
|
ln -sf "ltrace_${CT_LTRACE_VERSION}.orig${ltrace_ext}" "ltrace-${CT_LTRACE_VERSION}${ltrace_ext}"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_debug_ltrace_extract() {
|
2009-01-05 23:02:43 +00:00
|
|
|
CT_Extract "ltrace-${CT_LTRACE_VERSION}"
|
|
|
|
CT_Patch "ltrace-${CT_LTRACE_VERSION}"
|
2009-01-20 19:05:52 +00:00
|
|
|
# ltrace uses ppc instead of powerpc for the arch name
|
|
|
|
# create a symlink to get it to build for powerpc
|
|
|
|
CT_Pushd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/sysdeps/linux-gnu"
|
|
|
|
CT_DoExecLog ALL ln -sf ppc powerpc
|
|
|
|
CT_Popd
|
2007-07-13 12:22:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_debug_ltrace_build() {
|
|
|
|
CT_DoStep INFO "Installing ltrace"
|
|
|
|
mkdir -p "${CT_BUILD_DIR}/build-ltrace"
|
|
|
|
CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
|
|
|
|
|
2008-10-24 15:40:58 +00:00
|
|
|
CT_DoLog EXTRA "Copying sources to build dir"
|
|
|
|
(cd "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}"; tar cf - .)| tar xvf - |CT_DoLog ALL
|
|
|
|
|
2007-07-13 12:22:34 +00:00
|
|
|
CT_DoLog EXTRA "Configuring ltrace"
|
2008-10-26 09:29:04 +00:00
|
|
|
CT_DoExecLog ALL \
|
2008-10-26 11:30:34 +00:00
|
|
|
./configure \
|
2008-10-26 09:29:04 +00:00
|
|
|
--build=${CT_BUILD} \
|
|
|
|
--host=${CT_TARGET} \
|
2007-07-13 12:22:34 +00:00
|
|
|
--prefix=/usr
|
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building ltrace"
|
2008-07-14 21:57:57 +00:00
|
|
|
CT_DoExecLog ALL make
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing ltrace"
|
2009-03-03 17:41:59 +00:00
|
|
|
CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" install
|
2007-07-13 12:22:34 +00:00
|
|
|
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|