@ -8,7 +8,7 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libcoap
PKG_NAME := libcoap
PKG_RELEASE := 3
PKG_RELEASE := 4
PKG_SOURCE_PROTO := git
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/obgm/libcoap
PKG_SOURCE_URL := https://github.com/obgm/libcoap
@ -39,10 +39,32 @@ define Package/libcoap/description
Constrained Application Protocol ( RFC 7252) library
Constrained Application Protocol ( RFC 7252) library
e n d e f
e n d e f
d e f i n e P a c k a g e / c o a p - c l i e n t
SECTION:= utils
CATEGORY:= Utilities
DEPENDS:= +libcoap
TITLE:= CoAP ( RFC 7252) client tool
e n d e f
d e f i n e P a c k a g e / c o a p - c l i e n t / d e s c r i p t i o n
Constrained Application Protocol ( RFC7252) client tool
e n d e f
d e f i n e P a c k a g e / c o a p - s e r v e r
SECTION:= net
CATEGORY:= Network
DEPENDS:= +libcoap
TITLE:= CoAP ( RFC 7252) server programs
e n d e f
d e f i n e P a c k a g e / c o a p - s e r v e r / d e s c r i p t i o n
Constrained Application Protocol ( RFC 7252) server and resource directory server
e n d e f
TARGET_CFLAGS += $( FPIC)
TARGET_CFLAGS += $( FPIC)
CONFIGURE_ARGS += \
CONFIGURE_ARGS += \
--disable-examples \
--en able-examples \
--disable-documentation
--disable-documentation
i f e q ( $( CONFIG_BIG_ENDIAN ) , y )
i f e q ( $( CONFIG_BIG_ENDIAN ) , y )
@ -62,4 +84,17 @@ define Package/libcoap/install
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libcoap-1.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libcoap-1.so* $( 1) /usr/lib/
e n d e f
e n d e f
d e f i n e P a c k a g e / c o a p - c l i e n t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/coap-client $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / c o a p - s e r v e r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/coap-server $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/coap-rd $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,libcoap ) )
$( eval $ ( call BuildPackage ,libcoap ) )
$( eval $ ( call BuildPackage ,coap -client ) )
$( eval $ ( call BuildPackage ,coap -server ) )