Merge pull request #2693 from dibdot/mc
[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
12 PKG_RELEASE:=3
13
14 PKG_SOURCE_URL:=@GNU/automake
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=716946a105ca228ab545fc37a70df3a3
17 PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
18 PKG_LICENSE:=GPL-3.0+
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 define Package/automake/install
38 $(INSTALL_DIR) $(1)/usr/bin
39 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(PKG_VERSION) \
40 $(1)/usr/bin/automake-$(PKG_VERSION)
41 $(LN) automake-$(PKG_VERSION) $(1)/usr/bin/automake
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(PKG_VERSION) \
43 $(1)/usr/bin/aclocal-$(PKG_VERSION)
44 $(LN) aclocal-$(PKG_VERSION) $(1)/usr/bin/aclocal
45 $(SED) 's|$(STAGING_DIR_HOST)|/usr|g' \
46 $(1)/usr/bin/automake-$(PKG_VERSION)
47 $(SED) 's|$(STAGING_DIR_HOST)|/usr|g' \
48 $(1)/usr/bin/aclocal-$(PKG_VERSION)
49 $(INSTALL_DIR) $(1)/usr/share/automake-$(PKG_VERSION)
50
51 for dir in \
52 automake-$(PKG_VERSION) automake-$(PKG_VERSION)/Automake \
53 automake-$(PKG_VERSION)/am aclocal \
54 aclocal-$(PKG_VERSION) aclocal-$(PKG_VERSION)/internal \
55 ; do \
56 $(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
57 for file in $$$$(cd $(PKG_INSTALL_DIR) && \
58 find usr/share/$$$$dir -maxdepth 1 -type f); do \
59 $(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
60 $(1)/$$$$file; \
61 done; \
62 done
63 endef
64
65 $(eval $(call BuildPackage,automake))