add netperf package (thanks to Janos)
[openwrt.git] / openwrt / package / rrs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=rrs
6 PKG_VERSION:=1.70
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b400d03c0e39e3e78a7327ba78f789f0
9
10 PKG_SOURCE_URL:=http://www.cycom.se/uploads/36/19
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,RRS,rrs,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,RRS_NOSSL,rrs-nossl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
26 ifneq ($(BR2_PACKAGE_RRS),)
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC="$(TARGET_CC)" \
29 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
30 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lutil -lssl -lcrypto" \
31 generic
32 ( cd $(PKG_BUILD_DIR); mv rrs rrs-ssl; )
33 -$(MAKE) -C $(PKG_BUILD_DIR) \
34 clean
35 endif
36 ifneq ($(BR2_PACKAGE_RRS_NOSSL),)
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CC="$(TARGET_CC)" \
39 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
40 LDFLAGSNOSSL="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lutil" \
41 generic-nossl
42 ( cd $(PKG_BUILD_DIR); mv rrs rrs-nossl; )
43 endif
44 touch $@
45
46 $(IPKG_RRS):
47 install -d -m0755 $(IDIR_RRS)/usr/bin
48 install -m0755 $(PKG_BUILD_DIR)/rrs-ssl $(IDIR_RRS)/usr/bin/rrs
49 $(RSTRIP) $(IDIR_RRS)
50 $(IPKG_BUILD) $(IDIR_RRS) $(PACKAGE_DIR)
51
52 $(IPKG_RRS_NOSSL):
53 install -d -m0755 $(IDIR_RRS_NOSSL)/usr/bin
54 install -m0755 $(PKG_BUILD_DIR)/rrs-nossl $(IDIR_RRS_NOSSL)/usr/bin/rrs
55 $(RSTRIP) $(IDIR_RRS_NOSSL)
56 $(IPKG_BUILD) $(IDIR_RRS_NOSSL) $(PACKAGE_DIR)
57
58 mostlyclean:
59 -$(MAKE) -C $(PKG_BUILD_DIR) clean
60 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.039015 seconds and 5 git commands to generate.