mirror of https://git.wownero.com/dsc/mxe.git
Merge pull request #1268 from pavelvat/add-qtsparkle
add package qtsparkle
This commit is contained in:
commit
30554433dd
|
@ -2345,6 +2345,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
|||
<td class="package">qtservice</td>
|
||||
<td class="website"><a href="https://qt.gitorious.org/qt-solutions/">Qt Solutions</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">qtsparkle_qt4</td>
|
||||
<td class="website"><a href="https://github.com/davidsansome/qtsparkle">qtsparkle</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">qtsvg</td>
|
||||
<td class="website"><a href="http://qt-project.org/">Qt</a></td>
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* This file is part of MXE.
|
||||
* See index.html for further information.
|
||||
*/
|
||||
|
||||
#include <qtsparkle/Updater>
|
||||
#include <QWidget>
|
||||
#include <QUrl>
|
||||
|
||||
int main()
|
||||
{
|
||||
QWidget w;
|
||||
qtsparkle::Updater* updater = new qtsparkle::Updater(
|
||||
QUrl("http://www.example.com/sparkle.xml"), &w);
|
||||
updater->SetVersion("1.0");
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue