components/coolkey/Makefile
branchs11u3-sru
changeset 6535 8f23248b161c
child 7454 66df0d7fd2ad
equal deleted inserted replaced
6529:50a81baffe58 6535:8f23248b161c
       
     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 
       
    25 # TESTING:
       
    26 #   Requires physical card reader attached to USB with card inserted.
       
    27 #   SCM Microsystems, model SCR3310 is what was used in-house to test.
       
    28 #   The pkcs11_coolkey package, once built needs to be installed on
       
    29 #   the system building and running the test. 
       
    30 #
       
    31 #   To build the test:
       
    32 #   $ cd components/coolkey/test
       
    33 #   $ gmake build-test
       
    34 #
       
    35 #   To run the test, as root:
       
    36 #   # cd components/coolkey/test
       
    37 #   # ./testcoolkey> testoutput.log
       
    38 #   enter PIN at prompt and press <enter>
       
    39 #
       
    40 #   If the last line of output says:
       
    41 #   Testing libcoolkey... DONE. Status = 0
       
    42 #   then you have a finished test and results.
       
    43 #   Search for "failed" in testoutput.log to see the actual failures, then
       
    44 #   review any failed messages to determine if the test ran successfully or not.
       
    45 
       
    46 include ../../make-rules/shared-macros.mk
       
    47 
       
    48 BITS=			64 
       
    49 COMPONENT_NAME=		coolkey
       
    50 COMPONENT_VERSION=	1.1.0
       
    51 COMPONENT_PROJECT_URL=	http://pki.fedoraproject.org/wiki/CoolKey
       
    52 COMPONENT_DOWNLOAD_URL=	http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz/815a1811a46bf9b8782107c073149cbe
       
    53 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    54 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
       
    55 COMPONENT_ARCHIVE_HASH=	sha256:8448e3abb81bffc593c96b577dcfbc05b40e8684188456c31be15fae73d730f7
       
    56 COMPONENT_ARCHIVE_URL=	$(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
       
    57 COMPONENT_BUGDB=	library/smartcard
       
    58 
       
    59 TPNO =			25487
       
    60 
       
    61 include $(WS_MAKE_RULES)/prep.mk
       
    62 include $(WS_MAKE_RULES)/configure.mk
       
    63 include $(WS_MAKE_RULES)/ips.mk
       
    64 
       
    65 # Configuration related patch needs aclocal to be regenerated
       
    66 COMPONENT_PREP_ACTION +=(cd $(@D); autoconf);
       
    67 
       
    68 # Do not add the SUNWspro area to the RUNPATH
       
    69 # Although -norunpath is set in CXXFLAGS, we need to append
       
    70 # the -norunpath option here, so it's picked up when building
       
    71 # shared libraries (CC -G)
       
    72 CXX += $(studio_NORUNPATH)
       
    73 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    74 COMPONENT_INSTALL_ENV += CXXFLAGS="$(CXXFLAGS)"
       
    75 
       
    76 # Requires PC/SC headers and library
       
    77 CONFIGURE_ENV +=	PCSC_CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
       
    78 CONFIGURE_ENV +=	PCSC_LIBS="-lpcsclite"
       
    79 
       
    80 # No dependency information exists the first time this package is built
       
    81 CONFIGURE_OPTIONS +=	--disable-dependency-tracking
       
    82 
       
    83 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
       
    84 
       
    85 # Common targets
       
    86 configure:	$(CONFIGURE_64)
       
    87 
       
    88 build:		$(BUILD_64)
       
    89 
       
    90 install:	$(INSTALL_64)
       
    91 
       
    92 test:		$(NO_TEST)
       
    93 
       
    94 # Required packages
       
    95 REQUIRED_PACKAGES += library/security/pcsc/pcsclite
       
    96 REQUIRED_PACKAGES += library/zlib
       
    97 REQUIRED_PACKAGES += system/library
       
    98 REQUIRED_PACKAGES += system/library/c++-runtime
       
    99 REQUIRED_PACKAGES += system/linker