Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (C) 2006-2008 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:=e2fsprogs
  9. PKG_VERSION:=1.40.11
  10. PKG_MD5SUM:=004cea70d724fdc7f1a952dffe4c9db8
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@SF/e2fsprogs
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Host/Configure
  16. $(call Host/Configure/Default,\
  17. --enable-shared \
  18. --enable-static \
  19. --disable-rpath \
  20. --enable-elf-shlibs \
  21. --disable-dynamic-e2fsck \
  22. --disable-tls \
  23. --disable-uuidd \
  24. --without-libiconv-prefix \
  25. --without-libintl-prefix \
  26. )
  27. endef
  28. define Host/Compile
  29. $(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid libuuid.a
  30. endef
  31. define Host/Install
  32. $(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/uuid}
  33. $(CP) $(HOST_BUILD_DIR)/lib/uuid/uuid.h $(STAGING_DIR_HOST)/include/uuid/
  34. $(CP) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
  35. endef
  36. define Host/Clean
  37. rm -f $(STAGING_DIR_HOST)/include/uuid/uuid.h
  38. rm -f $(STAGING_DIR_HOST)/lib/uuid/libuuid.*
  39. $(call Host/Clean/Default)
  40. endef
  41. $(eval $(call HostBuild))