vim: update to 9.1.0984
[oi-userland.git] / components / library / java-jss / Makefile
blobbfa57d2a9d82c3047b8dd8702744521c1bba4d53
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2011, Andrzej Szeszo
13 # Copyright 2013, Jon Tibble
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= jss
19 COMPONENT_VERSION= 4.3.1
20 COMPONENT_REVISION= 1
21 COMPONENT_SUMMARY= Network Security Services for Java (JSS)
22 COMPONENT_PROJECT_URL= https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/JSS
23 COMPONENT_SRC= mozilla
24 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.bz2
25 COMPONENT_ARCHIVE_HASH= sha256:8d3e848f018fca1a2e5b75f3231546b17923df10002091f7dfa2e53cf6f7a183
26 COMPONENT_ARCHIVE_URL= https://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS_4_3_1_RTM/src/$(COMPONENT_ARCHIVE)
27 COMPONENT_FMRI= library/java/jss
28 COMPONENT_CLASSIFICATION= System/Services
29 COMPONENT_LICENSE= MPL 1.1/GPL 2.0/LGPL 2.1
30 COMPONENT_LICENSE_FILE= java-jss.license
33 # Enable compiler optimizations and disable debugging code
34 COMPONENT_BUILD_ENV += BUILD_OPT=1
36 # Generate symbolic info for debuggers
37 COMPONENT_BUILD_ENV += XCFLAGS="-g"
38 COMPONENT_BUILD_ENV += NS_USE_GCC=1
40 COMPONENT_BUILD_ENV += PATH=$(GCC_ROOT)/bin:$(PATH)
41 COMPONENT_BUILD_ENV += PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
42 COMPONENT_BUILD_ENV += PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
44 MPS.32=/usr/lib/mps
45 MPS.64=/usr/lib/mps/$(MACH64)
46 COMPONENT_BUILD_ENV += NSPR_INCLUDE_DIR=/usr/include/mps
47 COMPONENT_BUILD_ENV += NSPR_LIB_DIR=$(MPS.$(BITS))
48 COMPONENT_BUILD_ENV += NSS_INCLUDE_DIR=/usr/include/mps
49 COMPONENT_BUILD_ENV += NSS_LIB_DIR=$(MPS.$(BITS))
50 COMPONENT_BUILD_ENV += JAVA_HOME=$(JAVA_HOME)
52 COMPONENT_BUILD_ENV.64 += USE_64=1
53 COMPONENT_BUILD_ENV += $(COMPONENT_BUILD_ENV.$(BITS))
55 include $(WS_MAKE_RULES)/prep.mk
56 include $(WS_MAKE_RULES)/justmake.mk
57 include $(WS_MAKE_RULES)/ips.mk
59 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
60 $(RM) -r $(@D) ; $(MKDIR) $(@D)
61 $(CLONEY) $(SOURCE_DIR) $(@D)
62 $(COMPONENT_PRE_BUILD_ACTION)
63 (cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) $(GMAKE) -C security/coreconf)
64 (cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) $(GMAKE) -C security/jss)
65 (cd $(@D); $(ENV) $(COMPONENT_BUILD_ENV) $(GMAKE) -C security/jss javadoc)
66 $(COMPONENT_POST_BUILD_ACTION)
67 $(TOUCH) $@
69 build: $(BUILD_32_and_64)
71 install: build
72 $(MKDIR) -p $(PROTO_DIR)/usr/lib/mps
73 $(MKDIR) -p $(PROTO_DIR)/usr/lib/mps/$(MACH64)
74 $(MKDIR) -p $(PROTO_DIR)/usr/share/lib/mps
75 $(MKDIR) -p $(PROTO_DIR)/usr/share/lib/mps/$(MACH64)
76 $(INSTALL) $(BUILD_DIR_32)/security/jss/lib/SunOS5.11_*_OPT.OBJ/libjss4.so $(PROTO_DIR)/usr/lib/mps
77 $(INSTALL) $(BUILD_DIR_64)/security/jss/lib/SunOS5.11_*_OPT.OBJ/libjss4.so $(PROTO_DIR)/usr/lib/mps/$(MACH64)
78 $(INSTALL) $(BUILD_DIR_32)/dist/xpclass.jar $(PROTO_DIR)/usr/share/lib/mps
79 $(INSTALL) $(BUILD_DIR_64)/dist/xpclass.jar $(PROTO_DIR)/usr/share/lib/mps/$(MACH64)
80 /usr/bin/elfedit -e 'dyn:value -s RPATH "/usr/lib/mps"' $(PROTO_DIR)/usr/lib/mps/libjss4.so
81 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "/usr/lib/mps"' $(PROTO_DIR)/usr/lib/mps/libjss4.so
82 /usr/bin/elfedit -e 'dyn:value -s RPATH "/usr/lib/mps/$(MACH64)"' $(PROTO_DIR)/usr/lib/mps/$(MACH64)/libjss4.so
83 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "/usr/lib/mps/$(MACH64)"' $(PROTO_DIR)/usr/lib/mps/$(MACH64)/libjss4.so
85 REQUIRED_PACKAGES += developer/java/openjdk8
86 REQUIRED_PACKAGES += library/nspr
87 REQUIRED_PACKAGES += system/library
88 REQUIRED_PACKAGES += system/library/mozilla-nss