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