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
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
21 COMPONENT_FMRI
= package
/$(COMPONENT_NAME
)
22 COMPONENT_PROJECT_URL
= http
://modules.sourceforge.net
/
24 COMPONENT_SRC
= $(SOURCE_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:e8403492a8d57ace6485813ad6cdaafe0a735b7d93b9435553a8d11d3fdd29a2
28 COMPONENT_ARCHIVE_URL
= http
://sourceforge.net
/projects
/modules
/files
/Modules
/$(COMPONENT_SRC
)/$(COMPONENT_ARCHIVE
)
29 COMPONENT_BUGDB
= $(COMPONENT_FMRI
)
31 COMPONENT_SUMMARY
= Package for managing different versions of applications or metamodules to bundle a suite of applications
32 COMPONENT_LICENSE_FILE
= $(COMPONENT_NAME
).license
33 COMPONENT_LICENSE
= GPLv2
36 include $(WS_MAKE_RULES
)/prep.mk
37 include $(WS_MAKE_RULES
)/configure.mk
38 include $(WS_MAKE_RULES
)/ips.mk
41 CONFIGURE_PREFIX
= $(USRLIBDIR
)
43 CONFIGURE_DEFAULT_DIRS
= no
45 # Need to workaround a bug in the install system: specify the bindir path
46 CONFIGURE_OPTIONS
+= --bindir=$(CONFIGURE_PREFIX
)/Modules
/$(COMPONENT_VERSION
)/bin
47 CONFIGURE_OPTIONS
+= --mandir=$(USRSHAREMANDIR
)
48 CONFIGURE_OPTIONS
+= --enable-versioning
49 CONFIGURE_OPTIONS
+= --enable-logging
50 CONFIGURE_OPTIONS
+= --with-module-path
=$(MODULE_PATH
)
51 CONFIGURE_OPTIONS
+= --with-version-path
=$(MODULE_VERSIONS_PATH
)
56 install: $(INSTALL_32
)
57 $(MKDIR
) $(PROTO_DIR
)$(BASH_COMPLETIONS_PATH
);
58 $(CP
) $(PROTO_DIR
)$(CONFIGURE_PREFIX
)/Modules
/$(COMPONENT_VERSION
)/init
/bash_completion \
59 $(PROTO_DIR
)$(BASH_COMPLETIONS_PATH
)/modules
;
60 $(MKDIR
) $(PROTOETCDIR
)/profile.d
;
61 $(CP
) files
/modules.sh
$(PROTOETCDIR
)/profile.d
;
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES
+= SUNWcs
68 REQUIRED_PACKAGES
+= runtime
/tcl-8
69 REQUIRED_PACKAGES
+= system
/library
70 REQUIRED_PACKAGES
+= x11
/library
/libx11