add netperf package (thanks to Janos)
[openwrt.git] / openwrt / package / raddump / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=raddump
4 PKG_VERSION:=0.3.1
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=f8c29c67141ea78bb6ae8b97d5149480
7 PKG_SOURCE_URL:=@SF/raddump
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_CAT:=zcat
11
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,RADDUMP,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 ./configure \
23 ac_cv_c_bigendian=no \
24 ac_cv_func_malloc_0_nonnull=yes \
25 ac_cv_func_realloc_0_nonnull=yes \
26 $(DISABLE_NLS) \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 --program-prefix="" \
41 --with-gnu-ld \
42 );
43 touch $@
44
45 $(PKG_BUILD_DIR)/.built:
46 $(MAKE) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
47 touch $@
48
49 $(IPKG_RADDUMP):
50 mkdir -p $(IDIR_RADDUMP)
51 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_RADDUMP)/
52 $(RSTRIP) $(IDIR_RADDUMP)
53 $(IPKG_BUILD) $(IDIR_RADDUMP) $(PACKAGE_DIR)
This page took 0.047235 seconds and 5 git commands to generate.