Advertisement
Guest User

Makefile OpenWRT SphinxBase-0.8

a guest
Apr 10th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3.  
  4. PKG_NAME:=sphinxbase-0.8
  5. PKG_RELEASE:=1
  6. PKG_VERSION:=0.8
  7.  
  8. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  9.  
  10. include $(INCLUDE_DIR)/package.mk
  11.  
  12. define Package/sphinxbase-0.8/Default
  13.   SECTION:=Am
  14.   CATEGORY:=Amir
  15.   DEPENDS:=+pthread +m
  16. endef
  17.  
  18. define Package/sphinxbase-0.8
  19. $(call Package/sphinxbase-0.8/Default)
  20.   TITLE:=sphinxbase-0.8
  21. endef
  22.  
  23. define Package/sphinxbase-0.8/description
  24. Open,configurate sound device or sources,
  25. Read voice samples.
  26. endef
  27.  
  28. MAKE_OPTS:= \
  29.     ARCH="$(LINUX_KARCH)" \
  30.     CROSS_COMPILE="$(TARGET_CROSS)" \
  31.     SUBDIRS="$(PKG_BUILD_DIR)"
  32.  
  33. define Build/Prepare
  34.     mkdir -p $(PKG_BUILD_DIR)
  35.     $(CP) ./src/* $(PKG_BUILD_DIR)/
  36. endef
  37.  
  38. define Build/Compile
  39.     $(call Build/Configure)
  40.     $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  41. endef
  42.  
  43. define Package/sphinxbase-0.8/install
  44.     $(INSTALL_DIR) $(1)/bin
  45.     $(INSTALL_BIN) $(PKG_BUILD_DIR) $(1)/bin/
  46. #   $(INSTALL_BIN) $(PKG_BUILD_DIR)/sphinxbase-0.8 $(1)/bin/
  47. endef
  48.  
  49. define Build/Configure
  50.     $(call Build/Prepare)
  51.     $(call Build/Configure/Default,)
  52. #   $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
  53. endef
  54.  
  55. $(eval $(call BuildPackage,sphinxbase-0.8))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement