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, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2012, 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.3 |
32 COMPONENT_VERSION= 5.12.4 |
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= sha1:86d77c6cbc7a60068dc14c88ffd0729324d1174f |
37 COMPONENT_ARCHIVE_HASH= sha1:68ff2f4a0901d1e4ea263f452001db0563d2edb3 |
38 COMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
38 COMPONENT_ARCHIVE_URL= http://www.cpan.org/src/5.0/$(COMPONENT_ARCHIVE) |
39 |
39 |
40 include ../../make-rules/prep.mk |
40 include ../../make-rules/prep.mk |
41 include ../../make-rules/justmake.mk |
41 include ../../make-rules/justmake.mk |
42 include ../../make-rules/ips.mk |
42 include ../../make-rules/ips.mk |
63 # are discoverable in perl's config via "perl -V". |
63 # are discoverable in perl's config via "perl -V". |
64 # I'm assuming our compilers live on a path that contains "SUNWspro". |
64 # I'm assuming our compilers live on a path that contains "SUNWspro". |
65 # If that changes the sed filter needs to change. |
65 # If that changes the sed filter needs to change. |
66 # |
66 # |
67 |
67 |
|
68 # That last bit re-runs bison to regenerate perly.h. |
|
69 |
68 COMPONENT_PRE_BUILD_ACTION= \ |
70 COMPONENT_PRE_BUILD_ACTION= \ |
69 (cd $(@D); $(ENV) -i \ |
71 (cd $(@D); $(ENV) -i \ |
70 MAKE=$(GMAKE) \ |
72 MAKE=$(GMAKE) \ |
71 PATH=$(dir $(CC.studio.32)):$(PATH) \ |
73 PATH=$(dir $(CC.studio.32)):$(PATH) \ |
72 $(CONFIG_SHELL) ./Configure \ |
74 $(CONFIG_SHELL) ./Configure \ |
90 cp config.sh config.sh_orig ; \ |
92 cp config.sh config.sh_orig ; \ |
91 gawk \ |
93 gawk \ |
92 '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \ |
94 '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \ |
93 !/^myuname=/ {print}' config.sh_orig \ |
95 !/^myuname=/ {print}' config.sh_orig \ |
94 | \ |
96 | \ |
95 sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh ) |
97 sed -e 's/[^ ]*SUNWspro[^ ]*//g' > config.sh ) ; \ |
96 |
98 ( $(RM) $(@D)/perly.act $(@D)/perly.tab $(@D)/perly.h; \ |
|
99 cd $(@D) ; $(GMAKE) regen_perly ) |
97 |
100 |
98 COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)" |
101 COMPONENT_INSTALL_ENV += DESTDIR="$(PROTO_DIR)" |
99 # |
102 # |
100 # perl's install path for sparc is based off the value of the |
103 # perl's install path for sparc is based off the value of the |
101 # "arch" command. So we must package that way also. |
104 # "arch" command. So we must package that way also. |