I wrote the Makefile for sphinxsbase ( https://sourceforge.net/projects/cmusph … xbase/0.8/ )
here is the makefile:
________________________________________________________________________________________________________________
#begin makefile
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=sphinxbase-0.8
PKG_RELEASE:=1
PKG_VERSION:=0.8
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/sphinxbase-0.8/Default
SECTION:=Am
CATEGORY:=Amir
# DEPENDS:=+
endef
define Package/sphinxbase-0.8
$(call Package/sphinxbase-0.8/Default)
TITLE:=sphinxbase-0.8
endef
define Package/sphinxbase-0.8/description
Open,configurate sound device or sources,
Read voice samples.
endef
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
SUBDIRS="$(PKG_BUILD_DIR)"
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
endef
define Package/sphinxbase-0.8/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR) $(1)/bin/
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/sphinxbase-0.8 $(1)/bin/
endef
define Build/Configure
$(call Build/Configure/Default,)
#$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef
$(eval $(call BuildPackage,sphinxbase-0.8))
#end makefile
________________________________________________________________________________________________________________
I runned the cross-compiling toolchaine by running the commande : "" make package/sphinxbase-0.8/compile V=99 ""
________________________________________________________________________________________________________________
!!!!!!!!!!!! but it end with errors: !!!!!!!!!!!!!!!!
make[4]: Leaving directory `/home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8'
make[3]: Leaving directory `/home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8'
touch /home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8/.built
mkdir -p /home/amir/Bureau/openwrt/bin/ramips/packages /home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8/ipkg-ramips/sphinxbase-0.8/CONTROL
install -d -m0755 /home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8/ipkg-ramips/sphinxbase-0.8/bin
install -m0755 /home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8 /home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8/ipkg-ramips/sphinxbase-0.8/bin/
install: omitting directory `/home/amir/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/sphinxbase-0.8'
make[2]: *** [/home/amir/Bureau/openwrt/bin/ramips/packages/sphinxbase-0.8_0.8-1_ramips.ipk] Error 1
make[2]: Leaving directory `/home/amir/Bureau/openwrt/package/sphinxbase-0.8'
make[1]: *** [package/sphinxbase-0.8/compile] Error 2
make[1]: Leaving directory `/home/amir/Bureau/openwrt'
make: *** [package/sphinxbase-0.8/compile] Error 2