3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=28335e15c83456a3db055a0a0efcb4fe
10 PKG_SOURCE_URL
:=@SF
/strace
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,STRACE
,strace
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(PKG_BUILD_DIR
)/.configured
:
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
24 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
35 --datadir=/usr
/share \
36 --includedir=/usr
/include \
37 --infodir=/usr
/share
/info \
39 --libexecdir
=/usr
/lib \
40 --localstatedir
=/var \
41 --mandir=/usr
/share
/man \
45 $(DISABLE_LARGEFILE
) \
49 $(PKG_BUILD_DIR
)/.built
:
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 mkdir
-p
$(IDIR_STRACE
)/usr
/sbin
56 cp
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(IDIR_STRACE
)/usr
/sbin
/
57 $(STRIP
) $(IDIR_STRACE
)/usr
/sbin
/*
58 $(IPKG_BUILD
) $(IDIR_STRACE
) $(PACKAGE_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
62 rm -f
$(PKG_BUILD_DIR
)/.built