commit | author | age
|
19b7a3
|
1 |
# |
TM |
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 |
# Copyright (c) 2021, Tim Mooney. All rights reserved. |
|
23 |
# |
|
24 |
BUILD_STYLE=configure |
|
25 |
BUILD_BITS=64 |
|
26 |
include ../../../make-rules/shared-macros.mk |
|
27 |
|
|
28 |
# |
|
29 |
# Note this perl is 64-bit only. |
|
30 |
# |
|
31 |
|
|
32 |
COMPONENT_NAME= perl |
8b8a22
|
33 |
COMPONENT_VERSION_MAJOR = 5.34 |
43cbf9
|
34 |
COMPONENT_VERSION = $(COMPONENT_VERSION_MAJOR).3 |
8b8a22
|
35 |
COMPONENT_SUMMARY = Perl $(COMPONENT_VERSION) |
19b7a3
|
36 |
COMPONENT_PROJECT_URL= https://www.perl.org/ |
TM |
37 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
38 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
|
39 |
COMPONENT_ARCHIVE_HASH= \ |
43cbf9
|
40 |
sha256:0b15c830a9a295c9f9439b6cda389300f0b18092686eaef47fbc9c92f5930ee1 |
19b7a3
|
41 |
COMPONENT_ARCHIVE_URL= https://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
TM |
42 |
COMPONENT_FMRI= runtime/perl-534 |
|
43 |
COMPONENT_CLASSIFICATION=Development/Perl |
|
44 |
COMPONENT_LICENSE= Artistic |
|
45 |
COMPONENT_LICENSE_FILE= Artistic |
|
46 |
|
|
47 |
include $(WS_MAKE_RULES)/common.mk |
|
48 |
|
8b8a22
|
49 |
# PERL_VERSION should be M.NN, it should not include the micro version |
MT |
50 |
PERL_VERSION = $(COMPONENT_VERSION_MAJOR) |
19b7a3
|
51 |
|
TM |
52 |
COMPONENT_BUILD_ARGS = |
|
53 |
|
|
54 |
CONFIGURE_SCRIPT = $(SOURCE_DIR)/Configure |
|
55 |
CONFIGURE_ENV += MAKE=$(GMAKE) |
|
56 |
|
b2c8af
|
57 |
CONFIGURE_OPTIONS = -de |
MT |
58 |
CONFIGURE_OPTIONS += -Dmksymlinks |
|
59 |
CONFIGURE_OPTIONS += -Ulocincpth= |
|
60 |
CONFIGURE_OPTIONS += -Uloclibpth= |
|
61 |
|
|
62 |
CONFIGURE_OPTIONS += -Dprefix=/usr/perl5/$(PERL_VERSION) |
|
63 |
CONFIGURE_OPTIONS += -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib |
|
64 |
CONFIGURE_OPTIONS += -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) |
|
65 |
CONFIGURE_OPTIONS += -Dvendorprefix=/usr/perl5/$(PERL_VERSION) |
|
66 |
CONFIGURE_OPTIONS += -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) |
|
67 |
CONFIGURE_OPTIONS += -Dman3dir=/usr/perl5/$(PERL_VERSION)/man/man3perl |
|
68 |
CONFIGURE_OPTIONS += -Dman3ext=3perl |
|
69 |
|
|
70 |
CONFIGURE_OPTIONS += -Dmyhostname="localhost" |
|
71 |
CONFIGURE_OPTIONS += -Dcf_email="oi-dev@openindiana.org" |
|
72 |
CONFIGURE_OPTIONS += -Dcf_by="perl-bugs" |
|
73 |
|
|
74 |
CONFIGURE_OPTIONS += -Duseshrplib |
|
75 |
CONFIGURE_OPTIONS += -Dlibperl=libperl.so |
|
76 |
|
|
77 |
CONFIGURE_OPTIONS += -Dusedtrace |
|
78 |
CONFIGURE_OPTIONS += -Dusethreads |
|
79 |
CONFIGURE_OPTIONS += -Duse64bitall |
|
80 |
|
|
81 |
CONFIGURE_OPTIONS += -Dcc="$(CC) $(CC_BITS)" |
|
82 |
CONFIGURE_OPTIONS += -Doptimize="$(gcc_OPT)" |
|
83 |
CONFIGURE_OPTIONS += -Dlibpth="/lib/64 /usr/lib/64" |
|
84 |
|
19b7a3
|
85 |
|
TM |
86 |
COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)" |
|
87 |
|
|
88 |
# |
|
89 |
# Getting 1 different result between sparc and x86. |
|
90 |
# |
|
91 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
|
92 |
|
|
93 |
# |
|
94 |
# Throw out everything prior to test results. |
|
95 |
# 2 x delete timings |
|
96 |
# |
|
97 |
COMPONENT_TEST_TRANSFORMS += \ |
|
98 |
'-e "1,/runtests choose/d"' \ |
|
99 |
'-e "/^u=/d" ' \ |
|
100 |
'-e "/^Elapsed/d"' |
|
101 |
|
8b8a22
|
102 |
# |
MT |
103 |
# Proper PERL_ARCH and PERLVER are needed for manifest processing. |
|
104 |
# |
|
105 |
PERL_ARCH = $(call PERL_ARCH_FUNC,$(PROTO_DIR)/usr/perl5/$(PERL_VERSION)/bin/perl) |
|
106 |
PKG_MACROS += PERLVER=$(PERL_VERSION) |
|
107 |
|
|
108 |
# |
|
109 |
# All hardlink targets should be listed here so generated sample manifest does |
|
110 |
# not change with every run. |
|
111 |
# |
|
112 |
PKG_HARDLINKS += usr/perl5/$(PERL_VERSION)/bin/perl |
|
113 |
PKG_HARDLINKS += usr/perl5/$(PERL_VERSION)/bin/perlbug |
|
114 |
PKG_HARDLINKS += usr/perl5/$(PERL_VERSION)/man/man1/perlbug.1 |
|
115 |
|
19b7a3
|
116 |
# Auto-generated dependencies |
TM |
117 |
REQUIRED_PACKAGES += database/berkeleydb-5 |
|
118 |
REQUIRED_PACKAGES += library/database/gdbm |
|
119 |
REQUIRED_PACKAGES += system/library |
|
120 |
REQUIRED_PACKAGES += system/library/math |