1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=b400d03c0e39e3e78a7327ba78f789f0
8 PKG_SOURCE_URL
:=http
://www.cycom.se
/uploads
/36/19
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
13 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
15 include $(TOPDIR
)/package
/rules.mk
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
)))
20 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
23 $(PKG_BUILD_DIR
)/.built
:
24 ifneq ($(BR2_PACKAGE_RRS
),)
25 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
30 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-ssl
; )
31 -$(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 ifneq ($(BR2_PACKAGE_RRS_NOSSL
),)
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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" \
40 ( cd
$(PKG_BUILD_DIR
); mv rrs rrs-nossl
; )
45 install -d
-m0755
$(IDIR_RRS
)/usr
/bin
46 install -m0755
$(PKG_BUILD_DIR
)/rrs-ssl
$(IDIR_RRS
)/usr
/bin
/rrs
48 $(IPKG_BUILD
) $(IDIR_RRS
) $(PACKAGE_DIR
)
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
)
57 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
58 rm -f
$(PKG_BUILD_DIR
)/.built