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#
6131N/ABUILD_BITS= 64
6131N/Ainclude ../../make-rules/shared-macros.mk
6189N/A
6131N/ACOMPONENT_NAME= ccid
6131N/ACOMPONENT_VERSION= 1.4.20
6131N/ACOMPONENT_PROJECT_URL= https://pcsclite.alioth.debian.org/ccid.html
6131N/ACOMPONENT_DOWNLOAD_URL= https://alioth.debian.org/frs/download.php/file/4140/
6131N/ACOMPONENT_ARCHIVE_HASH= sha256:400cb865bb63eed6d7668b2d971cb4644038b9b7a6cda121450d0c6cf6251cbc
6131N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.bz2
6131N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
6131N/ACOMPONENT_BUGDB= library/smartcard
6189N/A
6131N/ATPNO = 25483
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
6189N/A# build against libusb-1.0 library
6189N/ACONFIGURE_ENV += LIBUSB_CFLAGS="-I$(USRINCDIR)/libusb-1.0"
6189N/ACONFIGURE_ENV += LIBUSB_LIBS="-lusb-1.0"
6131N/A
6189N/A# build against pcsc-lite library
6189N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
6189N/ACONFIGURE_ENV += LDFLAGS="-lpcsclite"
6131N/A
6189N/A# options needed for configure, otherwise default will install into /usr/local
6131N/ACONFIGURE_OPTIONS += --exec-prefix=$(USRLIBDIR64)
6131N/ACONFIGURE_OPTIONS += --enable-libusb
6131N/ACONFIGURE_OPTIONS += --enable-usbdropdir=$(USRLIBDIR64)/pcsc/drivers
6189N/A
6131N/AREQUIRED_PACKAGES += library/libusb-1
6131N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite