libsm: update to 1.2.5
[oi-userland.git] / components / sysutils / fsvs / Makefile
blob2cf51a1078660bbe91dbdc817f57ccdd443cd299
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013-2017 Alexander Pyhalov
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= fsvs
19 COMPONENT_VERSION= 1.2.7
20 COMPONENT_SUMMARY= FSVS backup/restore/versioning/deployment tool
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
23 COMPONENT_ARCHIVE_HASH= \
24 sha256:9bf45a193f23017a9126ccc333b7302467e042a8ea9b57c1a7d31fbb2dff7cc2
25 COMPONENT_ARCHIVE_URL= \
26 http://download.fsvs-software.org/$(COMPONENT_ARCHIVE)
27 COMPONENT_PROJECT_URL= http://fsvs.tigris.org/
28 COMPONENT_FMRI= backup/fsvs
29 COMPONENT_CLASSIFICATION= Applications/System Utilities
30 COMPONENT_LICENSE= GPLv3
31 COMPONENT_LICENSE_FILE= LICENSE
33 PSHAREMAN1= $(PROTO_DIR)/usr/share/man/man1
34 PSHAREMAN5= $(PROTO_DIR)/usr/share/man/man5
36 include $(WS_MAKE_RULES)/prep.mk
37 include $(WS_MAKE_RULES)/configure.mk
38 include $(WS_MAKE_RULES)/ips.mk
40 CFLAGS += -I/usr/include/pcre/
41 CFLAGS += -I/usr/include/svn/
42 CFLAGS += -I/usr/apr-util/include/
43 CPPFLAGS += -I/usr/include/pcre/
44 LDFLAGS += -R/usr/lib/svn -R/usr/apr-util/lib -R/usr/apr/lib
46 CONFIGURE_OPTIONS += --with-aprinc=/usr/apr/include
47 CONFIGURE_OPTIONS += --with-aprlib=/usr/apr/lib
48 CONFIGURE_OPTIONS += --with-aprutillib=/usr/apr-util/lib
49 CONFIGURE_OPTIONS += --with-svnlib=/usr/lib/svn
50 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
52 COMPONENT_PREP_ACTION = (cd $(@D) && autoconf)
53 COMPONENT_PRE_CONFIGURE_ACTION = (cp -a $(SOURCE_DIR)/* $(@D))
55 COMPONENT_POST_INSTALL_ACTION = ( mkdir -p $(PROTO_DIR)/usr/share/man/man1; \
56 mkdir -p $(PROTO_DIR)/usr/share/man/man5; \
57 cp $(SOURCE_DIR)/doc/*.1 $(PROTO_DIR)/usr/share/man/man1; \
58 cp $(SOURCE_DIR)/doc/*.5 $(PROTO_DIR)/usr/share/man/man5)
60 build: $(BUILD_32)
62 install: $(INSTALL_32)
64 test: $(NO_TEST)
66 REQUIRED_PACKAGES += developer/versioning/subversion
67 REQUIRED_PACKAGES += library/apr
68 REQUIRED_PACKAGES += library/apr-util
69 REQUIRED_PACKAGES += library/database/gdbm
70 REQUIRED_PACKAGES += library/pcre
71 REQUIRED_PACKAGES += system/library
72 REQUIRED_PACKAGES += text/gnu-diffutils