From dae6af8e838bfa597974d164eba7bfb5550d46d4 Mon Sep 17 00:00:00 2001 From: Pavel Vatagin Date: Mon, 21 Mar 2016 23:27:34 +0300 Subject: add package qtsparkle --- index.html | 4 ++++ src/qtsparkle_qt4-test.cpp | 18 ++++++++++++++++++ src/qtsparkle_qt4.mk | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 src/qtsparkle_qt4-test.cpp create mode 100644 src/qtsparkle_qt4.mk diff --git a/index.html b/index.html index 5f363f7..70ccdfb 100644 --- a/index.html +++ b/index.html @@ -2346,6 +2346,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) Qt Solutions + qtsparkle_qt4 + qtsparkle + + qtsvg Qt diff --git a/src/qtsparkle_qt4-test.cpp b/src/qtsparkle_qt4-test.cpp new file mode 100644 index 0000000..a72b034 --- /dev/null +++ b/src/qtsparkle_qt4-test.cpp @@ -0,0 +1,18 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include +#include +#include + +int main() +{ + QWidget w; + qtsparkle::Updater* updater = new qtsparkle::Updater( + QUrl("http://www.example.com/sparkle.xml"), &w); + updater->SetVersion("1.0"); + + return 0; +} diff --git a/src/qtsparkle_qt4.mk b/src/qtsparkle_qt4.mk new file mode 100644 index 0000000..bf194b6 --- /dev/null +++ b/src/qtsparkle_qt4.mk @@ -0,0 +1,43 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := qtsparkle_qt4 +$(PKG)_IGNORE := +$(PKG)_VERSION := 8882e6ef86cdb79db7932307309d005411fd0c20 +$(PKG)_CHECKSUM := 86f6f010356e05e6efb956b5643ce587ffbbae45e8e7dc1b25b4b1dcf865b5f3 +$(PKG)_SUBDIR := qtsparkle-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/davidsansome/qtsparkle/archive/$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := gcc qt + +define $(PKG)_UPDATE + $(call MXE_GET_GITHUB_TAGS, davidsansome/qtsparkle) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' \ + -DBUILD_STATIC=$(CMAKE_STATIC_BOOL) + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install + + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'prefix=$(PREFIX)/$(TARGET)'; \ + echo 'exec_prefix=$${prefix}'; \ + echo 'libdir=$${exec_prefix}/lib'; \ + echo 'includedir=$${prefix}/include'; \ + echo ''; \ + echo 'Name: $(PKG)'; \ + echo 'Version: '; \ + echo 'Description: $(PKG)'; \ + echo 'Requires: QtCore QtGui QtNetwork QtXml'; \ + echo 'Libs: -L$${libdir} -lqtsparkle'; \ + echo 'Cflags: -I$${includedir}';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + + $(TARGET)-g++ \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `$(TARGET)-pkg-config $(PKG) --cflags --libs` +endef -- cgit v0.12