kumquat-buildroot/package/sed/sed.mk
Thomas Petazzoni 300f9c9c9d package: remove useless arguments from AUTOTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
AUTOTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:12:27 +02:00

27 lines
632 B
Makefile

#############################################################
#
# sed
#
#############################################################
SED_VERSION = 4.2.1
SED_SOURCE = sed-$(SED_VERSION).tar.gz
SED_SITE = $(BR2_GNU_MIRROR)/sed
SED_CONF_OPT = --bindir=/usr/bin \
--libdir=/lib \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--include=$(STAGING_DIR)/usr/include
define SED_MOVE_BINARY
mv $(TARGET_DIR)/usr/bin/sed $(TARGET_DIR)/bin/
endef
SED_POST_INSTALL_TARGET_HOOKS = SED_MOVE_BINARY
$(eval $(call AUTOTARGETS))