New package: MEGAsdk-3.2.8
This commit is contained in:
parent
6124f2c1b4
commit
2833ebb365
|
@ -2970,6 +2970,7 @@ libgtkdsv-3.so.0 gtkd-3.7.0_1
|
|||
libvted-3.so.0 gtkd-3.7.0_1
|
||||
libpeasd-3.so.0 gtkd-3.7.0_1
|
||||
libgstreamerd-3.so.0 gtkd-3.7.0_1
|
||||
libmega.so.30208 MEGAsdk-3.2.8_1
|
||||
libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
|
||||
libgpod.so.4 libgpod-0.8.3_1
|
||||
libi2c.so.0 i2c-tools-4.0_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
MEGAsdk
|
|
@ -0,0 +1 @@
|
|||
MEGAsdk
|
|
@ -0,0 +1,59 @@
|
|||
--- a/bindings/qt/sdk.pri
|
||||
+++ bindings/qt/sdk.pri
|
||||
@@ -2,7 +2,7 @@
|
||||
MEGASDK_BASE_PATH = $$PWD/../../
|
||||
|
||||
VPATH += $$MEGASDK_BASE_PATH
|
||||
-SOURCES += src/attrmap.cpp \
|
||||
+SOURCES -= src/attrmap.cpp \
|
||||
src/backofftimer.cpp \
|
||||
src/base64.cpp \
|
||||
src/command.cpp \
|
||||
@@ -41,7 +41,7 @@ SOURCES += src/attrmap.cpp \
|
||||
src/mega_utf8proc.cpp
|
||||
|
||||
CONFIG(USE_MEGAAPI) {
|
||||
- SOURCES += src/megaapi.cpp src/megaapi_impl.cpp \
|
||||
+ SOURCES += \
|
||||
bindings/qt/QTMegaRequestListener.cpp \
|
||||
bindings/qt/QTMegaTransferListener.cpp \
|
||||
bindings/qt/QTMegaGlobalListener.cpp \
|
||||
@@ -52,7 +52,6 @@ CONFIG(USE_MEGAAPI) {
|
||||
|
||||
# CONFIG += USE_LIBUV
|
||||
CONFIG(USE_LIBUV) {
|
||||
- SOURCES += src/mega_http_parser.cpp
|
||||
DEFINES += HAVE_LIBUV
|
||||
INCLUDEPATH += $$MEGASDK_BASE_PATH/bindings/qt/3rdparty/include/libuv
|
||||
win32 {
|
||||
@@ -98,12 +97,6 @@ win32 {
|
||||
}
|
||||
|
||||
|
||||
-unix {
|
||||
-SOURCES += src/posix/net.cpp \
|
||||
- src/posix/fs.cpp \
|
||||
- src/posix/waiter.cpp
|
||||
-}
|
||||
-
|
||||
HEADERS += include/mega.h \
|
||||
include/mega/account.h \
|
||||
include/mega/attrmap.h \
|
||||
@@ -169,9 +162,6 @@ win32 {
|
||||
}
|
||||
|
||||
unix {
|
||||
- !exists($$MEGASDK_BASE_PATH/include/mega/config.h) {
|
||||
- error("Configuration file not found! Please re-run configure script located in the project's root directory!")
|
||||
- }
|
||||
HEADERS += include/mega/posix/meganet.h \
|
||||
include/mega/posix/megasys.h \
|
||||
include/mega/posix/megafs.h \
|
||||
@@ -231,6 +221,7 @@ win32 {
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
+ LIBS += -lmega
|
||||
INCLUDEPATH += $$MEGASDK_BASE_PATH/include/mega/posix
|
||||
LIBS += -lsqlite3 -lrt
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
diff --git include/Makefile.am include/Makefile.am
|
||||
index 2cb4070e..0f2e28b1 100644
|
||||
--- include/Makefile.am
|
||||
+++ include/Makefile.am
|
||||
@@ -52,7 +52,8 @@ nobase_libmegainclude_HEADERS = \
|
||||
mega/mega_zxcvbn.h \
|
||||
mega/mega_dict-src.h \
|
||||
mega/gfx/freeimage.h \
|
||||
- mega/gfx/GfxProcCG.h
|
||||
+ mega/gfx/GfxProcCG.h \
|
||||
+ mega/mega_http_parser.h
|
||||
|
||||
if BUILD_MEGAAPI
|
||||
nobase_libmegainclude_HEADERS += megaapi.h megaapi_impl.h
|
|
@ -0,0 +1,57 @@
|
|||
# Template file for 'MEGAsdk'
|
||||
pkgname=MEGAsdk
|
||||
version=3.2.8
|
||||
revision=1
|
||||
wrksrc=sdk-${version}
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-megacmd --enable-chat --disable-examples $(vopt_with libuv)"
|
||||
make_build_args='LIBTOOLFLAGS="--tag=CXX"'
|
||||
hostmakedepends="autogen doxygen autoconf automake gettext libtool"
|
||||
makedepends="libcurl-devel c-ares-devel libressl-devel crypto++-devel
|
||||
zlib-devel sqlite-devel freeimage-devel libsodium-devel fuse-devel
|
||||
libuv-devel"
|
||||
checkdepends="gtest-devel"
|
||||
short_desc="The official client for cloud service mega.nz"
|
||||
maintainer="John <johnz@posteo.net>"
|
||||
license="2-clause-BSD"
|
||||
homepage="https://mega.nz"
|
||||
distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
|
||||
checksum=4344445d63f4a8a52570ed06da2aa8c3833644c24c947419f155ef305aefa0ea
|
||||
replaces="libmega>=0"
|
||||
|
||||
build_options="libuv"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl);;
|
||||
*) build_options_default="libuv";;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
MEGAsdk-qt_package() {
|
||||
depends="MEGAsdk>=${version}_${revision}"
|
||||
short_desc+=" - qt bindings"
|
||||
pkg_install() {
|
||||
for _f in ${wrksrc}/bindings/qt/*.{h,cpp,pri}; do
|
||||
vinstall ${_f} 644 usr/share/MEGAsdk/bindings/qt
|
||||
done
|
||||
}
|
||||
}
|
||||
|
||||
MEGAsdk-devel_package() {
|
||||
depends="MEGAsdk>=${version}_${revision} libcurl-devel crypto++-devel c-ares-devel
|
||||
sqlite-devel freeimage-devel libsodium-devel $(vopt_if libuv libuv-devel)"
|
||||
short_desc+=" - development files"
|
||||
replaces="libmega-devel>=0"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue