|
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, 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= sha1:9a426532e9087dd7737aabccff8b91abf9151a7a |
|
32 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/mcrypt/files/Libmcrypt/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_PROJECT_URL= http://mcrypt.sourceforge.net/ |
|
34 |
|
35 include $(WS_TOP)/make-rules/prep.mk |
|
36 include $(WS_TOP)/make-rules/configure.mk |
|
37 include $(WS_TOP)/make-rules/ips.mk |
|
38 |
|
39 CFLAGS += -xstrconst |
|
40 LDFLAGS += -lsocket -lnsl |
|
41 |
|
42 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
43 CONFIGURE_ENV += MAKE=$(GMAKE) |
|
44 |
|
45 # Need the GNU sed in our path because of assumptions |
|
46 # in the configure script. |
|
47 CONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH) |
|
48 |
|
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" |
|
53 |
|
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. |
|
58 # |
|
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)) |
|
65 |
|
66 # common targets |
|
67 |
|
68 build: $(BUILD_32_and_64) |
|
69 |
|
70 install: $(INSTALL_32_and_64) |
|
71 |
|
72 test: $(TEST_32_and_64) |
|
73 |
|
74 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
75 |
|
76 include $(WS_TOP)/make-rules/depend.mk |