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