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