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