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]
23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
24 # Modified by Aurelien Larcher, 2015.
27 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_NAME
= automake
30 COMPONENT_VERSION
= 1.15.1
32 COMPONENT_SUMMARY
= A Makefile generator
33 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/automake
/
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
36 COMPONENT_ARCHIVE_HASH
= \
37 sha256
:af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
38 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/pub
/gnu
/automake
/$(COMPONENT_ARCHIVE
)
39 COMPONENT_FMRI
= developer
/build
/automake-115
40 COMPONENT_CLASSIFICATION
=Development
/GNU
41 COMPONENT_LICENSE
= GPL-2.0
-only
42 COMPONENT_LICENSE_FILE
= COPYING
44 USE_DEFAULT_TEST_TRANSFORMS
= yes
46 include $(WS_MAKE_RULES
)/common.mk
48 # Testing expects GNU make
51 COMPONENT_VERSION_MAJOR
= $(subst $(space
),.
,$(wordlist
1,2,$(subst .
, ,$(HUMAN_VERSION
))))
53 CONFIGURE_OPTIONS
+= --docdir
=$(USRSHAREDOCDIR
)/$(COMPONENT_NAME
)-$(COMPONENT_VERSION_MAJOR
)
55 # Convert unversioned binary hardlinks and man page files to symlinks
56 COMPONENT_POST_INSTALL_ACTION
+= \
57 for f in aclocal automake
; do \
58 $(RM
) $(PROTOUSRBINDIR
)/$$f ; \
59 $(SYMLINK
) $$f-$(COMPONENT_VERSION_MAJOR
) $(PROTOUSRBINDIR
)/$$f ; \
60 $(RM
) $(PROTOUSRSHAREMAN1DIR
)/$$f.1 ; \
61 $(SYMLINK
) $$f-$(COMPONENT_VERSION_MAJOR
).1 $(PROTOUSRSHAREMAN1DIR
)/$$f.1 ; \
64 # We do not want the info index file
65 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) $(PROTOUSRSHAREDIR
)/info/dir ;
67 # Convert unversioned info files to versioned and create unversioned symlinks
68 COMPONENT_POST_INSTALL_ACTION
+= \
69 for f in automake-history.
info automake.
info automake.info-1 automake.info-2
; do \
70 $(MV
) $(PROTOUSRSHAREDIR
)/info/$$f \
71 $(PROTOUSRSHAREDIR
)/info/$${f
%.
*}-$(COMPONENT_VERSION_MAJOR
).
$${f\
#\#*.} ; \
72 $(SYMLINK
) $${f
%.
*}-$(COMPONENT_VERSION_MAJOR
).
$${f\
#\#*.} $(PROTOUSRSHAREDIR)/info/$$f ; \
75 # We do not want the README file in the aclocal directory
76 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) $(PROTOUSRSHAREDIR
)/aclocal
/README
;
78 # Auto-generated dependencies
79 REQUIRED_PACKAGES
+= runtime
/perl
80 REQUIRED_PACKAGES
+= shell/ksh93