components/libmcrypt/Makefile
changeset 5488 b5f105d9ae8b
parent 5486 fc535b316139
child 5489 a5031bb8b66d
equal deleted inserted replaced
5486:fc535b316139 5488:b5f105d9ae8b
     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) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
       
    23 #
       
    24 
       
    25 include ../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=		libmcrypt
       
    28 COMPONENT_VERSION=	2.5.8
       
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    31 COMPONENT_ARCHIVE_HASH=	\
       
    32     sha256:e4eb6c074bbab168ac47b947c195ff8cef9d51a211cdd18ca9c9ef34d27a373e
       
    33 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/mcrypt/files/Libmcrypt/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
       
    34 COMPONENT_PROJECT_URL=  http://mcrypt.sourceforge.net/
       
    35 COMPONENT_BUGDB=	library/libmcrypt
       
    36 
       
    37 TPNO=			8771
       
    38 
       
    39 include $(WS_MAKE_RULES)/prep.mk
       
    40 include $(WS_MAKE_RULES)/configure.mk
       
    41 include $(WS_MAKE_RULES)/ips.mk
       
    42 
       
    43 CFLAGS += -xstrconst
       
    44 LDFLAGS += -lsocket -lnsl
       
    45 
       
    46 CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
       
    47 CONFIGURE_ENV +=	MAKE=$(GMAKE)
       
    48 
       
    49 # Need the GNU sed in our path because of assumptions 
       
    50 # in the configure script.
       
    51 CONFIGURE_ENV +=	PATH=/usr/gnu/bin:$(PATH)
       
    52 
       
    53 CONFIGURE_OPTIONS += --disable-dynamic-loading
       
    54 CONFIGURE_OPTIONS += --with-included-algos="\
       
    55 	rijndael-128,rijndael-192,rinjndael-256,enigma,arcfour,blowfish,des,\
       
    56 	tripledes,ecb,cbc,cfb,ctr,ncfb,nofb,ofb,stream" 
       
    57 
       
    58 # Use cloney to symlink to everything in the source directory because
       
    59 # some of parts of the build seem to reference directories relative 
       
    60 # to the current (build) directory, but are expecting to find files (e.g.,
       
    61 # header files) which reside in the source dir. 
       
    62 #
       
    63 # We also must remove the config.status file; otherwise, configure
       
    64 # thinks it has already been configured.
       
    65 COMPONENT_PRE_CONFIGURE_ACTION += \
       
    66 	$(TOUCH) $(CONFIGURE_SCRIPT) ; \
       
    67 	$(RM) $(SOURCE_DIR)/config.status ; \
       
    68 	($(CLONEY) $(SOURCE_DIR) $(@D))
       
    69 
       
    70 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    71 
       
    72 # common targets
       
    73 
       
    74 configure:	$(CONFIGURE_32_and_64)
       
    75 
       
    76 build:		$(BUILD_32_and_64)
       
    77 
       
    78 install:	$(INSTALL_32_and_64)
       
    79 
       
    80 test:		$(TEST_32_and_64)
       
    81 
       
    82 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    83 
       
    84 
       
    85 REQUIRED_PACKAGES += shell/ksh93
       
    86 REQUIRED_PACKAGES += system/library