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.
23 include ..
/..
/..
/make-rules
/shared-macros.mk
26 # Note this perl is 32-bit only.
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
34 COMPONENT_VERSION
= 5.22.2
35 COMPONENT_SUMMARY
= Perl
5.22
37 COMPONENT_PROJECT_URL
= http
://www.perl.org
/
38 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
39 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
40 COMPONENT_ARCHIVE_HASH
= \
41 sha256
:b34dab1eabec056bec5a6682a57b55dab1bcf6afc60b098c9e2d99433dedc295
42 COMPONENT_ARCHIVE_URL
= http
://www.cpan.org
/src
/5.0/$(COMPONENT_ARCHIVE
)
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
49 include $(WS_TOP
)/make-rules
/prep.mk
50 include $(WS_TOP
)/make-rules
/configure.mk
51 include $(WS_TOP
)/make-rules
/ips.mk
53 GCC_ROOT
=/opt
/gcc
/4.4.4
57 COMPONENT_BUILD_ARGS
=
59 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/Configure
66 -Dbin
=/usr
/perl5
/$(PERL_VERSION
)/bin \
67 -Dcc
="$(CC) $(CC_BITS)" \
68 -Dccflags
="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
69 -Dcf_email
="oi-dev@openindiana.org" \
71 -Dlibperl
=libperl.so \
72 -Dman1dir
='/usr/perl5/5.22/man/man1' \
73 -Dman3dir
='/usr/perl5/5.22/man/man3' \
74 -Dmyhostname
="localhost" \
75 -Dprefix
=/usr
/perl5
/$(PERL_VERSION
) \
76 -Dprivlib
=/usr
/perl5
/$(PERL_VERSION
)/lib \
77 -Dsitelib
=/usr
/perl5
/site_perl
/$(PERL_VERSION
) \
78 -Dsiteprefix
=/usr
/perl5
/$(PERL_VERSION
) \
79 -Dvendorlib
=/usr
/perl5
/vendor_perl
/$(PERL_VERSION
) \
80 -Dvendorprefix
=/usr
/perl5
/$(PERL_VERSION
) \
87 COMPONENT_INSTALL_ENV
+= DESTDIR
="$(PROTO_DIR)"
90 # perl's install path for sparc is based off the value of the
91 # "arch" command. So we must package that way also.
93 PKG_MACROS
+= P_ARCH
=i86pc
96 # Getting 1 different result between sparc and x86.
98 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-
$(MACH
).master
101 # Throw out everything prior to test results.
104 COMPONENT_TEST_TRANSFORMS
+= \
105 '-e "1,/runtests choose/d"' \
112 install: $(INSTALL_32
)
116 REQUIRED_PACKAGES
+= database
/berkeleydb-5
117 REQUIRED_PACKAGES
+= library
/database
/gdbm
118 REQUIRED_PACKAGES
+= system
/library
119 REQUIRED_PACKAGES
+= system
/library
/g
++-6-runtime
120 REQUIRED_PACKAGES
+= system
/library
/math