1 #############################################################
5 #############################################################
6 STRACE_SOURCE
:=strace-4.5
.6.
tar.bz2
7 STRACE_SITE
:=http
://aleron.dl.sourceforge.net
/sourceforge
/strace
9 STRACE_DIR
:=$(BUILD_DIR
)/strace-4.5
.6
10 STRACE_IPK
=$(BUILD_DIR
)/strace_4.5
.6-1_mipsel.ipk
11 STRACE_IPK_DIR
:=$(BUILD_DIR
)/strace-4.5
.6-ipk
14 $(DL_DIR
)/$(STRACE_SOURCE
):
15 $(WGET
) -P
$(DL_DIR
) $(STRACE_SITE
)/$(STRACE_SOURCE
)
17 strace-source
: $(DL_DIR
)/$(STRACE_SOURCE
)
19 $(STRACE_DIR
)/.unpacked
: $(DL_DIR
)/$(STRACE_SOURCE
)
20 $(STRACE_CAT
) $(DL_DIR
)/$(STRACE_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
21 touch
$(STRACE_DIR
)/.unpacked
23 $(STRACE_DIR
)/.configured
: $(STRACE_DIR
)/.unpacked
24 (cd
$(STRACE_DIR
); rm -rf config.cache
; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
42 $(DISABLE_LARGEFILE
) \
44 touch
$(STRACE_DIR
)/.configured
46 $(STRACE_DIR
)/strace
: $(STRACE_DIR
)/.configured
47 $(MAKE
) CC
=$(TARGET_CC
) -C
$(STRACE_DIR
)
49 $(TARGET_DIR
)/usr
/bin
/strace
: $(STRACE_DIR
)/strace
50 install -c
$(STRACE_DIR
)/strace
$(TARGET_DIR
)/usr
/bin
/strace
51 $(STRIP
) $(TARGET_DIR
)/usr
/bin
/strace
> /dev
/null
2>&1
53 strace
: uclibc
$(TARGET_DIR
)/usr
/bin
/strace
55 strace-ipk
: $(STRACE_DIR
)/strace
56 mkdir
-p
$(STRACE_IPK_DIR
)/CONTROL
57 mkdir
-p
$(STRACE_IPK_DIR
)/usr
/bin
58 install -m
644 $(OPENWRT_IPK_DIR
)/strace
/CONTROL
/control
$(STRACE_IPK_DIR
)/CONTROL
/control
59 install -m
755 $(STRACE_DIR
)/strace
$(STRACE_IPK_DIR
)/usr
/bin
/
60 $(STRIP
) $(STRACE_IPK_DIR
)/usr
/bin
/strace
61 cd
$(BUILD_DIR
); $(STAGING_DIR
)/bin
/ipkg-build
-c
-o root
-g root
$(STRACE_IPK_DIR
)
64 $(MAKE
) -C
$(STRACE_DIR
) clean
67 rm -rf
$(STRACE_DIR
) $(STRACE_IPK_DIR
)