We're currently preparing a change in LEDE that will change the host staging dirs in a way that might break the sed commands used by the automake Makefile. Change the command in a way that doesn't depend on the path of the staging dir. While it would be nicer to modify the configure script to use the correct path in the first place, this doesn't work for the perl path, as perl is used in shebang lines and must thus be an absolute path. Some scripts are used both during build and on the target system, so fixing up the scripts in the install step seems like the best option. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=automake
|
|
PKG_VERSION:=1.15
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE_URL:=@GNU/automake
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_MD5SUM:=9a1ddb0e053474d9d1105cfe39b0c48d
|
|
PKG_MAINTAINER:=Heinrich Schuchardt <xypron.glpk@gmx.de>
|
|
PKG_LICENSE:=GPL-3.0+
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/automake
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
TITLE:=automake
|
|
URL:=https://www.gnu.org/software/automake/
|
|
DEPENDS:=+autoconf +perlbase-thread +perlbase-attributes
|
|
endef
|
|
|
|
define Package/automake/description
|
|
Automake is a tool for automatically generating Makefile.in files compliant
|
|
with the GNU Coding Standards.
|
|
endef
|
|
|
|
FIX_PATHS = $(SED) '1c \#!/usr/bin/perl' -e 's| /[^ ]*/bin/perl| /usr/bin/perl|g'
|
|
|
|
define Package/automake/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/automake-$(PKG_VERSION) \
|
|
$(1)/usr/bin/automake-$(PKG_VERSION)
|
|
$(LN) automake-$(PKG_VERSION) $(1)/usr/bin/automake
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aclocal-$(PKG_VERSION) \
|
|
$(1)/usr/bin/aclocal-$(PKG_VERSION)
|
|
$(LN) aclocal-$(PKG_VERSION) $(1)/usr/bin/aclocal
|
|
$(FIX_PATHS) $(1)/usr/bin/automake-$(PKG_VERSION)
|
|
$(FIX_PATHS) $(1)/usr/bin/aclocal-$(PKG_VERSION)
|
|
$(INSTALL_DIR) $(1)/usr/share/automake-$(PKG_VERSION)
|
|
|
|
for dir in \
|
|
automake-$(PKG_VERSION) automake-$(PKG_VERSION)/Automake \
|
|
automake-$(PKG_VERSION)/am aclocal \
|
|
aclocal-$(PKG_VERSION) aclocal-$(PKG_VERSION)/internal \
|
|
; do \
|
|
$(INSTALL_DIR) $(1)/usr/share/$$$$dir; \
|
|
for file in $$$$(cd $(PKG_INSTALL_DIR) && \
|
|
find usr/share/$$$$dir -maxdepth 1 -type f); do \
|
|
$(INSTALL_DATA) $$(PKG_INSTALL_DIR)/$$$$file \
|
|
$(1)/$$$$file; \
|
|
done; \
|
|
done
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,automake))
|