aboutsummaryrefslogtreecommitdiffstats
path: root/package/fprobe/Makefile
blob: fed7e3b540b40fbcb24720d34403729430a327e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $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)
PKG_CAT := bzcat

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,FPROBE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured:
	(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 $@

$(PKG_BUILD_DIR)/.built:
	$(MAKE) -C $(PKG_BUILD_DIR)
	touch $@

$(IPKG_FPROBE): 
	mkdir -p $(IDIR_FPROBE)/usr/bin
	$(CP) $(PKG_BUILD_DIR)/src/fprobe $(IDIR_FPROBE)/usr/bin/
	$(STRIP) $(IDIR_FPROBE)/usr/bin/*
	$(IPKG_BUILD) $(IDIR_FPROBE) $(PACKAGE_DIR)