unleashed-userland README
[unleashed-userland.git] / components / fsvs / Makefile
blobdbf42c6c68157268bbae20ad7d8c8cb1e8593afc
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 Alexander Pyhalov. All rights reserved.
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= fsvs
19 COMPONENT_VERSION= 1.2.5
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:0c3618963dddf6b2e58c814aa91d141e758aeedd7071320a45b8ffaedb3adf78
25 COMPONENT_ARCHIVE_URL= \
26 http://download.fsvs-software.org/$(COMPONENT_ARCHIVE)
27 COMPONENT_PROJECT_URL = http://fsvs.tigris.org/
29 PSHAREMAN1= $(PROTO_DIR)/usr/share/man/man1
30 PSHAREMAN5= $(PROTO_DIR)/usr/share/man/man5
32 include ../../make-rules/prep.mk
33 include ../../make-rules/configure.mk
34 include ../../make-rules/ips.mk
36 CFLAGS += -I/usr/include/pcre/
37 CFLAGS += -I/usr/include/svn/
38 CFLAGS += -I/usr/apr-util/include/
39 CPPFLAGS += -I/usr/include/pcre/
40 LDFLAGS += -R/usr/lib/svn -R/usr/apr-util/lib -R/usr/apr/lib
42 CONFIGURE_OPTIONS += --with-aprinc=/usr/apr/include
43 CONFIGURE_OPTIONS += --with-aprlib=/usr/apr/lib
44 CONFIGURE_OPTIONS += --with-aprutillib=/usr/apr-util/lib
45 CONFIGURE_OPTIONS += --with-svnlib=/usr/lib/svn
46 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
48 COMPONENT_PREP_ACTION = (cd $(@D) && autoconf)
49 COMPONENT_PRE_CONFIGURE_ACTION = (cp -a $(SOURCE_DIR)/* $(@D))
51 COMPONENT_POST_INSTALL_ACTION = ( mkdir -p $(PROTO_DIR)/usr/share/man/man1; \
52 mkdir -p $(PROTO_DIR)/usr/share/man/man5; \
53 cp $(SOURCE_DIR)/doc/*.1 $(PROTO_DIR)/usr/share/man/man1; \
54 cp $(SOURCE_DIR)/doc/*.5 $(PROTO_DIR)/usr/share/man/man5)
56 install: $(INSTALL_32)
58 build: $(BUILD_32)
60 install: $(INSTALL_32)