@ -1,11 +1,11 @@
#
#
# This is free software, licensed under the GNU General Public License v2.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := ipfs-http-client
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_MAINTAINER := Leonid Esman <leonid.esman@gmail.com>
PKG_LICENSE := MIT
@ -16,12 +16,15 @@ PKG_SOURCE_URL:=https://github.com/vasild/cpp-ipfs-http-client.git
PKG_SOURCE_DATE := 2019-11-05
PKG_SOURCE_VERSION := 763e59ad698f3e3846f85df11e01c18ef3fbc401
PKG_MIRROR_HASH := a2b5721faf0d43ddb4a892245ef382666149c83f3f97e558e1a6acf2402fb9fd
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := nlohmannjson
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / i p f s - h t t p - c l i e n t / D e f a u l t / d e s c r i p t i o n
IPFS ( the InterPlanetary File System) is the Distributed Web.
IPFS ( the InterPlanetary File System) is the Distributed Web.
Specs, docs, sources, links: https://ipfs.io/ and https://github.com/ipfs.
This is Vasil Dimov' s C++ IPFS HTTP API client library.
e n d e f
@ -31,7 +34,7 @@ define Package/libipfs-http-client
CATEGORY:= Libraries
TITLE:= IPFS client library
URL:= https://github.com/vasild/cpp-ipfs-http-client
DEPENDS:= +libcurl +libstdcpp
DEPENDS:= +libcurl +libstdcpp +libatomic
e n d e f
d e f i n e P a c k a g e / l i b i p f s - h t t p - c l i e n t / d e s c r i p t i o n
@ -52,21 +55,27 @@ define Package/ipfs-http-client-tests/description
This package contains library tests.
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /include/* $( 1) /usr/include
$( CP) $( PKG_BUILD_DIR) /libipfs-http-client.a $( 1) /usr/lib
e n d e f
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS= ON \
-DENABLE_TESTING= ON
d e f i n e P a c k a g e / l i b i p f s - h t t p - c l i e n t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_BUILD_DIR) /libipfs-http-client.so* $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib /libipfs-http-client.so* $( 1) /usr/lib
e n d e f
d e f i n e P a c k a g e / i p f s - h t t p - c l i e n t - t e s t s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/ipfs-* $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/block $( 1) /usr/bin/ipfs-block
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/config $( 1) /usr/bin/ipfs-config
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/dht $( 1) /usr/bin/ipfs-dht
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/files $( 1) /usr/bin/ipfs-files
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/generic $( 1) /usr/bin/ipfs-generic
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/key $( 1) /usr/bin/ipfs-key
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/name $( 1) /usr/bin/ipfs-name
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/object $( 1) /usr/bin/ipfs-object
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/pin $( 1) /usr/bin/ipfs-pin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /test/swarm $( 1) /usr/bin/ipfs-swarm
e n d e f
$( eval $ ( call BuildPackage ,libipfs -http -client ) )