0849e8193e
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
#############################################################
|
|
#
|
|
# ltrace
|
|
#
|
|
#############################################################
|
|
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_MAKE = $(MAKE1)
|
|
LTRACE_DEPENDENCIES = libelf
|
|
|
|
# ltrace uses arch=ppc for powerpc
|
|
LTRACE_ARCH:=$(KERNEL_ARCH:powerpc=ppc)
|
|
ifeq ("$(strip $(ARCH))","armeb")
|
|
LTRACE_ARCH:=arm
|
|
endif
|
|
|
|
define LTRACE_CONFIGURE_CMDS
|
|
(cd $(@D) ; ./configure \
|
|
--prefix=/usr \
|
|
CC='$(TARGET_CC)' \
|
|
CFLAGS='$(TARGET_CFLAGS)')
|
|
endef
|
|
|
|
define LTRACE_BUILD_CMDS
|
|
$(MAKE) -C $(@D) ARCH=$(LTRACE_ARCH)
|
|
endef
|
|
|
|
ifeq ($(BR2_HAVE_DOCUMENTATION),y)
|
|
define LTRACE_INSTALL_DOCUMENTATION
|
|
$(INSTALL) -D $(@D)/ltrace.1 \
|
|
$(TARGET_DIR)/usr/share/man/man1/ltrace.1
|
|
endef
|
|
endif
|
|
|
|
define LTRACE_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/ltrace $(TARGET_DIR)/usr/bin
|
|
$(LTRACE_INSTALL_DOCUMENTATION)
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS))
|