fix hostapd (add missed changes from [3564])
[openwrt.git] / package / bc / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bc
6 PKG_VERSION:=1.06
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
9
10 PKG_SOURCE_URL:=http://ftp.gnu.org/pub/gnu/bc
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,BC,bc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19 $(eval $(call PKG_template,DC,dc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_NLS) \
46 $(DISABLE_LARGEFILE) \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 CC=$(TARGET_CC)
53 touch $@
54
55 $(IPKG_BC):
56 mkdir -p $(IDIR_BC)/usr/bin
57 install -m0755 $(PKG_BUILD_DIR)/bc/bc $(IDIR_BC)/usr/bin/bc
58 $(STRIP) $(IDIR_BC)/usr/bin/*
59 $(IPKG_BUILD) $(IDIR_BC) $(PACKAGE_DIR)
60
61 $(IPKG_DC):
62 mkdir -p $(IDIR_DC)/usr/bin
63 install -m0755 $(PKG_BUILD_DIR)/dc/dc $(IDIR_DC)/usr/bin/dc
64 $(STRIP) $(IDIR_DC)/usr/bin/*
65 $(IPKG_BUILD) $(IDIR_DC) $(PACKAGE_DIR)
66
67 mostlyclean:
68 $(MAKE) -C $(PKG_BUILD_DIR) clean
69 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.050037 seconds and 5 git commands to generate.