1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=genext2fs
  9. PKG_VERSION:=1.5.0
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://codeload.github.com/bestouff/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
  12. PKG_HASH:=d3861e4fe89131bd21fbd25cf0b683b727b5c030c4c336fadcd738ada830aab0
  13. include $(INCLUDE_DIR)/host-build.mk
  14. HOST_CONFIGURE_ARGS = \
  15. --target=$(GNU_HOST_NAME) \
  16. --host=$(GNU_HOST_NAME) \
  17. --build=$(GNU_HOST_NAME) \
  18. --program-prefix="" \
  19. --program-suffix="" \
  20. --prefix=/usr \
  21. --exec-prefix=/usr \
  22. --bindir=/usr/bin \
  23. --sbindir=/usr/sbin \
  24. --libexecdir=/usr/lib \
  25. --sysconfdir=/etc \
  26. --datadir=/usr/share \
  27. --localstatedir=/var \
  28. --mandir=/usr/man \
  29. --infodir=/usr/info \
  30. define Host/Configure
  31. (cd $(HOST_BUILD_DIR); \
  32. ./autogen.sh \
  33. );
  34. $(call Host/Configure/Default)
  35. endef
  36. define Host/Compile
  37. $(MAKE) -C $(HOST_BUILD_DIR) \
  38. CFLAGS="$(HOST_CFLAGS)" \
  39. LDFLAGS="$(HOST_LDFLAGS)" \
  40. all
  41. endef
  42. define Host/Install
  43. install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
  44. endef
  45. define Host/Clean
  46. rm -f $(STAGING_DIR_HOST)/bin/genext2fs
  47. endef
  48. $(eval $(call HostBuild))