2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_LICENSE
:=BSD-2-Clause
15 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
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
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-src-
$(PKG_VERSION
)
26 include $(INCLUDE_DIR
)/package.mk
31 SUBMENU
:=Version Control Systems
32 TITLE
:=Simple distributed software configuration management
33 URL
:=http
://www.fossil-scm.org
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.
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" \
47 define Build
/Configure
51 $(call Build
/Compile
/Default
, \
52 -f Makefile.classic
$(MAKE_FLAGS
) all \
59 define Package
/fossil
/conffiles
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
72 $(eval
$(call BuildPackage
,fossil
))