3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=d44b5dddebd8a7a7309aea6c36fda117
10 PKG_SOURCE_URL
:=http
://ftp.gnu.org
/pub
/gnu
/bc
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,BC
,bc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(eval
$(call PKG_template
,DC
,dc
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
28 --target
=$(GNU_TARGET_NAME
) \
29 --host
=$(GNU_TARGET_NAME
) \
30 --build
=$(GNU_HOST_NAME
) \
36 --datadir=/usr
/share \
37 --includedir=/usr
/include \
38 --infodir=/usr
/share
/info \
40 --libexecdir
=/usr
/lib \
41 --localstatedir
=/var \
42 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
50 $(PKG_BUILD_DIR
)/.built
:
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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
)
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
)
68 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
69 rm -f
$(PKG_BUILD_DIR
)/.built