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]
21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2021, Tim Mooney. All rights reserved.
25 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_VERSION
= 5.40.0
29 PERL_VERSION
= $(subst $(space
),.
,$(wordlist
1,2,$(subst .
, ,$(COMPONENT_VERSION
))))
30 COMPONENT_SUMMARY
= Perl
$(PERL_VERSION
)
31 COMPONENT_PROJECT_URL
= https
://www.perl.org
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:d5325300ad267624cb0b7d512cfdfcd74fa7fe00c455c5b51a6bd53e5e199ef9
36 COMPONENT_ARCHIVE_URL
= https
://www.cpan.org
/src
/5.0/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= runtime
/perl-
$(subst .
,,$(PERL_VERSION
))
38 COMPONENT_CLASSIFICATION
= Development
/Perl
39 COMPONENT_LICENSE
= Artistic-1.0
-Perl OR GPL-1.0
-or-later
41 include $(WS_MAKE_RULES
)/common.mk
43 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/Configure
44 CONFIGURE_ENV
+= MAKE
=$(GMAKE
)
46 CONFIGURE_OPTIONS
= -de
47 CONFIGURE_OPTIONS
+= -Dmksymlinks
48 CONFIGURE_OPTIONS
+= -Ulocincpth
=
49 CONFIGURE_OPTIONS
+= -Uloclibpth
=
51 CONFIGURE_OPTIONS
+= -Dprefix
=/usr
/perl5
/$(PERL_VERSION
)
52 CONFIGURE_OPTIONS
+= -Dprivlib
=/usr
/perl5
/$(PERL_VERSION
)/lib
53 CONFIGURE_OPTIONS
+= -Dsitelib
=/usr
/perl5
/site_perl
/$(PERL_VERSION
)
54 CONFIGURE_OPTIONS
+= -Dvendorprefix
=/usr
/perl5
/$(PERL_VERSION
)
55 CONFIGURE_OPTIONS
+= -Dvendorlib
=/usr
/perl5
/vendor_perl
/$(PERL_VERSION
)
56 CONFIGURE_OPTIONS
+= -Dman3dir
=/usr
/perl5
/$(PERL_VERSION
)/man
/man3perl
57 CONFIGURE_OPTIONS
+= -Dman3ext
=3perl
59 CONFIGURE_OPTIONS
+= -Dmyhostname
="localhost"
60 CONFIGURE_OPTIONS
+= -Dcf_email
="oi-dev@openindiana.org"
61 CONFIGURE_OPTIONS
+= -Dcf_by
="perl-bugs"
63 CONFIGURE_OPTIONS
+= -Duseshrplib
64 CONFIGURE_OPTIONS
+= -Dlibperl
=libperl.so
66 CONFIGURE_OPTIONS
+= -Dusedtrace
67 CONFIGURE_OPTIONS
+= -Dusethreads
69 CONFIGURE_OPTIONS
+= -Dcc
="$(CC) $(CC_BITS)"
70 CONFIGURE_OPTIONS
+= -Doptimize
="$(gcc_OPT)"
71 CONFIGURE_OPTIONS
+= -Dlibpth
="/lib/64 /usr/lib/64"
73 COMPONENT_INSTALL_ENV
+= DESTDIR
="$(PROTO_DIR)"
75 COMPONENT_TEST_TRANSFORMS
+= "-e '1,/runtests choose/d'" # throw out everything prior to test results
76 COMPONENT_TEST_TRANSFORMS
+= "-e '/^u=/d'" # delete timings
77 COMPONENT_TEST_TRANSFORMS
+= "-e '/^Elapsed/d'" # delete timings
78 COMPONENT_TEST_TRANSFORMS
+= "-e '/^make\[/d'" # delete make logs
80 # Proper PERL_ARCH is needed for manifest processing.
81 PERL_ARCH
= $(shell .
$(BUILD_DIR_
$(BUILD_BITS
))/config.sh
&& echo
$$archname)
84 # All hardlink targets should be listed here so generated sample manifest does
85 # not change with every run.
87 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/bin
/perl
88 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/bin
/perlbug
89 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/man
/man1
/perlbug
.1
91 # Auto-generated dependencies
92 REQUIRED_PACKAGES
+= database
/berkeleydb-5
93 REQUIRED_PACKAGES
+= library
/database
/gdbm
94 REQUIRED_PACKAGES
+= system
/library
95 REQUIRED_PACKAGES
+= system
/library
/math