6360N/A#
6360N/A# CDDL HEADER START
6360N/A#
6360N/A# The contents of this file are subject to the terms of the
6360N/A# Common Development and Distribution License (the "License").
6360N/A# You may not use this file except in compliance with the License.
6360N/A#
6360N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6360N/A# or http://www.opensolaris.org/os/licensing.
6360N/A# See the License for the specific language governing permissions
6360N/A# and limitations under the License.
6360N/A#
6360N/A# When distributing Covered Code, include this CDDL HEADER in each
6360N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6360N/A# If applicable, add the following below this CDDL HEADER, with the
6360N/A# fields enclosed by brackets "[]" replaced with your own identifying
6360N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6360N/A#
6360N/A# CDDL HEADER END
6360N/A
6360N/A#
6360N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6360N/A#
6360N/A
6360N/Ainclude ../../make-rules/shared-macros.mk
6360N/A
6360N/ABITS= 64
6360N/ACOMPONENT_NAME= ccid
6360N/ACOMPONENT_VERSION= 1.4.20
6360N/ACOMPONENT_PROJECT_URL= https://pcsclite.alioth.debian.org/ccid.html
6360N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6360N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6360N/ACOMPONENT_ARCHIVE_HASH= \
6360N/A sha256:400cb865bb63eed6d7668b2d971cb4644038b9b7a6cda121450d0c6cf6251cbc
6360N/ACOMPONENT_DOWNLOAD_URL= https://alioth.debian.org/frs/download.php/file/4140/
6360N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
6360N/ACOMPONENT_BUGDB= library/smartcard
6360N/A
6360N/ATPNO = 25483
6360N/A
6360N/Ainclude $(WS_MAKE_RULES)/prep.mk
6360N/Ainclude $(WS_MAKE_RULES)/configure.mk
6360N/Ainclude $(WS_MAKE_RULES)/ips.mk
6360N/A
6360N/APOD2MAN_PATH = /usr/perl5/$(PERL_VERSION)/bin
6360N/A
6360N/ACOMPONENT_BUILD_ENV += PATH="$(PATH):$(POD2MAN_PATH)"
6360N/A
6360N/A# build against libusb-1.0 library
6360N/ACONFIGURE_ENV += LIBUSB_CFLAGS="-I$(USRINCDIR)/libusb-1.0"
6360N/ACONFIGURE_ENV += LIBUSB_LIBS="-lusb-1.0"
6360N/A
6360N/A# builds against pcsc-lite library
6360N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
6360N/ACONFIGURE_ENV += LDFLAGS="-lpcsclite"
6360N/A
6360N/A# options needed for configure, otherwise default will install into /usr/local
6360N/ACONFIGURE_OPTIONS += --exec-prefix=$(USRLIBDIR64)
6360N/ACONFIGURE_OPTIONS += --enable-libusb
6360N/ACONFIGURE_OPTIONS += --enable-usbdropdir=$(USRLIBDIR64)/pcsc/drivers
6360N/A
6360N/A# common targets
6360N/Aconfigure: $(CONFIGURE_64)
6360N/A
6360N/Abuild: $(BUILD_64)
6360N/A
6360N/Ainstall: $(INSTALL_64)
6360N/A
6360N/Atest: $(NO_TEST)
6360N/A
6360N/A
6360N/AREQUIRED_PACKAGES += library/libusb-1
6360N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite
6360N/AREQUIRED_PACKAGES += system/library