gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / stunnel / Makefile
blob46f1bdfa771086a2a011437d4dc0867b907af28d
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
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= stunnel
29 COMPONENT_VERSION= 4.56
30 COMPONENT_REVISION= 1
31 COMPONENT_PROJECT_URL= http://www.stunnel.org/
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
34 COMPONENT_ARCHIVE_HASH= \
35 sha256:9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293
37 COMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/ac4c4a30bd7a55b6687cbd62d864054c/$(COMPONENT_ARCHIVE)
39 COMPONENT_BUGDB= utility/stunnel
41 include ../../make-rules/prep.mk
42 include ../../make-rules/configure.mk
43 include ../../make-rules/ips.mk
45 # need /usr/perl5/bin on path to access pod2man perl script, used by
46 # the build to create docs.
47 # Perl 5.10 pod2man does not recognize "-u" argument.
48 COMPONENT_BUILD_ENV += PATH=/usr/perl5/5.16/bin:$(PATH)
50 CPPFLAGS += "-DPIDFILE='\"/var/run/stunnel.pid\"'"
52 # used to generate the 64-bit interposer location
53 CPPFLAGS += -DMACH64='\"$(MACH64)\"'
55 CONFIGURE_OPTIONS += --disable-fips
56 CONFIGURE_OPTIONS += --enable-ipv6
57 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
58 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
60 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
62 # used to generate LD_PRELOAD_* interposer pathnames
63 COMPONENT_BUILD_ARGS += pkglibdir=/usr/lib/stunnel
65 COMPONENT_PRE_INSTALL_ACTION = \
66 $(MKDIR) $(PROTOETCDIR)/stunnel ; \
67 $(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
69 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
71 ASLR_MODE = $(ASLR_ENABLE)
73 # common targets
74 build: $(BUILD_32_and_64)
76 install: $(INSTALL_32_and_64)
78 test: $(NO_TESTS)
80 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
82 include ../../make-rules/depend.mk