d49f3e2b35867ada5f6a58c5d7a4e49f06fa78af
[feed/packages.git] / devel / automake / Makefile
1 #
2 # Copyright (C) 2015-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=automake
11 PKG_VERSION:=1.15.1
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=@GNU/automake
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
16 PKG_HASH:=af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf
17 PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
18 PKG_LICENSE:=GPL-3.0-or-later
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/automake
25 SECTION:=devel
26 CATEGORY:=Development
27 TITLE:=automake
28 URL:=https://www.gnu.org/software/automake/
29 DEPENDS:=+autoconf +perlbase-thread +perlbase-attributes
30 endef
31
32 define Package/automake/description
33 Automake is a tool for automatically generating Makefile.in files compliant
34 with the GNU Coding Standards.
35 endef
36
37 FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
38
39 AM_VERSION:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
40
41 define Package/automake/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(AM_VERSION) \
44 $(1)/usr/bin/automake-$(AM_VERSION)
45 $(LN) automake-$(AM_VERSION) $(1)/usr/bin/automake
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(AM_VERSION) \
47 $(1)/usr/bin/aclocal-$(AM_VERSION)
48 $(LN) aclocal-$(AM_VERSION) $(1)/usr/bin/aclocal
49 $(FIX_PATHS) $(1)/usr/bin/automake-$(AM_VERSION)
50 $(FIX_PATHS) $(1)/usr/bin/aclocal-$(AM_VERSION)
51 $(INSTALL_DIR) $(1)/usr/share/automake-$(AM_VERSION)
52
53 for dir in \
54 automake-$(AM_VERSION) automake-$(AM_VERSION)/Automake \
55 automake-$(AM_VERSION)/am aclocal \
56 aclocal-$(AM_VERSION) aclocal-$(AM_VERSION)/internal \
57 ; do \
58 $(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
59 for file in $$$$(cd $(PKG_INSTALL_DIR) && \
60 find usr/share/$$$$dir -maxdepth 1 -type f); do \
61 $(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
62 $(1)/$$$$file; \
63 done; \
64 done
65 endef
66
67 $(eval $(call BuildPackage,automake))