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:=2018-12-20
  7. PKG_SOURCE_VERSION:=1d5620149ae35c0d49fb2014d4e63a23ecfb6f69
  8. PKG_MIRROR_HASH:=3210d475f6ae966d4dfcd3e1f7fcbf0ad9507a37878d50de015ffe795c1d160e
  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))