418N/A#
418N/A# CDDL HEADER START
418N/A#
418N/A# The contents of this file are subject to the terms of the
418N/A# Common Development and Distribution License (the "License").
418N/A# You may not use this file except in compliance with the License.
418N/A#
418N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
418N/A# or http://www.opensolaris.org/os/licensing.
418N/A# See the License for the specific language governing permissions
418N/A# and limitations under the License.
418N/A#
418N/A# When distributing Covered Code, include this CDDL HEADER in each
418N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
418N/A# If applicable, add the following below this CDDL HEADER, with the
418N/A# fields enclosed by brackets "[]" replaced with your own identifying
418N/A# information: Portions Copyright [yyyy] [name of copyright owner]
418N/A#
418N/A# CDDL HEADER END
418N/A
418N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
418N/A#
418N/A
418N/Ainclude ../../make-rules/shared-macros.mk
418N/A
418N/ACOMPONENT_NAME= libmcrypt
418N/ACOMPONENT_VERSION= 2.5.8
418N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
418N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:e4eb6c074bbab168ac47b947c195ff8cef9d51a211cdd18ca9c9ef34d27a373e
418N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/mcrypt/files/Libmcrypt/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
418N/ACOMPONENT_PROJECT_URL= http://mcrypt.sourceforge.net/
1273N/ACOMPONENT_BUGDB= library/libmcrypt
418N/A
3661N/ATPNO= 8771
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
418N/A
418N/ACFLAGS += -xstrconst
418N/ALDFLAGS += -lsocket -lnsl
418N/A
418N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
418N/ACONFIGURE_ENV += MAKE=$(GMAKE)
418N/A
418N/A# Need the GNU sed in our path because of assumptions
418N/A# in the configure script.
418N/ACONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH)
418N/A
418N/ACONFIGURE_OPTIONS += --disable-dynamic-loading
418N/ACONFIGURE_OPTIONS += --with-included-algos="\
418N/A rijndael-128,rijndael-192,rinjndael-256,enigma,arcfour,blowfish,des,\
418N/A tripledes,ecb,cbc,cfb,ctr,ncfb,nofb,ofb,stream"
418N/A
418N/A# Use cloney to symlink to everything in the source directory because
418N/A# some of parts of the build seem to reference directories relative
418N/A# to the current (build) directory, but are expecting to find files (e.g.,
418N/A# header files) which reside in the source dir.
418N/A#
418N/A# We also must remove the config.status file; otherwise, configure
418N/A# thinks it has already been configured.
418N/ACOMPONENT_PRE_CONFIGURE_ACTION += \
418N/A $(TOUCH) $(CONFIGURE_SCRIPT) ; \
418N/A $(RM) $(SOURCE_DIR)/config.status ; \
418N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
418N/A
418N/A# common targets
418N/A
418N/Abuild: $(BUILD_32_and_64)
418N/A
418N/Ainstall: $(INSTALL_32_and_64)
418N/A
418N/Atest: $(TEST_32_and_64)
418N/A
418N/A
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library