3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=c7817035dc41cb02e7cfb565cf9b7401
11 PKG_SOURCE_URL
:=http
://microcom.port5.com
/
12 PKG_SOURCE
:=m
$(PKG_FILEVERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,MICROCOM
,microcom
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.prepared
:
22 rm -rf
$(PKG_BUILD_DIR
)
23 mkdir
-p
$(PKG_BUILD_DIR
)
24 # the .tar.gz is different - no subdirectory, so do this manually
25 zcat
$(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(PKG_BUILD_DIR
) $(TAR_OPTIONS
) -
28 $(PKG_BUILD_DIR
)/.configured
:
29 cp
$(PKG_BUILD_DIR
)/Makefile
$(PKG_BUILD_DIR
)/Makefile.tmp
30 sed
's~gcc~$$(CC)~' $(PKG_BUILD_DIR
)/Makefile.tmp
> $(PKG_BUILD_DIR
)/Makefile
33 $(PKG_BUILD_DIR
)/.built
:
34 $(MAKE
) -C
$(PKG_BUILD_DIR
) CC
=$(TARGET_CC
)
38 install -d
-m0755
$(IDIR_MICROCOM
)/usr
/bin
39 install -m0755
$(PKG_BUILD_DIR
)/microcom
$(IDIR_MICROCOM
)/usr
/bin
40 $(RSTRIP
) $(IDIR_MICROCOM
)
41 $(IPKG_BUILD
) $(IDIR_MICROCOM
) $(PACKAGE_DIR
)