7759 Perl modules update
[unleashed-userland.git] / components / perl / perl-522 / Makefile
blob3841799682c94fc633329db1662fe9ce15a84f50
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
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
31 # can't call it.
33 COMPONENT_NAME= perl
34 COMPONENT_VERSION= 5.22.2
35 COMPONENT_SUMMARY= Perl 5.22
36 PERL_VERSION= 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 LD_B_DIRECT= ""
55 COMPONENT_BUILD_ARGS =
57 CONFIGURE_SCRIPT = $(SOURCE_DIR)/Configure
58 CONFIGURE_ENV += MAKE=$(GMAKE)
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
83 COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
86 # perl's install path for sparc is based off the value of the
87 # "arch" command. So we must package that way also.
89 PKG_MACROS += P_ARCH=$(shell arch)
92 # Getting 1 different result between sparc and x86.
94 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
97 # Throw out everything prior to test results.
98 # 2 x delete timings
100 COMPONENT_TEST_TRANSFORMS += \
101 '-e "1,/runtests choose/d"' \
102 '-e "/^u=/d" ' \
103 '-e "/^Elapsed/d"'
106 build: $(BUILD_32)
108 install: $(INSTALL_32)
110 test: $(TEST_32)
112 REQUIRED_PACKAGES += database/berkeleydb-5
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