You will have to fix your "zfone.mk" in the fist place ;-)
Code:
$(call PKG_INIT_BIN, 0.1.1)
$(PKG)_SOURCE:=[B]empty[/B]-$($(PKG)_VERSION).tar.gz
$(PKG)_SITE:=@SF/http://www.pcfone.com/software/zfone
is probably not what you want.
It will look for "
empty-0.1.1.tar.gz" (fist in "dl" folder, so this is where to put your source to answer your first question). If its not found there, it will try to download it from souceforge with a "strange" packet name (@SF/ is an makro to download a packet from an souceforge mirror).
So, you might try
Code:
$(call PKG_INIT_BIN, 0.1.1)
$(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz
$(PKG)_SITE:=http://www.pcfone.com/software/zfone
If sourcefile "zfone-0.1.1.tar.gz" can be downloaded from "http://www.pcfone.com/software/zfone" (or this file is in "dl"-folder).
You should be able to change this according to your needs, I think.
You might also call some script from .mk-File eg like this (not tested):
Code:
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
$($(PKG)_DIR)/install.sh ; \
$(SUBMAKE) -C $(ZFONE_DIR) \
....
But make sure, it works as expected, even when cross-compiling and if called from outside the directory.
I would suggest to do the extracting of tar files on your own (untar it in zfone.mk by calling "tar ..." instead of calling "install.sh").
Joerg