diff --git a/projects/mtg/debian_harmattan/README b/projects/mtg/debian_harmattan/README new file mode 100644 index 000000000..8ed8910ef --- /dev/null +++ b/projects/mtg/debian_harmattan/README @@ -0,0 +1,6 @@ +The Debian Package wagic +---------------------------- + +Comments regarding the Package + + -- Yann Fri, 29 Jul 2011 20:21:58 +0200 diff --git a/projects/mtg/debian_harmattan/Res.txt b/projects/mtg/debian_harmattan/Res.txt new file mode 100644 index 000000000..af817ad44 --- /dev/null +++ b/projects/mtg/debian_harmattan/Res.txt @@ -0,0 +1,2 @@ +/home/user/MyDocs/wagic/Res/ +/opt/wagic/bin/Res/ diff --git a/projects/mtg/debian_harmattan/changelog b/projects/mtg/debian_harmattan/changelog new file mode 100644 index 000000000..19022b296 --- /dev/null +++ b/projects/mtg/debian_harmattan/changelog @@ -0,0 +1,5 @@ +wagic (0.16.0meego0) unstable; urgency=low + + * Initial Release. + + -- Xawotihs Fri, 29 Jul 2011 20:21:58 +0200 diff --git a/projects/mtg/debian_harmattan/compat b/projects/mtg/debian_harmattan/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/projects/mtg/debian_harmattan/compat @@ -0,0 +1 @@ +7 diff --git a/projects/mtg/debian_harmattan/control b/projects/mtg/debian_harmattan/control new file mode 100644 index 000000000..b210a6813 --- /dev/null +++ b/projects/mtg/debian_harmattan/control @@ -0,0 +1,18 @@ +Source: wagic +Section: user/other +Priority: optional +Maintainer: Yann +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: http://code.google.com/p/wagic/ +XSBC-Bugtracker: http://code.google.com/p/wagic/issues/list + +Package: wagic +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: + Wagic is an heroic fantasy collectible trading card game + In Wagic, you play as a wizard against the CPU with your army of minions. You start the game with a small collection of cards (symbolizing creatures and spells), and as you win battles against the AI, you earn credits that allow you to buy more cards and build more powerful decks. + As you play, you unlock cards and new game modes, so Wagic is much more than a simple card simulation. Wagic features several thousands of cards in the official release,but if that’s not enough for you, it is highly customizable and allows to create your own cards and mods. +XSBC-Maemo-Display-Name: wagic +XB-Maemo-Icon-26: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAO6wAADxIBtXGxVgAADBdJREFUaIHtmX2MXcV5xp/3nTnnnvu5e9e7NrvG9q5tbMzW5iNg0iQlpqRSERFGSr0kprQCp0Kqk0AhtKglsbchIVFcVST9ICmVHD6aiDg0BEEoCcamrZ24EBBm7Tr+XHtZe727d/fevefe8zEzb/+wTRCxjQm4VSU/0vnvzDvPb87MeWfeAc7pnM7pnM7pnM7p/0501iKLnD42kbwf3bwzwJo1jN5ewkAHAaOMtgLNqYy82W6wbYbMqYxQgoSjbNnTHGZtQgpanTq2sUKeL7HRaTGZCA+jbIAOd7L4J/oAdgNB4DA8bNHf784MYM0a7kRXECOnbcDKaOvlE03ixSSJJvKNUJoR8WKyTmvlJBBHJadZw9lTx2YlRMY5UbEyMhazS5i0e3v8N036RpiUa3JgavpwiM5Og74+e3qANWsY6NUd+bAtiVVWs8o4JZ4zUFBMnj1mMFVKAECL1VYQkEKJhbRxjhTTSeOTE7GsLIuLHcmIciqGdmKdBALNJ2KfUKqUkINV2sapzoyWa2FjEAcS9Pc7fUqAri5VqqNgUp7vKGgZN14A6zw0Mw7sftWBYykVJrVTBFjhO+Ivrrr+wv3LLlmSgaiLAJxkqlMG1oRy9cZbPrOzOj2wDBEHXQ27FMQowOLYc0IKMNaoXGhadKzGi/5RTPXWACSnBhguk2Sa5ER5izI7zrtn+oOfu/piam/N5rrAhV8Z4yKueHbl6j3V1ioR0vuCv3tw6/NfPnTVi1tuXn3zLpTauuDQAhIDUABwFlG0r9m35ZZ7X5vsHFNKYoLTnhj99Nwb1l0xN53d0dkCcOdb+sgCKos/+69r/uo7e3v25cVyvW2MjqOdQis/xtlJ1qzUtAkp85MHL9txjd3wyWI2pGyuCEEWUB0gyuHubUu/q5Rr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/projects/mtg/debian_harmattan/copyright b/projects/mtg/debian_harmattan/copyright new file mode 100644 index 000000000..219220acc --- /dev/null +++ b/projects/mtg/debian_harmattan/copyright @@ -0,0 +1,27 @@ +Copyright: + +Copyright (c) 2008-2009, WilLoW + +All rights reserved. + +License: + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, +EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is (C) 2011, Xawotihs and is licensed under the BSD. diff --git a/projects/mtg/debian_harmattan/rules b/projects/mtg/debian_harmattan/rules new file mode 100755 index 000000000..dd8a9eecf --- /dev/null +++ b/projects/mtg/debian_harmattan/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + +APPNAME := wagic +builddir: + mkdir -p builddir + +builddir/Makefile: builddir + cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro +# cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro + + +build: build-stamp + +build-stamp: builddir/Makefile + dh_testdir + + # Add here commands to compile the package. + cd builddir && $(MAKE) # Uncomment this line for use without Qt Creator + #docbook-to-man debian/wagic.sgml > wagic.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + # $(MAKE) clean + rm -rf builddir + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wagic. + cd builddir && $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/$(APPNAME) install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps # Uncomment this line for use without Qt Creator + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/projects/mtg/debian_harmattan/wagic.desktop b/projects/mtg/debian_harmattan/wagic.desktop new file mode 100644 index 000000000..8270a61a9 --- /dev/null +++ b/projects/mtg/debian_harmattan/wagic.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Name=wagic +Exec=invoker --single-instance --type=e /opt/wagic/bin/wagic +Icon=wagic-80x80 +X-Window-Icon= +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable diff --git a/projects/mtg/wagic-80x80.png b/projects/mtg/wagic-80x80.png new file mode 100644 index 000000000..a3c1ff4fb Binary files /dev/null and b/projects/mtg/wagic-80x80.png differ diff --git a/projects/mtg/wagic-Qt.pro b/projects/mtg/wagic-qt.pro similarity index 92% rename from projects/mtg/wagic-Qt.pro rename to projects/mtg/wagic-qt.pro index b4f3a3646..5b14d0da5 100644 --- a/projects/mtg/wagic-Qt.pro +++ b/projects/mtg/wagic-qt.pro @@ -10,6 +10,7 @@ VERSION = 0.16.0 TARGET = wagic TEMPLATE = app unix|macx:QMAKE_CXXFLAGS += -Wno-unused-parameter +unix|macx:!maemo5:QMAKE_CXXFLAGS += -Werror windows:DEFINES += WIN32 windows:DEFINES += _CRT_SECURE_NO_WARNINGS unix|macx:DEFINES += LINUX @@ -19,6 +20,15 @@ DEFINES += USE_PHONON maemo5 { QT += dbus } + +exists($$QMAKE_INCDIR_QT"/../qmsystem2/qmkeys.h"):!contains(MEEGO_EDITION,harmattan): { + MEEGO_VERSION_MAJOR = 1 + MEEGO_VERSION_MINOR = 2 + MEEGO_VERSION_PATCH = 0 + MEEGO_EDITION = harmattan + DEFINES += MEEGO_EDITION_HARMATTAN +} + windows:INCLUDEPATH += ../../JGE/Dependencies/include windows:INCLUDEPATH += extra unix:!symbian:INCLUDEPATH += /usr/include/GL @@ -33,7 +43,6 @@ symbian:DEFINES += FORCE_GLES symbian:DEFINES += QT_OPENGL_ES_1 unix:LIBS += -lz - PRECOMPILED_HEADER = include/PrecompiledHeader.h # MGT @@ -338,9 +347,9 @@ maemo5: { INSTALLS += target \ desktop \ icon \ - res \ restxt \ launcher \ + res \ target.path = $$BINDIR @@ -361,8 +370,31 @@ maemo5: { launcher.files += debian/launcher } -# Meego/maemo 6 packaging (incomplete) +# Meego/maemo 6 packaging (no launcher) unix:!symbian:!maemo5 { - target.path = /opt/wagic/bin - INSTALLS += target + # Variables + BINDIR = /opt/wagic/bin + RESDIR = /opt/wagic/bin/Res + ICONDIR = /usr/share + DEFINES += RESDIR=\\\"$$RESDIR\\\" + + INSTALLS += target \ + desktop \ + icon \ + restxt \ + res \ + + target.path = $$BINDIR + + desktop.path = /usr/share/applications + desktop.files += debian_harmattan/wagic.desktop + + icon.files = wagic-80x80.png + icon.path = /usr/share/icons/hicolor/64x64/apps + + res.path = $$RESDIR + res.files += bin/Res/* + + restxt.path = $$BINDIR + restxt.files += debian/Res.txt }