Makefile revision 1586
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER START
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# The contents of this file are subject to the terms of the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Common Development and Distribution License (the "License").
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You may not use this file except in compliance with the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# or http://www.opensolaris.org/os/licensing.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# See the License for the specific language governing permissions
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# and limitations under the License.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# If applicable, add the following below this CDDL HEADER, with the
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# CDDL HEADER END
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte#
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../make-rules/shared-macros.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_NAME= stunnel
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_VERSION= 4.56
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_PROJECT_URL= http://www.stunnel.org/
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE_HASH= \
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte sha256:9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/ac4c4a30bd7a55b6687cbd62d864054c/$(COMPONENT_ARCHIVE)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_BUGDB= utility/stunnel
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../make-rules/prep.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../make-rules/configure.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forteinclude ../../make-rules/ips.mk
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# need /usr/perl5/bin on path to access pod2man perl script, used by
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# the build to create docs
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCOMPONENT_BUILD_ENV += PATH=/usr/perl5/bin:$(PATH)
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCPPFLAGS += "-DPIDFILE='\"/var/run/stunnel.pid\"'"
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte# used to generate the 64-bit interposer location
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCPPFLAGS += -DMACH64='\"$(MACH64)\"'
450396635f70344c58b6b1e4db38cf17ff34445cJohn Forte
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCONFIGURE_OPTIONS += --disable-fips
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCONFIGURE_OPTIONS += --enable-ipv6
450396635f70344c58b6b1e4db38cf17ff34445cJohn ForteCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
# used to generate LD_PRELOAD_* interposer pathnames
COMPONENT_BUILD_ARGS += pkglibdir=/usr/lib/stunnel
COMPONENT_PRE_INSTALL_ACTION = \
$(MKDIR) $(PROTOETCDIR)/stunnel ; \
$(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
ASLR_MODE = $(ASLR_ENABLE)
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk