commit | author | age
|
79ff4c
|
1 |
# |
AP |
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 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
|
22 |
# |
|
23 |
include ../../../make-rules/shared-macros.mk |
|
24 |
|
|
25 |
# |
|
26 |
# Note this perl is 32-bit only. |
|
27 |
# |
|
28 |
|
|
29 |
# I want to override PERL_VERSION and PERL_ARCH because when building |
|
30 |
# a new version of perl it probably isn't installed so shared-macros.mk |
|
31 |
# can't call it. |
|
32 |
|
|
33 |
COMPONENT_NAME= perl |
55c4f3
|
34 |
COMPONENT_VERSION= 5.22.2 |
79ff4c
|
35 |
COMPONENT_SUMMARY= Perl 5.22 |
AP |
36 |
PERL_VERSION= 5.22 |
|
37 |
COMPONENT_PROJECT_URL= http://www.perl.org/ |
|
38 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
55c4f3
|
39 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
79ff4c
|
40 |
COMPONENT_ARCHIVE_HASH= \ |
55c4f3
|
41 |
sha256:b34dab1eabec056bec5a6682a57b55dab1bcf6afc60b098c9e2d99433dedc295 |
79ff4c
|
42 |
COMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
AP |
43 |
COMPONENT_BUGDB= utility/perl |
|
44 |
COMPONENT_FMRI= runtime/perl-522 |
|
45 |
COMPONENT_CLASSIFICATION= Development/Perl |
|
46 |
COMPONENT_LICENSE= Artistic |
|
47 |
COMPONENT_LICENSE_FILE= Artistic |
|
48 |
|
|
49 |
include $(WS_TOP)/make-rules/prep.mk |
|
50 |
include $(WS_TOP)/make-rules/configure.mk |
|
51 |
include $(WS_TOP)/make-rules/ips.mk |
|
52 |
|
|
53 |
LD_B_DIRECT= "" |
|
54 |
|
|
55 |
COMPONENT_BUILD_ARGS = |
|
56 |
|
|
57 |
CONFIGURE_SCRIPT = $(SOURCE_DIR)/Configure |
|
58 |
CONFIGURE_ENV += MAKE=$(GMAKE) |
|
59 |
|
|
60 |
CONFIGURE_OPTIONS = \ |
|
61 |
-de \ |
|
62 |
-Dmksymlinks \ |
|
63 |
-Ulocincpth= \ |
|
64 |
-Uloclibpth= \ |
|
65 |
-Dbin=/usr/perl5/$(PERL_VERSION)/bin \ |
|
66 |
-Dcc="$(CC) $(CC_BITS)" \ |
|
67 |
-Dccflags="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \ |
|
68 |
-Dcf_email="oi-dev@openindiana.org" \ |
|
69 |
-Dcf_by="perl-bugs" \ |
|
70 |
-Dlibperl=libperl.so \ |
|
71 |
-Dmyhostname="localhost" \ |
|
72 |
-Dprefix=/usr/perl5/$(PERL_VERSION) \ |
|
73 |
-Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \ |
|
74 |
-Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \ |
|
75 |
-Dsiteprefix=/usr/perl5/$(PERL_VERSION) \ |
|
76 |
-Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \ |
|
77 |
-Dvendorprefix=/usr/perl5/$(PERL_VERSION) \ |
|
78 |
-Duse64bitint \ |
|
79 |
-Duseshrplib \ |
|
80 |
-Dusedtrace \ |
|
81 |
-Uuselargefiles |
|
82 |
|
|
83 |
COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)" |
|
84 |
|
|
85 |
# |
|
86 |
# perl's install path for sparc is based off the value of the |
|
87 |
# "arch" command. So we must package that way also. |
|
88 |
# |
|
89 |
PKG_MACROS += P_ARCH=$(shell arch) |
|
90 |
|
55c4f3
|
91 |
# |
AP |
92 |
# Getting 1 different result between sparc and x86. |
|
93 |
# |
|
94 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
|
95 |
|
|
96 |
# |
|
97 |
# Throw out everything prior to test results. |
|
98 |
# 2 x delete timings |
|
99 |
# |
|
100 |
COMPONENT_TEST_TRANSFORMS += \ |
|
101 |
'-e "1,/runtests choose/d"' \ |
|
102 |
'-e "/^u=/d" ' \ |
|
103 |
'-e "/^Elapsed/d"' |
|
104 |
|
|
105 |
|
79ff4c
|
106 |
build: $(BUILD_32) |
AP |
107 |
|
|
108 |
install: $(INSTALL_32) |
|
109 |
|
|
110 |
test: $(TEST_32) |
|
111 |
|
55c4f3
|
112 |
REQUIRED_PACKAGES += database/berkeleydb-5 |
AP |
113 |
REQUIRED_PACKAGES += library/database/gdbm |
|
114 |
REQUIRED_PACKAGES += system/library |
|
115 |
REQUIRED_PACKAGES += system/library/g++-4-runtime |
|
116 |
REQUIRED_PACKAGES += system/library/math |