Marcel Telka
2024-04-05 f228266143fa00a0d993ef25540014f5fea6ca10
commit | author | age
abf67a 1 #
AL 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
a3b8a1 24 # Modified by Aurelien Larcher, 2015-2020.
abf67a 25 #
AL 26
27 include ../../../make-rules/shared-macros.mk
28
8dc1cb 29 COMPONENT_NAME=         automake
0e8f84 30 COMPONENT_VERSION=    1.16.5
MT 31 COMPONENT_REVISION=    2
32 COMPONENT_SUMMARY=    A Makefile generator
3b6ddd 33 COMPONENT_PROJECT_URL=  https://www.gnu.org/software/automake/ 
0e8f84 34 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
MT 35 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
36 COMPONENT_ARCHIVE_HASH=    \
37     sha256:f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
8dc1cb 38 COMPONENT_ARCHIVE_URL=  https://ftp.gnu.org/pub/gnu/automake/$(COMPONENT_ARCHIVE)
0e8f84 39 COMPONENT_FMRI=        developer/build/automake-116
MT 40 COMPONENT_CLASSIFICATION=Development/GNU
41 COMPONENT_LICENSE=    GPL-2.0-only
42 COMPONENT_LICENSE_FILE=    COPYING
43
44 USE_DEFAULT_TEST_TRANSFORMS = yes
abf67a 45
AL 46 include $(WS_MAKE_RULES)/common.mk
47
0e8f84 48 # Testing expects GNU make
MT 49 PATH = $(PATH.gnu)
abf67a 50
0e8f84 51 COMPONENT_VERSION_MAJOR = $(subst $(space),.,$(wordlist 1,2,$(subst ., ,$(HUMAN_VERSION))))
abf67a 52
0e8f84 53 CONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)/automake-$(COMPONENT_VERSION_MAJOR)
abf67a 54
0e8f84 55 # Convert unversioned binary hardlinks and man page files to symlinks
MT 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 ; \
62     done ;
63
64 # We do not want the info index file
65 COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTOUSRSHAREDIR)/info/dir ;
66
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 ; \
73     done ;
74
75 # We do not want the README file in the aclocal directory
76 COMPONENT_POST_INSTALL_ACTION += $(RM) $(PROTOUSRSHAREDIR)/aclocal/README ;
abf67a 77
AL 78 # Auto-generated dependencies
0e8f84 79 REQUIRED_PACKAGES += runtime/perl
8dc1cb 80 REQUIRED_PACKAGES += shell/ksh93