disable non-essential packages by default if DEVELOPER is unset on make menuconfig
[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 IPKG_STRACE:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 IDIR_STRACE:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME)
18 INFO_STRACE:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list
19
20 $(DL_DIR)/$(PKG_SOURCE):
21 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
22
23 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
24 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
25 touch $(PKG_BUILD_DIR)/.prepared
26
27 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
28 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS)" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 $(DISABLE_NLS) \
52 $(DISABLE_LARGEFILE) \
53 );
54 touch $(PKG_BUILD_DIR)/.configured
55
56 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.configured
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 CC=$(TARGET_CC)
59
60 $(IPKG_STRACE): $(PKG_BUILD_DIR)/$(PKG_NAME)
61 $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_STRACE) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
62 mkdir -p $(IDIR_STRACE)/usr/sbin
63 cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/
64 $(STRIP) $(IDIR_STRACE)/usr/sbin/*
65 mkdir -p $(PACKAGE_DIR)
66 $(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR)
67
68 $(INFO_STRACE): $(IPKG_STRACE)
69 $(IPKG) install $(IPKG_STRACE)
70
71 source: $(DL_DIR)/$(PKG_SOURCE)
72 prepare: $(PKG_BUILD_DIR)/.prepared
73 compile: $(IPKG_STRACE)
74 install: $(INFO_STRACE)
75
76 clean:
77 rm -rf $(PKG_BUILD_DIR) $(IPKG_STRACE)
This page took 0.05327 seconds and 5 git commands to generate.