svn commit: r399549 - in head/games: . solarus-quest-editor solarus-quest-editor/files
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sat Oct 17 17:54:53 UTC 2015
Author: danilo
Date: Sat Oct 17 17:54:51 2015
New Revision: 399549
URL: https://svnweb.freebsd.org/changeset/ports/399549
Log:
- New port: games/solarus-quest-editor
Solarus Quest Editor is a graphical user interface
to create and modify quests for the Solarus engine.
WWW: http://www.solarus-games.org/engine/solarus-quest-editor
Added:
head/games/solarus-quest-editor/
head/games/solarus-quest-editor/Makefile (contents, props changed)
head/games/solarus-quest-editor/distinfo (contents, props changed)
head/games/solarus-quest-editor/files/
head/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h (contents, props changed)
head/games/solarus-quest-editor/files/patch-src_gui_dialog__properties__table.cpp (contents, props changed)
head/games/solarus-quest-editor/files/patch-src_gui_strings__editor.cpp (contents, props changed)
head/games/solarus-quest-editor/files/patch-src_quest__runner.cpp (contents, props changed)
head/games/solarus-quest-editor/pkg-descr (contents, props changed)
Modified:
head/games/Makefile
Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile Sat Oct 17 17:51:18 2015 (r399548)
+++ head/games/Makefile Sat Oct 17 17:54:51 2015 (r399549)
@@ -897,6 +897,7 @@
SUBDIR += sol
SUBDIR += solarconquest
SUBDIR += solarus
+ SUBDIR += solarus-quest-editor
SUBDIR += solarwolf
SUBDIR += sopwith
SUBDIR += spacejunk
Added: head/games/solarus-quest-editor/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/Makefile Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,43 @@
+# Created by: Danilo Egea Gondolfo <danilo at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= solarus-quest-editor
+PORTVERSION= 1.4.4
+CATEGORIES= games
+
+MAINTAINER= danilo at FreeBSD.org
+COMMENT= GUI to create and modify quests for the Solarus engine
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/license_gpl.txt
+
+LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs \
+ libmodplug.so:${PORTSDIR}/audio/libmodplug \
+ liblua-5.1.so:${PORTSDIR}/lang/lua51 \
+ libvorbis.so:${PORTSDIR}/audio/libvorbis \
+ libogg.so:${PORTSDIR}/audio/libogg \
+ libsolarus.so:${PORTSDIR}/games/solarus
+
+USE_GITHUB= yes
+GH_ACCOUNT= christopho
+GH_PROJECT= ${PORTNAME}
+GH_TAGNAME= v${PORTVERSION}
+
+CMAKE_ARGS+= -DSOLARUS_USE_LUAJIT=OFF
+USE_SDL= sdl2 ttf2 image2
+USE_QT5= buildtools core gui linguist qmake widgets
+USES= cmake compiler:c++11-lib openal
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+DESKTOP_ENTRIES= "Solarus Quest Editor" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" \
+ "Game;" false
+
+PLIST_FILES= bin/solarus-quest-editor \
+ share/pixmaps/${PORTNAME}.png
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/solarus-quest-editor ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/images/logo/sqe-logo.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+.include <bsd.port.mk>
Added: head/games/solarus-quest-editor/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/distinfo Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,2 @@
+SHA256 (christopho-solarus-quest-editor-1.4.4-v1.4.4_GH0.tar.gz) = cf65b753d95c2328c9132108f8e7f233091db6298fa2cbc1a9894506ca8f58cf
+SIZE (christopho-solarus-quest-editor-1.4.4-v1.4.4_GH0.tar.gz) = 11819019
Added: head/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,10 @@
+--- include/gui/plain_text_edit.h.orig 2015-08-20 11:15:41 UTC
++++ include/gui/plain_text_edit.h
+@@ -19,6 +19,7 @@
+
+ #include <QPlainTextEdit>
+ #include <QPainter>
++#include <cmath>
+
+ /**
+ * @brief A plain text editor that sends editing_finished() signal when the text
Added: head/games/solarus-quest-editor/files/patch-src_gui_dialog__properties__table.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/files/patch-src_gui_dialog__properties__table.cpp Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,10 @@
+--- src/gui/dialog_properties_table.cpp.orig 2015-08-20 11:15:41 UTC
++++ src/gui/dialog_properties_table.cpp
+@@ -19,6 +19,7 @@
+ #include <QAction>
+ #include <QMenu>
+ #include <QContextMenuEvent>
++#include <cmath>
+
+ /**
+ * @brief Creates an empty dialogs tree view.
Added: head/games/solarus-quest-editor/files/patch-src_gui_strings__editor.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/files/patch-src_gui_strings__editor.cpp Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,10 @@
+--- src/gui/strings_editor.cpp.orig 2015-08-20 11:15:41 UTC
++++ src/gui/strings_editor.cpp
+@@ -23,6 +23,7 @@
+ #include "strings_model.h"
+ #include <QUndoStack>
+ #include <QMessageBox>
++#include <cmath>
+
+ namespace {
+
Added: head/games/solarus-quest-editor/files/patch-src_quest__runner.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/files/patch-src_quest__runner.cpp Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,22 @@
+--- src/quest_runner.cpp.orig 2015-08-20 11:15:41 UTC
++++ src/quest_runner.cpp
+@@ -22,6 +22,7 @@
+ #include <solarus/lowlevel/Debug.h>
+ #include <solarus/lua/LuaContext.h>
+ #include <iostream>
++#include <QApplication>
+ #include <QSize>
+
+ /**
+@@ -88,7 +89,10 @@ void QuestRunner::run() {
+
+ try {
+
+- Solarus::Arguments arguments;
++ std::string argv0 = QApplication::arguments().at(0).toStdString();
++ char *argv[1] = {(char *) argv0.c_str()};
++
++ Solarus::Arguments arguments(1, argv);
+
+ // no-audio.
+ if (settings.get_value_bool(Settings::no_audio)) {
Added: head/games/solarus-quest-editor/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/solarus-quest-editor/pkg-descr Sat Oct 17 17:54:51 2015 (r399549)
@@ -0,0 +1,4 @@
+Solarus Quest Editor is a graphical user interface
+to create and modify quests for the Solarus engine.
+
+WWW: http://www.solarus-games.org/engine/solarus-quest-editor
More information about the svn-ports-all
mailing list