2004-02-11 07:44:47 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ltrace
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-07-25 16:53:49 +02:00
|
|
|
LTRACE_VERSION = 0.5.3
|
|
|
|
LTRACE_SOURCE = ltrace_$(LTRACE_VERSION).orig.tar.gz
|
|
|
|
LTRACE_PATCH = ltrace_$(LTRACE_VERSION)-2.1.diff.gz
|
|
|
|
LTRACE_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/l/ltrace
|
|
|
|
LTRACE_DEPENDENCIES = libelf
|
2004-02-11 07:44:47 +01:00
|
|
|
|
2009-10-02 10:33:29 +02:00
|
|
|
# ltrace uses arch=ppc for powerpc
|
|
|
|
LTRACE_ARCH:=$(KERNEL_ARCH:powerpc=ppc)
|
2004-09-03 06:12:31 +02:00
|
|
|
ifeq ("$(strip $(ARCH))","armeb")
|
|
|
|
LTRACE_ARCH:=arm
|
|
|
|
endif
|
|
|
|
|
2010-07-25 16:53:49 +02:00
|
|
|
define LTRACE_CONFIGURE_CMDS
|
|
|
|
(cd $(@D) ; ./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
CC='$(TARGET_CC)' \
|
|
|
|
CFLAGS='$(TARGET_CFLAGS)')
|
|
|
|
endef
|
2004-02-11 07:44:47 +01:00
|
|
|
|
2010-07-25 16:53:49 +02:00
|
|
|
define LTRACE_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) ARCH=$(LTRACE_ARCH)
|
|
|
|
endef
|
2005-04-14 10:00:27 +02:00
|
|
|
|
2010-04-10 22:47:05 +02:00
|
|
|
ifeq ($(BR2_HAVE_DOCUMENTATION),y)
|
2010-07-25 16:53:49 +02:00
|
|
|
define LTRACE_INSTALL_DOCUMENTATION
|
|
|
|
$(INSTALL) -D $(@D)/ltrace.1 \
|
2007-09-24 09:34:48 +02:00
|
|
|
$(TARGET_DIR)/usr/share/man/man1/ltrace.1
|
2010-07-25 16:53:49 +02:00
|
|
|
endef
|
2007-09-24 09:34:48 +02:00
|
|
|
endif
|
2004-02-11 07:44:47 +01:00
|
|
|
|
2010-07-25 16:53:49 +02:00
|
|
|
define LTRACE_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/ltrace $(TARGET_DIR)/usr/bin
|
|
|
|
$(LTRACE_INSTALL_DOCUMENTATION)
|
|
|
|
endef
|
2004-02-11 07:44:47 +01:00
|
|
|
|
2010-07-25 16:53:49 +02:00
|
|
|
$(eval $(call GENTARGETS,package,ltrace))
|