remove obsolete manifests
[unleashed-userland.git] / components / environment-modules / Makefile
bloba4335ae6e5fca5bcd2a1157571249595ebd55bd5
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 Aurelien Larcher. All rights reserved.
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= environment-modules
19 COMPONENT_VERSION= 3.2.10
20 COMPONENT_FMRI= package/$(COMPONENT_NAME)
21 COMPONENT_PROJECT_URL= http://modules.sourceforge.net/
22 SOURCE_NAME= modules
23 COMPONENT_SRC= $(SOURCE_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
25 COMPONENT_ARCHIVE_HASH= \
26 sha256:e8403492a8d57ace6485813ad6cdaafe0a735b7d93b9435553a8d11d3fdd29a2
27 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/modules/files/Modules/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
28 COMPONENT_BUGDB= $(COMPONENT_FMRI)
30 COMPONENT_SUMMARY= Package for managing different versions of applications or metamodules to bundle a suite of applications
31 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
32 COMPONENT_LICENSE= GPLv2
35 include $(WS_MAKE_RULES)/prep.mk
36 include $(WS_MAKE_RULES)/configure.mk
37 include $(WS_MAKE_RULES)/ips.mk
40 CONFIGURE_PREFIX= $(USRLIBDIR)
42 CONFIGURE_DEFAULT_DIRS= no
44 # Need to workaround a bug in the install system: specify the bindir path
45 CONFIGURE_OPTIONS+= --bindir=$(CONFIGURE_PREFIX)/Modules/$(COMPONENT_VERSION)/bin
46 CONFIGURE_OPTIONS+= --mandir=$(USRSHAREMANDIR)
47 CONFIGURE_OPTIONS+= --enable-versioning
48 CONFIGURE_OPTIONS+= --enable-logging
49 CONFIGURE_OPTIONS+= --with-module-path=$(MODULE_PATH)
50 CONFIGURE_OPTIONS+= --with-version-path=$(MODULE_VERSIONS_PATH)
53 build: $(BUILD_32)
55 install: $(INSTALL_32)
56 $(MKDIR) $(PROTO_DIR)$(BASH_COMPLETIONS_PATH);
57 $(CP) $(PROTO_DIR)$(CONFIGURE_PREFIX)/Modules/$(COMPONENT_VERSION)/init/bash_completion \
58 $(PROTO_DIR)$(BASH_COMPLETIONS_PATH)/modules;
59 $(MKDIR) $(PROTOETCDIR)/profile.d;
60 $(CP) files/modules.sh $(PROTOETCDIR)/profile.d;
62 test: $(NO_TESTS)
65 BUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
67 include $(WS_MAKE_RULES)/depend.mk