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