Add libelf dependency, add disk and exec features to snmpd, add install-dev stuff
[openwrt.git] / package / microcom / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=microcom
6 PKG_VERSION:=1.02
7 PKG_FILEVERSION:=102
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=c7817035dc41cb02e7cfb565cf9b7401
10
11 PKG_SOURCE_URL:=http://microcom.port5.com/
12 PKG_SOURCE:=m$(PKG_FILEVERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,MICROCOM,microcom,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.prepared:
23 rm -rf $(PKG_BUILD_DIR)
24 mkdir -p $(PKG_BUILD_DIR)
25 # the .tar.gz is different - no subdirectory, so do this manually
26 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS) -
27 touch $@
28
29 $(PKG_BUILD_DIR)/.configured:
30 cp $(PKG_BUILD_DIR)/Makefile $(PKG_BUILD_DIR)/Makefile.tmp
31 sed 's~gcc~$$(CC)~' $(PKG_BUILD_DIR)/Makefile.tmp > $(PKG_BUILD_DIR)/Makefile
32 touch $@
33
34 $(PKG_BUILD_DIR)/.built:
35 $(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC)
36 touch $@
37
38 $(IPKG_MICROCOM):
39 install -d -m0755 $(IDIR_MICROCOM)/usr/bin
40 install -m0755 $(PKG_BUILD_DIR)/microcom $(IDIR_MICROCOM)/usr/bin
41 $(RSTRIP) $(IDIR_MICROCOM)
42 $(IPKG_BUILD) $(IDIR_MICROCOM) $(PACKAGE_DIR)
43
This page took 0.047917 seconds and 5 git commands to generate.