3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=b400d03c0e39e3e78a7327ba78f789f0
10 PKG_SOURCE_URL
:=http
://www.cycom.se
/uploads
/36/19
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
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
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
26 ifneq ($(BR2_PACKAGE_RRS
),)
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
32 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-ssl
; )
33 -$(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 ifneq ($(BR2_PACKAGE_RRS_NOSSL
),)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
42 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-nossl
; )
47 install -d
-m0755
$(IDIR_RRS
)/usr
/bin
48 install -m0755
$(PKG_BUILD_DIR
)/rrs-ssl
$(IDIR_RRS
)/usr
/bin
/rrs
50 $(IPKG_BUILD
) $(IDIR_RRS
) $(PACKAGE_DIR
)
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
)
59 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
60 rm -f
$(PKG_BUILD_DIR
)/.built