source: freewrt/package/netperf/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= netperf
10PKG_VERSION:= 2.3pl1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= b74314d78af31cb13516fb9a372d2e86
13
14PKG_SOURCE_URL:= ftp://ftp.netperf.org/netperf/archive/ \
15 ftp://ftp.cup.hp.com/dist/networking/benchmarks/netperf/
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,NETPERF,netperf,$(PKG_VERSION)$(PKG_RELEASE),$(ARCH)))
21
22$(WRKBUILD)/.configured:
23 touch $@
24
25$(WRKBUILD)/.built:
26 $(MAKE) -C $(WRKBUILD) \
27 TARGET_NETPERF_HOME="/etc/netperf.conf" \
28 TARGET_CC=$(TARGET_CROSS)gcc \
29 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
30 TARGET_LIBS="" \
31 all
32 touch $@
33
34$(IPKG_NETPERF):
35 install -d -m0755 $(IDIR_NETPERF)/etc/init.d
36 install -m0755 ./files/netserver.init $(IDIR_NETPERF)/etc/init.d/S51netserver
37 install -d -m0755 $(IDIR_NETPERF)/usr/bin
38 install -m0755 $(WRKBUILD)/netperf $(IDIR_NETPERF)/usr/bin/
39 install -m0755 $(WRKBUILD)/netserver $(IDIR_NETPERF)/usr/bin/
40 $(RSTRIP) $(IDIR_NETPERF)
41 $(IPKG_BUILD) $(IDIR_NETPERF) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.