Makefile revision 6430
1545N/A#
3909N/A# CDDL HEADER START
1545N/A#
1545N/A# The contents of this file are subject to the terms of the
1545N/A# Common Development and Distribution License (the "License").
1545N/A# You may not use this file except in compliance with the License.
2362N/A#
1545N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
1545N/A# See the License for the specific language governing permissions
1545N/A# and limitations under the License.
1545N/A#
1545N/A# When distributing Covered Code, include this CDDL HEADER in each
1545N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1545N/A# If applicable, add the following below this CDDL HEADER, with the
1545N/A# fields enclosed by brackets "[]" replaced with your own identifying
1545N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1545N/A#
1545N/A# CDDL HEADER END
1545N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1545N/A#
1545N/A# For this component, prefer 32-bit over 64-bit for now until sufficient
1545N/A# testing has been performed.
1674N/ABUILD_BITS= 32_and_64
1545N/Ainclude ../../make-rules/shared-macros.mk
1545N/A
1545N/ACOMPONENT_NAME= pam_pkcs11
1545N/ACOMPONENT_VERSION= 0.6.8
1545N/ACOMPONENT_PROJECT_URL= https://sourceforge.net/projects/opensc/
1545N/ACOMPONENT_ARCHIVE_HASH= \
1545N/A sha256:9d942e542ef35d0e1f990d9ff5bf9df0af84c828ed081add2eb1b4d84f0efbda
1545N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1545N/ACOMPONENT_BUGDB= library/pam-pkcs11
1545N/A
1545N/ATPNO= 28155
1545N/A
1545N/ATEST_TARGET= $(NO_TESTS)
1545N/Ainclude $(WS_MAKE_RULES)/common.mk
1545N/A
1545N/A# Force regeneration of ancient autoconf scripts to fix 64-bit build detection
1545N/A# and due to patches to autoconf and automake files.
1545N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
1545N/A
1545N/AOPENSSL_LIBS= -lssl -lcrypto
1545N/Aifeq ($(OS_VERSION),5.11)
1545N/AOPENSSL_LIBS += -lsocket -lnsl
1545N/Aendif
1545N/A
1545N/ACONFIGURE_BINDIR.32= $(USRLIB.32)/pam_pkcs11
1545N/ACONFIGURE_BINDIR.64= $(USRLIB.64)/pam_pkcs11
1545N/ACPPFLAGS += -I$(USRINCDIR)/openldap
1545N/ACONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)/security
1545N/ACONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
1545N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
1545N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
1545N/ACONFIGURE_OPTIONS += --with-confdir=/etc/security/pam_pkcs11
1545N/ACONFIGURE_OPTIONS += --docdir=/etc/security/pam_pkcs11
1545N/ACONFIGURE_OPTIONS += OPENSSL_LIBS="$(OPENSSL_LIBS)"
1545N/ACONFIGURE_OPTIONS += PCSC_CFLAGS="-I /usr/include/PCSC"
1545N/ACONFIGURE_OPTIONS.32 += --with-pcsclite=no
1545N/ACONFIGURE_OPTIONS.64 += --with-pcsclite=yes
1545N/A
1545N/A
1545N/AASLR_MODE = $(ASLR_ENABLE)
1545N/A
1545N/AREQUIRED_PACKAGES += library/openldap
1545N/AREQUIRED_PACKAGES += library/security/openssl
1545N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite
1545N/AREQUIRED_PACKAGES += shell/bash
1545N/AREQUIRED_PACKAGES += system/network/ldap/openldap
1545N/A