noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / net / fossil / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=fossil
11 PKG_VERSION:=1.34
12 PKG_RELEASE:=2
13
14 PKG_LICENSE:=BSD-2-Clause
15 PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
16
17 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_URL:=https://www.fossil-scm.org/index.html/uv/download
19 PKG_MD5SUM:=3d5a7da5c506a47784942236a788b29b
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-src-$(PKG_VERSION)
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/fossil
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=Version Control Systems
32 TITLE:=Simple distributed software configuration management
33 URL:=http://www.fossil-scm.org
34 DEPENDS:=+zlib
35 endef
36
37 define Package/fossil/description
38 Fossil is a distributed version control system, bug tracking system
39 and wiki software server for use in software development.
40 endef
41
42 MAKE_FLAGS := \
43 TCC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DFOSSIL_ENABLE_JSON" \
45 LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath=$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -lm" \
46
47 define Build/Configure
48 endef
49
50 define Build/Compile
51 $(call Build/Compile/Default, \
52 -f Makefile.classic $(MAKE_FLAGS) all \
53 )
54 endef
55
56 define Build/Install
57 endef
58
59 define Package/fossil/conffiles
60 /etc/config/fossil
61 endef
62
63 define Package/fossil/install
64 $(INSTALL_DIR) $(1)/usr/bin
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
66 $(INSTALL_DIR) $(1)/etc/init.d
67 $(INSTALL_BIN) ./files/fossil.init $(1)/etc/init.d/fossil
68 $(INSTALL_DIR) $(1)/etc/config
69 $(INSTALL_CONF) ./files/fossil.config $(1)/etc/config/fossil
70 endef
71
72 $(eval $(call BuildPackage,fossil))