6359N/A#
6359N/A# CDDL HEADER START
6359N/A#
6359N/A# The contents of this file are subject to the terms of the
6359N/A# Common Development and Distribution License (the "License").
6359N/A# You may not use this file except in compliance with the License.
6359N/A#
6359N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6359N/A# or http://www.opensolaris.org/os/licensing.
6359N/A# See the License for the specific language governing permissions
6359N/A# and limitations under the License.
6359N/A#
6359N/A# When distributing Covered Code, include this CDDL HEADER in each
6359N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6359N/A# If applicable, add the following below this CDDL HEADER, with the
6359N/A# fields enclosed by brackets "[]" replaced with your own identifying
6359N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6359N/A#
6359N/A# CDDL HEADER END
6359N/A
6359N/A#
6359N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6359N/A#
6359N/A
6359N/Ainclude ../../make-rules/shared-macros.mk
6359N/A
6359N/ACOMPONENT_NAME= pcsc-lite
6359N/ACOMPONENT_VERSION= 1.8.14
6359N/ACOMPONENT_PROJECT_URL= http://pcsclite.alioth.debian.org/pcsclite.html
6359N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6359N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6359N/ACOMPONENT_ARCHIVE_HASH= sha256:b91f97806042315a41f005e69529cb968621f73f2ddfbd1380111a175b02334e
6359N/ACOMPONENT_ARCHIVE_URL= https://alioth.debian.org/frs/download.php/file/4138/$(COMPONENT_ARCHIVE)
6359N/ACOMPONENT_BUGDB= library/smartcard
6359N/A
6359N/ATPNO = 25484
6359N/A
6359N/Ainclude $(WS_MAKE_RULES)/prep.mk
6359N/Ainclude $(WS_MAKE_RULES)/configure.mk
6359N/Ainclude $(WS_MAKE_RULES)/ips.mk
6359N/A
6359N/APERL_VERSION = 5.12
6359N/APOD2MAN_PATH = /usr/perl5/$(PERL_VERSION)/bin
6359N/A
6359N/ACOMPONENT_BUILD_ENV += PATH="$(PATH):$(POD2MAN_PATH)"
6359N/A
6359N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
6359N/A
6359N/A# binary and shared object creation both require the libusb-1.0 library
6359N/ACONFIGURE_ENV += LIBUSB_CFLAGS="-I$(USRINCDIR)/libusb-1.0"
6359N/ACONFIGURE_ENV += LIBUSB_LIBS="-lusb-1.0"
6359N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
6359N/A
6359N/A# configure.ac related patch needs configure script re-creation
6359N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
6359N/A
6359N/A# enable ASLR for this component, lint warning against pcscd will occur if this is not set
6359N/AASLR_MODE=$(ASLR_ENABLE)
6359N/A
6359N/A# options needed for configure, otherwise default will install into /usr/local
6359N/ACONFIGURE_OPTIONS += --exec-prefix=$(USRLIBDIR64)
6626N/ACONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)
6359N/ACONFIGURE_OPTIONS += --enable-libusb
6359N/ACONFIGURE_OPTIONS += --enable-confdir=$(ETCDIR)/pcsc
6359N/ACONFIGURE_OPTIONS += --enable-usbdropdir=$(USRLIBDIR64)/pcsc/drivers
6359N/A
6359N/A# common targets
7125N/Aconfigure: $(CONFIGURE_32_and_64)
6359N/A
7125N/Abuild: $(BUILD_32_and_64)
6359N/A
7125N/Ainstall: $(INSTALL_32_and_64)
6359N/A
7125N/Atest: $(TEST_32_and_64)
6359N/A
6359N/A# required packages
6359N/AREQUIRED_PACKAGES += library/libusb-1
6359N/AREQUIRED_PACKAGES += shell/ksh93
6359N/AREQUIRED_PACKAGES += system/core-os
6359N/AREQUIRED_PACKAGES += system/library
6359N/AREQUIRED_PACKAGES += system/network