components/pcsc-lite/Makefile
changeset 6133 73641150a4de
child 6162 7ef63b78ab83
equal deleted inserted replaced
6132:7fb35b7d3c4d 6133:73641150a4de
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 
       
    21 #
       
    22 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
    23 #
       
    24 BUILD_BITS= 64
       
    25 include ../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=         pcsc-lite
       
    28 COMPONENT_VERSION=      1.8.14
       
    29 COMPONENT_PROJECT_URL=  http://pcsclite.alioth.debian.org/pcsclite.html
       
    30 COMPONENT_DOWNLOAD_URL= https://alioth.debian.org/frs/download.php/file/4138
       
    31 COMPONENT_ARCHIVE_HASH= sha256:b91f97806042315a41f005e69529cb968621f73f2ddfbd1380111a175b02334e
       
    32 COMPONENT_ARCHIVE=      $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.bz2
       
    33 COMPONENT_ARCHIVE_URL=  https://alioth.debian.org/frs/download.php/file/4138/$(COMPONENT_ARCHIVE)
       
    34 COMPONENT_BUGDB=        library/smartcard
       
    35  
       
    36 TPNO =                  25484
       
    37 
       
    38 include $(WS_MAKE_RULES)/common.mk
       
    39 
       
    40 PERL_VERSION = 5.22
       
    41 POD2MAN_PATH = /usr/perl5/$(PERL_VERSION)/bin
       
    42 
       
    43 COMPONENT_BUILD_ENV +=  PATH="$(PATH):$(POD2MAN_PATH)"
       
    44 
       
    45 # binary and shared object creation both require the libusb-1.0 library
       
    46 CONFIGURE_ENV += LIBUSB_CFLAGS="-I$(USRINCDIR)/libusb-1.0" 
       
    47 CONFIGURE_ENV += LIBUSB_LIBS="-L$(USRLIBDIR64) -R$(USRLIBDIR64) -lusb-1.0" 
       
    48 
       
    49 # compiles as a 64-bit binary and 64-bit library, requires it's own headers for shared objects
       
    50 CONFIGURE_ENV += CFLAGS="$(CFLAGS) -m64 -I$(USRINCDIR)/PCSC" 
       
    51 CONFIGURE_ENV += LDFLAGS="-L$(USRLIBDIR64) -R$(USRLIBDIR64)"
       
    52 
       
    53 # configure.ac related patch needs configure script re-creation
       
    54 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
       
    55 
       
    56 # enable ASLR for this component, lint warning against pcscd will occur if this is not set
       
    57 ASLR_MODE=$(ASLR_ENABLE)
       
    58 
       
    59 # options needed for configure, otherwise default will install into /usr/local   
       
    60 CONFIGURE_OPTIONS +=    --exec-prefix=$(USRLIBDIR64)
       
    61 CONFIGURE_OPTIONS +=    --enable-libusb
       
    62 CONFIGURE_OPTIONS +=    --enable-confdir=$(ETCDIR)/pcsc 
       
    63 CONFIGURE_OPTIONS +=    --enable-usbdropdir=$(USRLIBDIR64)/pcsc/drivers
       
    64 
       
    65 # required packages   
       
    66 REQUIRED_PACKAGES += library/libusb-1
       
    67 REQUIRED_PACKAGES += shell/ksh93
       
    68 REQUIRED_PACKAGES += system/core-os
       
    69 REQUIRED_PACKAGES += system/network