python/cryptography: native 64-bit build
[unleashed-userland.git] / components / perl / perl-522 / Makefile
blob84dbbfe7c5388cac474777eef8de5727f5348316
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
52 export UNAME_LEGACY=
54 LD_B_DIRECT= ""
56 COMPONENT_BUILD_ARGS =
58 CONFIGURE_SCRIPT = $(SOURCE_DIR)/Configure
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 -Dman1dir='/usr/perl5/5.22/man/man1' \
72 -Dman3dir='/usr/perl5/5.22/man/man3' \
73 -Dmyhostname="localhost" \
74 -Dprefix=/usr/perl5/$(PERL_VERSION) \
75 -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \
76 -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \
77 -Dsiteprefix=/usr/perl5/$(PERL_VERSION) \
78 -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \
79 -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \
80 -Duse64bitint \
81 -Duseshrplib \
82 -Dusedtrace \
83 -Dmake=gmake \
84 -Uuselargefiles
86 COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)"
89 # perl's install path for sparc is based off the value of the
90 # "arch" command. So we must package that way also.
92 PKG_MACROS += P_ARCH=i86pc
95 # Getting 1 different result between sparc and x86.
97 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
100 # Throw out everything prior to test results.
101 # 2 x delete timings
103 COMPONENT_TEST_TRANSFORMS += \
104 '-e "1,/runtests choose/d"' \
105 '-e "/^u=/d" ' \
106 '-e "/^Elapsed/d"'
109 build: $(BUILD_32)
111 install: $(INSTALL_32)
113 test: $(TEST_32)
115 REQUIRED_PACKAGES += database/berkeleydb-5
116 REQUIRED_PACKAGES += library/database/gdbm
117 REQUIRED_PACKAGES += system/library
118 REQUIRED_PACKAGES += system/library/g++-6-runtime
119 REQUIRED_PACKAGES += system/library/math