author | Petr Sumbera <petr.sumbera@oracle.com> |
Wed, 22 Jul 2015 05:12:12 -0700 | |
changeset 4697 | 2be298b79293 |
parent 4339 | 6501cf9c29f9 |
permissions | -rw-r--r-- |
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
1 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
3 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
7 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
12 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
18 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
20 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
21 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
22 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
23 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
24 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
25 |
include ../../make-rules/shared-macros.mk |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
26 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
27 |
COMPONENT_NAME= libmcrypt |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_VERSION= 2.5.8 |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
418
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
418
diff
changeset
|
32 |
sha256:e4eb6c074bbab168ac47b947c195ff8cef9d51a211cdd18ca9c9ef34d27a373e |
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/mcrypt/files/Libmcrypt/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_PROJECT_URL= http://mcrypt.sourceforge.net/ |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
35 |
COMPONENT_BUGDB= library/libmcrypt |
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
36 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
37 |
TPNO= 8771 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
38 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
41 |
include $(WS_MAKE_RULES)/ips.mk |
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
42 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
43 |
CFLAGS += -xstrconst |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
44 |
LDFLAGS += -lsocket -lnsl |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
45 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
47 |
CONFIGURE_ENV += MAKE=$(GMAKE) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
48 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
49 |
# Need the GNU sed in our path because of assumptions |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
50 |
# in the configure script. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
51 |
CONFIGURE_ENV += PATH=/usr/gnu/bin:$(PATH) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
52 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --disable-dynamic-loading |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
54 |
CONFIGURE_OPTIONS += --with-included-algos="\ |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
55 |
rijndael-128,rijndael-192,rinjndael-256,enigma,arcfour,blowfish,des,\ |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
56 |
tripledes,ecb,cbc,cfb,ctr,ncfb,nofb,ofb,stream" |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
57 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
58 |
# Use cloney to symlink to everything in the source directory because |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
59 |
# some of parts of the build seem to reference directories relative |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
60 |
# to the current (build) directory, but are expecting to find files (e.g., |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
61 |
# header files) which reside in the source dir. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
62 |
# |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
63 |
# We also must remove the config.status file; otherwise, configure |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
64 |
# thinks it has already been configured. |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
65 |
COMPONENT_PRE_CONFIGURE_ACTION += \ |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
66 |
$(TOUCH) $(CONFIGURE_SCRIPT) ; \ |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
67 |
$(RM) $(SOURCE_DIR)/config.status ; \ |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
68 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
69 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
70 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
71 |
|
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
72 |
# common targets |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
73 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
74 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
75 |
|
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
76 |
build: $(BUILD_32_and_64) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
77 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
78 |
install: $(INSTALL_32_and_64) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
79 |
|
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
80 |
test: $(TEST_32_and_64) |
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
81 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
82 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
83 |
|
418
5b95e3689883
7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
84 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
85 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
86 |
REQUIRED_PACKAGES += system/library |