components/coolkey/Makefile
branchs11u3-sru
changeset 7454 66df0d7fd2ad
parent 6535 8f23248b161c
equal deleted inserted replaced
7453:688f73f0b72d 7454:66df0d7fd2ad
    43 #   Search for "failed" in testoutput.log to see the actual failures, then
    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.
    44 #   review any failed messages to determine if the test ran successfully or not.
    45 
    45 
    46 include ../../make-rules/shared-macros.mk
    46 include ../../make-rules/shared-macros.mk
    47 
    47 
    48 BITS=			64 
       
    49 COMPONENT_NAME=		coolkey
    48 COMPONENT_NAME=		coolkey
    50 COMPONENT_VERSION=	1.1.0
    49 COMPONENT_VERSION=	1.1.0
    51 COMPONENT_PROJECT_URL=	http://pki.fedoraproject.org/wiki/CoolKey
    50 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
    51 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)
    52 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    61 include $(WS_MAKE_RULES)/prep.mk
    60 include $(WS_MAKE_RULES)/prep.mk
    62 include $(WS_MAKE_RULES)/configure.mk
    61 include $(WS_MAKE_RULES)/configure.mk
    63 include $(WS_MAKE_RULES)/ips.mk
    62 include $(WS_MAKE_RULES)/ips.mk
    64 
    63 
    65 # Configuration related patch needs aclocal to be regenerated
    64 # Configuration related patch needs aclocal to be regenerated
    66 COMPONENT_PREP_ACTION +=(cd $(@D); autoconf);
    65 COMPONENT_PREP_ACTION += (cd $(@D); autoconf);
    67 
    66 
    68 # Do not add the SUNWspro area to the RUNPATH
    67 
    69 # Although -norunpath is set in CXXFLAGS, we need to append
    68 # Do not add the SUNWspro area to the RUNPATH. Follow exactly what CC does.
    70 # the -norunpath option here, so it's picked up when building
    69 REAL_SPRO_VROOT		= $(realpath $(SPRO_VROOT))
    71 # shared libraries (CC -G)
    70 LD_UNSET.32.i386	= -R$(REAL_SPRO_VROOT)/lib/rw7:$(REAL_SPRO_VROOT)/lib
    72 CXX += $(studio_NORUNPATH)
    71 LD_UNSET.32.sparc	= -R$(REAL_SPRO_VROOT)/lib/rw7:$(REAL_SPRO_VROOT)/lib/$(MACH):$(REAL_SPRO_VROOT)/lib
    73 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
    72 LD_UNSET.32		= $(LD_UNSET.32.$(MACH)):/usr/ccs/lib:/lib:/usr/lib
    74 COMPONENT_INSTALL_ENV += CXXFLAGS="$(CXXFLAGS)"
    73 LD_UNSET.64.i386	= -R$(REAL_SPRO_VROOT)/lib/rw7/$(MACH64):$(REAL_SPRO_VROOT)/lib/$(MACH64):/usr/ccs/lib/$(MACH64):/lib/64:/usr/lib/64
       
    74 LD_UNSET.64.sparc	= -R$(REAL_SPRO_VROOT)/lib/rw7/v9:$(REAL_SPRO_VROOT)/lib/$(MACH)/64:/usr/ccs/lib/$(MACH64):/lib/$(MACH64):/usr/lib/$(MACH64)
       
    75 LD_UNSET.64		= $(LD_UNSET.64.$(MACH))
       
    76 LD_UNSET		+= $(LD_UNSET.$(BITS))
       
    77 COMPONENT_BUILD_ENV	+= LD_UNSET="$(LD_UNSET)"
       
    78 COMPONENT_INSTALL_ENV	+= LD_UNSET="$(LD_UNSET)"
       
    79 
       
    80 # Propagate correct LDFLAGS to the linking phase.
       
    81 LDFLAGS			+= $(CC_BITS)
       
    82 COMPONENT_BUILD_ARGS	+= LDFLAGS="$(LDFLAGS)"
       
    83 COMPONENT_INSTALL_ARGS	+= LDFLAGS="$(LDFLAGS)"
    75 
    84 
    76 # Requires PC/SC headers and library
    85 # Requires PC/SC headers and library
    77 CONFIGURE_ENV +=	PCSC_CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
    86 CONFIGURE_ENV +=	PCSC_CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
    78 CONFIGURE_ENV +=	PCSC_LIBS="-lpcsclite"
    87 CONFIGURE_ENV +=	PCSC_LIBS="-lpcsclite"
    79 
    88 
    81 CONFIGURE_OPTIONS +=	--disable-dependency-tracking
    90 CONFIGURE_OPTIONS +=	--disable-dependency-tracking
    82 
    91 
    83 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
    92 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
    84 
    93 
    85 # Common targets
    94 # Common targets
    86 configure:	$(CONFIGURE_64)
    95 configure:	$(CONFIGURE_32_and_64)
    87 
    96 
    88 build:		$(BUILD_64)
    97 build:		$(BUILD_32_and_64)
    89 
    98 
    90 install:	$(INSTALL_64)
    99 install:	$(INSTALL_32_and_64)
    91 
   100 
    92 test:		$(NO_TEST)
   101 test:		$(NO_TEST)
    93 
   102 
    94 # Required packages
   103 # Required packages
    95 REQUIRED_PACKAGES += library/security/pcsc/pcsclite
   104 REQUIRED_PACKAGES += library/security/pcsc/pcsclite