Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # $Id: Makefile 7006 2007-04-19 12:06:39Z kaloz $
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=foxboard-utils
  10. PKG_VERSION:=1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=foxboard-utils.tar.bz2
  13. PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
  14. PKG_MD5SUM:=
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/foxboard-utils
  18. SECTION:=utils
  19. CATEGORY:=Base system
  20. TITLE:=Foxboard base tools
  21. URL:=http://www.acmesystems.it
  22. DEPENDS:=@TARGET_etrax
  23. endef
  24. define Package/foxboard-utils/description
  25. This package contains a collection of tools for configuring the foxboard
  26. gpio pins/leds.
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)"
  30. $(MAKE) -C $(PKG_BUILD_DIR) PREFIX="$(PKG_INSTALL_DIR)" install
  31. endef
  32. define Package/foxboard-utils/install
  33. $(INSTALL_DIR) $(1)/
  34. $(CP) $(PKG_INSTALL_DIR)/* $(1)
  35. mkdir -p $(1)/www/cgi-bin
  36. cd $(1)/www/cgi-bin; ln -s ../../bin/editcgi.cgi .
  37. endef
  38. $(eval $(call BuildPackage,foxboard-utils))