prometheus-node-exporter-lua: add dawn exporter
[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 PKG_CPE_ID:=cpe:/a:gnu:automake
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/automake
26 SECTION:=devel
27 CATEGORY:=Development
28 TITLE:=automake
29 URL:=https://www.gnu.org/software/automake/
30 DEPENDS:=+autoconf +perlbase-thread +perlbase-attributes
31 endef
32
33 define Package/automake/description
34 Automake is a tool for automatically generating Makefile.in files compliant
35 with the GNU Coding Standards.
36 endef
37
38 FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
39
40 AM_VERSION:=$(word 1,$(subst ., ,$(PKG_VERSION))).$(word 2,$(subst ., ,$(PKG_VERSION)))
41
42 define Package/automake/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(AM_VERSION) \
45 $(1)/usr/bin/automake-$(AM_VERSION)
46 $(LN) automake-$(AM_VERSION) $(1)/usr/bin/automake
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(AM_VERSION) \
48 $(1)/usr/bin/aclocal-$(AM_VERSION)
49 $(LN) aclocal-$(AM_VERSION) $(1)/usr/bin/aclocal
50 $(FIX_PATHS) $(1)/usr/bin/automake-$(AM_VERSION)
51 $(FIX_PATHS) $(1)/usr/bin/aclocal-$(AM_VERSION)
52 $(INSTALL_DIR) $(1)/usr/share/automake-$(AM_VERSION)
53
54 for dir in \
55 automake-$(AM_VERSION) automake-$(AM_VERSION)/Automake \
56 automake-$(AM_VERSION)/am aclocal \
57 aclocal-$(AM_VERSION) aclocal-$(AM_VERSION)/internal \
58 ; do \
59 $(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
60 for file in $$$$(cd $(PKG_INSTALL_DIR) && \
61 find usr/share/$$$$dir -maxdepth 1 -type f); do \
62 $(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
63 $(1)/$$$$file; \
64 done; \
65 done
66 endef
67
68 $(eval $(call BuildPackage,automake))