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.36.3
29 COMPONENT_VERSION_MAJOR
= $(shell echo
$(COMPONENT_VERSION
) |
$(GSED
) -e
's/\(5\.[0-9]\{1,\}\)\..*/\1/g')
30 COMPONENT_SUMMARY
= Perl
$(COMPONENT_VERSION
)
31 COMPONENT_PROJECT_URL
= https
://www.perl.org
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:45a228daef66d02fdccc820e71f87e40d8e3df1fc4431f8d4580ec08033866bd
36 COMPONENT_ARCHIVE_URL
= https
://www.cpan.org
/src
/5.0/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= runtime
/perl-536
38 COMPONENT_CLASSIFICATION
= Development
/Perl
39 COMPONENT_LICENSE
= Artistic
40 COMPONENT_LICENSE_FILE
= Artistic
42 include $(WS_MAKE_RULES
)/common.mk
44 # PERL_VERSION should be M.NN, it should not include the micro version
45 PERL_VERSION
= $(COMPONENT_VERSION_MAJOR
)
47 COMPONENT_BUILD_ARGS
=
49 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/Configure
50 CONFIGURE_ENV
+= MAKE
=$(GMAKE
)
52 CONFIGURE_OPTIONS
= -de
53 CONFIGURE_OPTIONS
+= -Dmksymlinks
54 CONFIGURE_OPTIONS
+= -Ulocincpth
=
55 CONFIGURE_OPTIONS
+= -Uloclibpth
=
57 CONFIGURE_OPTIONS
+= -Dprefix
=/usr
/perl5
/$(PERL_VERSION
)
58 CONFIGURE_OPTIONS
+= -Dprivlib
=/usr
/perl5
/$(PERL_VERSION
)/lib
59 CONFIGURE_OPTIONS
+= -Dsitelib
=/usr
/perl5
/site_perl
/$(PERL_VERSION
)
60 CONFIGURE_OPTIONS
+= -Dvendorprefix
=/usr
/perl5
/$(PERL_VERSION
)
61 CONFIGURE_OPTIONS
+= -Dvendorlib
=/usr
/perl5
/vendor_perl
/$(PERL_VERSION
)
62 CONFIGURE_OPTIONS
+= -Dman3dir
=/usr
/perl5
/$(PERL_VERSION
)/man
/man3perl
63 CONFIGURE_OPTIONS
+= -Dman3ext
=3perl
65 CONFIGURE_OPTIONS
+= -Dmyhostname
="localhost"
66 CONFIGURE_OPTIONS
+= -Dcf_email
="oi-dev@openindiana.org"
67 CONFIGURE_OPTIONS
+= -Dcf_by
="perl-bugs"
69 CONFIGURE_OPTIONS
+= -Duseshrplib
70 CONFIGURE_OPTIONS
+= -Dlibperl
=libperl.so
72 CONFIGURE_OPTIONS
+= -Dusedtrace
73 CONFIGURE_OPTIONS
+= -Dusethreads
75 CONFIGURE_OPTIONS
+= -Dcc
="$(CC) $(CC_BITS)"
76 CONFIGURE_OPTIONS
+= -Doptimize
="$(gcc_OPT)"
77 CONFIGURE_OPTIONS
+= -Dlibpth
="/lib/64 /usr/lib/64"
80 COMPONENT_INSTALL_ENV
+= DESTDIR
="$(PROTO_DIR)"
83 # Throw out everything prior to test results.
86 COMPONENT_TEST_TRANSFORMS
+= \
87 '-e "1,/runtests choose/d"' \
92 # Proper PERL_ARCH and PERLVER are needed for manifest processing.
94 PERL_ARCH
= $(shell .
$(BUILD_DIR_
$(BUILD_BITS
))/config.sh
&& echo
$$archname)
95 PKG_MACROS
+= PERLVER
=$(PERL_VERSION
)
98 # All hardlink targets should be listed here so generated sample manifest does
99 # not change with every run.
101 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/bin
/perl
102 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/bin
/perlbug
103 PKG_HARDLINKS
+= usr
/perl5
/$(PERL_VERSION
)/man
/man1
/perlbug
.1
105 # Auto-generated dependencies
106 REQUIRED_PACKAGES
+= database
/berkeleydb-5
107 REQUIRED_PACKAGES
+= library
/database
/gdbm
108 REQUIRED_PACKAGES
+= system
/library
109 REQUIRED_PACKAGES
+= system
/library
/math