openwrt-owl/openwrt/package/fprobe/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

2005-04-30 19:52:06 +00:00
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME := fprobe
PKG_VERSION := 1.1
PKG_RELEASE := 1
PKG_MD5SUM := 65850d0470078269b33eee58cba77ac2
PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL := @SF/fprobe
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
2005-04-30 19:52:06 +00:00
PKG_CAT := bzcat
include $(TOPDIR)/package/rules.mk
2005-04-30 19:52:06 +00:00
$(eval $(call PKG_template,FPROBE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
2005-04-30 19:52:06 +00:00
$(PKG_BUILD_DIR)/.configured:
2005-04-30 19:52:06 +00:00
(cd $(PKG_BUILD_DIR) ; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib \
--datadir=/usr/share \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--localstatedir=/var \
--sysconfdir=/etc \
--with-piddir=/var \
--with-pcap=$(STAGING_DIR)/usr/include \
--with-libpcap=$(STAGING_DIR)/usr/lib \
--with-membulk=index8 \
--with-hash=xor8 \
$(DISABLE_NLS) \
)
touch $@
2005-04-30 19:52:06 +00:00
$(PKG_BUILD_DIR)/.built:
2005-04-30 19:52:06 +00:00
$(MAKE) -C $(PKG_BUILD_DIR)
touch $@
2005-04-30 19:52:06 +00:00
$(IPKG_FPROBE):
mkdir -p $(IDIR_FPROBE)/usr/bin
2006-02-01 23:53:19 +00:00
$(CP) $(PKG_BUILD_DIR)/src/fprobe $(IDIR_FPROBE)/usr/bin/
$(STRIP) $(IDIR_FPROBE)/usr/bin/*
$(IPKG_BUILD) $(IDIR_FPROBE) $(PACKAGE_DIR)