PageRenderTime 54ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/net/fossil/Makefile

https://gitlab.com/jiangming1399/packages
Makefile | 72 lines | 50 code | 16 blank | 6 comment | 1 complexity | 876918443f296b0a46ff17b5f1bec8ce MD5 | raw file
  1. #
  2. # Copyright (C) 2015 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:=fossil
  9. PKG_VERSION:=1.34
  10. PKG_RELEASE:=2
  11. PKG_LICENSE:=BSD-2-Clause
  12. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  13. PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://www.fossil-scm.org/index.html/uv/download
  15. PKG_HASH:=53a6b83e878feced9ac7705f87e5b6ea82727314e3e19202ae1c46c7e4dba49f
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-src-$(PKG_VERSION)
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/fossil
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Version Control Systems
  24. TITLE:=Simple distributed software configuration management
  25. URL:=http://www.fossil-scm.org
  26. DEPENDS:=+zlib
  27. endef
  28. define Package/fossil/description
  29. Fossil is a distributed version control system, bug tracking system
  30. and wiki software server for use in software development.
  31. endef
  32. MAKE_FLAGS := \
  33. TCC="$(TARGET_CC)" \
  34. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DFOSSIL_ENABLE_JSON" \
  35. LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath=$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -lm" \
  36. define Build/Configure
  37. endef
  38. define Build/Compile
  39. $(call Build/Compile/Default, \
  40. -f Makefile.classic $(MAKE_FLAGS) all \
  41. )
  42. endef
  43. define Build/Install
  44. endef
  45. define Package/fossil/conffiles
  46. /etc/config/fossil
  47. endef
  48. define Package/fossil/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/fossil.init $(1)/etc/init.d/fossil
  53. $(INSTALL_DIR) $(1)/etc/config
  54. $(INSTALL_CONF) ./files/fossil.config $(1)/etc/config/fossil
  55. endef
  56. $(eval $(call BuildPackage,fossil))