Openwrt/openwrt/package/strace/Makefile

63 lines
1.4 KiB
Makefile
Raw Normal View History

2005-03-21 08:12:49 +00:00
# $Id$
2005-03-07 14:58:29 +00:00
include $(TOPDIR)/rules.mk
PKG_NAME:=strace
PKG_VERSION:=4.5.11
2005-03-07 14:58:29 +00:00
PKG_RELEASE:=1
PKG_MD5SUM:=28335e15c83456a3db055a0a0efcb4fe
2005-03-21 08:12:49 +00:00
PKG_SOURCE_URL:=@SF/strace
2005-03-07 14:58:29 +00:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_CAT:=bzcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(TOPDIR)/package/rules.mk
2005-03-07 14:58:29 +00:00
$(eval $(call PKG_template,STRACE,strace,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
2005-03-07 14:58:29 +00:00
$(PKG_BUILD_DIR)/.configured:
2005-03-07 14:58:29 +00:00
(cd $(PKG_BUILD_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
2005-03-07 14:58:29 +00:00
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
2005-03-07 14:58:29 +00:00
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--datadir=/usr/share \
--includedir=/usr/include \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
2005-03-07 14:58:29 +00:00
--localstatedir=/var \
--mandir=/usr/share/man \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
2005-03-07 14:58:29 +00:00
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
);
2005-05-19 21:22:09 +00:00
touch $@
2005-03-07 14:58:29 +00:00
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC)
touch $@
2005-03-07 14:58:29 +00:00
$(IPKG_STRACE):
mkdir -p $(IDIR_STRACE)/usr/sbin
2006-02-01 23:53:19 +00:00
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/
$(STRIP) $(IDIR_STRACE)/usr/sbin/*
$(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR)
mostlyclean:
$(MAKE) -C $(PKG_BUILD_DIR) clean
rm -f $(PKG_BUILD_DIR)/.built