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.

70 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.33
  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:=http://www.fossil-scm.org/download/
  15. PKG_MD5SUM:=53f8145084a2065d6cb734980c172c7e
  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. undefine Build/Configure
  37. define Build/Compile
  38. $(call Build/Compile/Default, \
  39. -f Makefile.classic $(MAKE_FLAGS) all \
  40. )
  41. endef
  42. undefine Build/Install
  43. define Package/fossil/conffiles
  44. /etc/config/fossil
  45. endef
  46. define Package/fossil/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/fossil.init $(1)/etc/init.d/fossil
  51. $(INSTALL_DIR) $(1)/etc/config
  52. $(INSTALL_CONF) ./files/fossil.config $(1)/etc/config/fossil
  53. endef
  54. $(eval $(call BuildPackage,fossil))