imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / strace / Makefile
blobd445c4737339fba8ff3a01aa03e75003d8f343a2
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= strace
7 PKG_VERSION:= 6.11
8 PKG_RELEASE:= 1
9 PKG_HASH:= 83262583a3529f02c3501aa8b8ac772b4cbc03dc934e98bab6e4883626e283a5
10 PKG_DESCR:= system call trace program
11 PKG_SECTION:= app/debug
12 PKG_URL:= https://strace.io
13 PKG_SITES:= https://strace.io/files/$(PKG_VERSION)/
15 PKG_ARCH_DEPENDS:= !h8300 !nds32 !cris
17 include ${ADK_TOPDIR}/mk/package.mk
19 $(eval $(call PKG_template,STRACE,strace,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
21 ifeq ($(OS_FOR_BUILD),Darwin)
22 XAKE_FLAGS+= CPPFLAGS_FOR_BUILD="-I$(STAGING_TARGET_DIR)/usr/include -I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
23 else
24 XAKE_FLAGS+= CPPFLAGS_FOR_BUILD="-I$(LINUX_DIR)/include/uapi -I$(LINUX_DIR)/arch/$(ADK_TARGET_ARCH)/include/generated"
25 endif
27 ifeq ($(ADK_TARGET_LIB_MUSL),y)
28 TARGET_CPPFLAGS+= -DMSG_EXCEPT=020000 -D_LARGEFILE64_SOURCE=1
29 CONFIGURE_ENV+= st_cv_m32_mpers=no \
30 st_cv_mx32_mpers=no
31 endif
32 ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
33 TARGET_LDFLAGS+= -pthread
34 endif
36 AUTOTOOL_STYLE:= autoreconf
37 CONFIGURE_ARGS+= --enable-mpers=check
38 INSTALL_STYLE:= manual
40 do-install:
41 ${INSTALL_DIR} ${IDIR_STRACE}/usr/sbin
42 ${INSTALL_BIN} ${WRKBUILD}/src/strace ${IDIR_STRACE}/usr/sbin
44 include ${ADK_TOPDIR}/mk/pkg-bottom.mk