pcre: put 64-bit bins in usr/bin
[unleashed-userland.git] / components / libmcrypt / Makefile
blobb55c308c9a0be1d3213ef0795c789e7fd4cf54da
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
25 include ../../make-rules/shared-macros.mk
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
37 include $(WS_TOP)/make-rules/prep.mk
38 include $(WS_TOP)/make-rules/configure.mk
39 include $(WS_TOP)/make-rules/ips.mk
41 LDFLAGS += -lsocket -lnsl
43 CONFIGURE_ENV += MAKE=$(GMAKE)
45 # Need the GNU sed in our path because of assumptions
46 # in the configure script.
47 CONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH)
49 CONFIGURE_OPTIONS += --disable-dynamic-loading
50 CONFIGURE_OPTIONS += --with-included-algos="\
51 rijndael-128,rijndael-192,rinjndael-256,enigma,arcfour,blowfish,des,\
52 tripledes,ecb,cbc,cfb,ctr,ncfb,nofb,ofb,stream"
54 # Use cloney to symlink to everything in the source directory because
55 # some of parts of the build seem to reference directories relative
56 # to the current (build) directory, but are expecting to find files (e.g.,
57 # header files) which reside in the source dir.
59 # We also must remove the config.status file; otherwise, configure
60 # thinks it has already been configured.
61 COMPONENT_PRE_CONFIGURE_ACTION += \
62 $(TOUCH) $(CONFIGURE_SCRIPT) ; \
63 $(RM) $(SOURCE_DIR)/config.status ; \
64 ($(CLONEY) $(SOURCE_DIR) $(@D))
66 # common targets
68 build: $(BUILD_32_and_64)
70 install: $(INSTALL_32_and_64)
72 test: $(TEST_32_and_64)
74 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
76 include $(WS_TOP)/make-rules/depend.mk