16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
25 PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
26 |
26 |
27 # I want to override PERL_VERSION and PERL_ARCH because when building |
27 # I want to override PERL_VERSION and PERL_ARCH because when building |
28 # a new version of perl it probably isn't installed so shared-macros.mk |
28 # a new version of perl it probably isn't installed so shared-macros.mk |
29 # can't call it. |
29 # can't call it. |
30 |
30 |
31 COMPONENT_NAME= perl |
31 COMPONENT_NAME= perl |
32 COMPONENT_VERSION= 5.12.4 |
32 COMPONENT_VERSION= 5.12.5 |
33 PERL_VERSION= 5.12 |
33 PERL_VERSION= 5.12 |
34 COMPONENT_PROJECT_URL= http://www.perl.org/ |
34 COMPONENT_PROJECT_URL= http://www.perl.org/ |
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2 |
37 COMPONENT_ARCHIVE_HASH= \ |
37 COMPONENT_ARCHIVE_HASH= \ |
38 sha256:c920fa01a34b7752e8cbbc99c6921b908df60611d84a29c4377e4a798604767e |
38 sha256:10749417fd3010aae320a34181ad4cd6a4855c1fc63403b87fa4d630b18e966c |
39 COMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
39 COMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
40 COMPONENT_BUGDB= utility/perl |
40 COMPONENT_BUGDB= utility/perl |
41 |
41 |
42 include ../../make-rules/prep.mk |
42 include ../../make-rules/prep.mk |
43 include ../../make-rules/justmake.mk |
43 include ../../make-rules/configure.mk |
44 include ../../make-rules/ips.mk |
44 include ../../make-rules/ips.mk |
45 |
45 |
46 # |
46 # |
47 # Override these compiler settings because they are causing problems |
47 # Override these compiler settings because they are causing problems |
48 # in the ON build of the contrib components. |
48 # in the ON build of the contrib components. |
67 # If that changes the sed filter needs to change. |
67 # If that changes the sed filter needs to change. |
68 # |
68 # |
69 |
69 |
70 # That last bit re-runs bison to regenerate perly.h. |
70 # That last bit re-runs bison to regenerate perly.h. |
71 |
71 |
72 COMPONENT_PRE_BUILD_ACTION= \ |
72 CONFIGURE_SCRIPT = $(SOURCE_DIR)/Configure |
73 (cd $(@D); $(ENV) -i \ |
73 CONFIGURE_ENV += MAKE=$(GMAKE) |
74 MAKE=$(GMAKE) \ |
74 CONFIGURE_ENV += PATH=$(dir $(CC)):$(PATH) |
75 PATH=$(dir $(CC.studio.32)):$(PATH) \ |
75 CONFIGURE_OPTIONS = \ |
76 $(CONFIG_SHELL) ./Configure \ |
|
77 -Dprefix=/usr/perl5/$(PERL_VERSION) \ |
76 -Dprefix=/usr/perl5/$(PERL_VERSION) \ |
78 -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \ |
77 -Dprivlib=/usr/perl5/$(PERL_VERSION)/lib \ |
79 -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \ |
78 -Dsitelib=/usr/perl5/site_perl/$(PERL_VERSION) \ |
80 -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \ |
79 -Dvendorprefix=/usr/perl5/$(PERL_VERSION) \ |
81 -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \ |
80 -Dvendorlib=/usr/perl5/vendor_perl/$(PERL_VERSION) \ |
86 -Dcc="cc" \ |
85 -Dcc="cc" \ |
87 -Doptimize="$(CFLAGS.studio)" \ |
86 -Doptimize="$(CFLAGS.studio)" \ |
88 -Dcf_email="[email protected]" \ |
87 -Dcf_email="[email protected]" \ |
89 -Dcf_by="perl-bugs" \ |
88 -Dcf_by="perl-bugs" \ |
90 -Dmyhostname="localhost" \ |
89 -Dmyhostname="localhost" \ |
|
90 -Dmksymlinks \ |
91 -O \ |
91 -O \ |
92 -de ) ; \ |
92 -de |
|
93 |
|
94 COMPONENT_POST_CONFIGURE_ACTION = \ |
93 (cd $(@D); \ |
95 (cd $(@D); \ |
94 cp config.sh config.sh_orig ; \ |
96 cp config.sh config.sh_orig ; \ |
95 gawk \ |
97 gawk \ |
96 '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \ |
98 '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \ |
97 !/^myuname=/ {print}' config.sh_orig \ |
99 !/^myuname=/ {print}' config.sh_orig \ |
118 |
120 |
119 install: $(INSTALL_32) |
121 install: $(INSTALL_32) |
120 |
122 |
121 test: $(TEST_32) |
123 test: $(TEST_32) |
122 # |
124 # |
123 # 2 expected failures because of the use of cloney in this build. |
|
124 # Without cloney all tests pass. |
|
125 # |
125 # |
126 # Failed 2 tests out of 1697, 99.88% okay. |
126 # All tests should pass. |
127 # ../cpan/Archive-Tar/t/02_methods.t |
|
128 # ../lib/File/stat.t |
|
129 # |
127 # |
|
128 # |
|
129 |
130 |
130 |
131 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
131 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
132 |
132 |
133 include ../../make-rules/depend.mk |
133 include ../../make-rules/depend.mk |