jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / uwimap / Makefile
blobf0438bdfce23414f276cd98d042383e07c67bdb5
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright 2011 EveryCity Ltd. All rights reserved.
24 OPENSSL_VERSION= 3.1
25 include ../../../make-rules/shared-macros.mk
27 COMPONENT_NAME= imap
28 COMPONENT_VERSION= 2007f
29 COMPONENT_REVISION= 1
30 IPS_COMPONENT_VERSION= 0.2007.6
31 COMPONENT_PROJECT_URL= http://www.washington.edu/imap/
32 COMPONENT_CLASSIFICATION=System/Libraries
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
35 COMPONENT_ARCHIVE_HASH= sha256:3d9383e3ccb5ac6e273aa76112671b7ffdd8bef6eb7df9b5de7b7e61024f8dc5
36 COMPONENT_ARCHIVE_URL= https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$(COMPONENT_ARCHIVE)
37 COMPONENT_FMRI= library/uw-imap
38 COMPONENT_SUMMARY= University of Washington IMAP library
39 COMPONENT_LICENSE= Apache v2.0
40 COMPONENT_LICENSE_FILE= LICENSE.txt
42 include $(WS_MAKE_RULES)/prep.mk
43 include $(WS_MAKE_RULES)/justmake.mk
44 include $(WS_MAKE_RULES)/ips.mk
46 PATH=$(PATH.gnu)
48 INSTALL_COMMON=$(BUILD_DIR)/.installed
50 CFLAGS += -D__EXTENSIONS__
52 # Provide location for openssl 3.1 headers/libraries
53 # (Also hardcoded in patch file: z_01ec_makefile.patch )
54 CFLAGS += -I$(OPENSSL_INCDIR)
55 LDFLAGS += -L$(OPENSSL_LIBDIR)
57 # Parallel build fails
58 COMPONENT_BUILD_ARGS=
60 COMPONENT_BUILD_ARGS += CC="$(CC)"
61 COMPONENT_BUILD_ARGS += IP=6
62 COMPONENT_BUILD_ARGS += SHLIBBASE=c-client
63 COMPONENT_BUILD_ARGS += SHLIBNAME=libc-client.so.1
64 COMPONENT_BUILD_ARGS += EXTRACFLAGS="$(CFLAGS)"
65 COMPONENT_BUILD_ARGS += EXTRALDFLAGS="$(LDFLAGS)"
67 COMPONENT_BUILD_TARGETS = ec
69 $(INSTALL_COMMON): $(BUILD_32_and_64)
70 $(MKDIR) -p $(PROTO_DIR)/usr/lib/$(MACH64)
71 $(MKDIR) -p $(PROTO_DIR)/usr/include/c-client
72 $(CP) $(BUILD_DIR_32)/c-client/libc-client.so.1 $(PROTO_DIR)/usr/lib/
73 $(CP) $(BUILD_DIR_64)/c-client/libc-client.so.1 $(PROTO_DIR)/usr/lib/$(MACH64)
74 $(LN) -fs libc-client.so.1 $(PROTO_DIR)/usr/lib/libc-client.so
75 $(LN) -fs libc-client.so.1 $(PROTO_DIR)/usr/lib/$(MACH64)/libc-client.so
76 $(CP) $(SOURCE_DIR)/src/osdep/unix/*.h $(PROTO_DIR)/usr/include/c-client/
77 $(CP) $(SOURCE_DIR)/src/c-client/*.h $(PROTO_DIR)/usr/include/c-client/
78 $(CP) $(BUILD_DIR_32)/c-client/linkage.h $(PROTO_DIR)/usr/include/c-client/
79 $(CP) $(BUILD_DIR_32)/c-client/osdep.h $(PROTO_DIR)/usr/include/c-client/
80 $(TOUCH) $@
82 build: $(BUILD_32_and_64)
84 install: $(INSTALL_COMMON)
86 test: $(NO_TESTS)
88 # Auto-generated dependencies
89 REQUIRED_PACKAGES += $(OPENSSL_PKG)
90 REQUIRED_PACKAGES += system/library