Makefile 933 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=csstidy
  3. PKG_RELEASE:=1
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL=https://github.com/jow-/csstidy-cpp.git
  6. PKG_SOURCE_DATE:=2021-06-13
  7. PKG_SOURCE_VERSION:=707feaec556c40c999514a598b1a1ea5b50826c6
  8. PKG_MIRROR_HASH:=c90cdb3ff2ecae469d86abf04f5631356b8a913e03f4537c491ea31cde5f0225
  9. PKG_LICENSE:=LGPL-2.1
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  12. include $(INCLUDE_DIR)/host-build.mk
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/csstidy
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=CSSTidy parser and optimiser
  18. DEPENDS:=+libstdcpp
  19. endef
  20. define Package/csstidy/install
  21. $(INSTALL_DIR) $(1)/usr/bin
  22. $(INSTALL_BIN) $(PKG_BUILD_DIR)/csstidy/csstidy $(1)/usr/bin/
  23. endef
  24. define Host/Install
  25. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
  26. $(INSTALL_BIN) $(HOST_BUILD_DIR)/csstidy/csstidy $(1)/bin/
  27. endef
  28. $(eval $(call HostBuild))
  29. $(eval $(call BuildPackage,csstidy))