Deleted bogus spaces, closes #198
[openwrt.git] / openwrt / package / strace / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=strace
6 PKG_VERSION:=4.5.11
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=28335e15c83456a3db055a0a0efcb4fe
9
10 PKG_SOURCE_URL:=@SF/strace
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,STRACE,strace,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
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" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 $(DISABLE_NLS) \
45 $(DISABLE_LARGEFILE) \
46 );
47 touch $@
48
49 $(PKG_BUILD_DIR)/.built:
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 CC=$(TARGET_CC)
52 touch $@
53
54 $(IPKG_STRACE):
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)
59
60 mostlyclean:
61 $(MAKE) -C $(PKG_BUILD_DIR) clean
62 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.048139 seconds and 5 git commands to generate.