You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.7 KiB

  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:=1
  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_MD5SUM:=3d5a7da5c506a47784942236a788b29b
  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" \
  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))