openboard

This commit is contained in:
milisbir 2018-02-03 23:26:28 +02:00
parent 72ff5b9a11
commit 96efa72c63
5 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=OpenBoard
Comment=Okullar ve üniversiteler için interaktif beyaz tahta yazılımı
Exec=openboard %f
Icon=/opt/openboard/OpenBoard.png
StartupNotify=true
Terminal=false
MimeType=application/ubz
Categories=Education;

View File

@ -0,0 +1,12 @@
diff -u -ubr a/src/core/UBTextTools.cpp b/src/core/UBTextTools.cpp
--- a/src/core/UBTextTools.cpp 2017-05-09 15:59:42.177965830 +0200
+++ b/src/core/UBTextTools.cpp 2017-05-09 16:00:08.547747097 +0200
@@ -34,7 +34,7 @@
for(int i = 0; i < _html.length(); i+=1){
- if(_html.at(i) != '\0')
+ if(_html.at(i) != QChar('\0'))
clean.append(_html.at(i));
}
return clean;

View File

@ -0,0 +1,13 @@
diff -u -ubr a/src/domain/UBGraphicsMediaItemDelegate.h b/src/domain/UBGraphicsMediaItemDelegate.h
--- a/src/domain/UBGraphicsMediaItemDelegate.h 2017-05-09 16:15:51.919921697 +0200
+++ b/src/domain/UBGraphicsMediaItemDelegate.h 2017-05-09 16:08:00.763830080 +0200
@@ -32,7 +32,8 @@
#include <QtGui>
#include <QTimer>
-#include <QtMultimedia>
+//#include <QtMultimedia>
+#include <QMediaPlayer>
#include "core/UB.h"
#include "UBGraphicsItemDelegate.h"

View File

@ -0,0 +1,19 @@
--- a/OpenBoard.pro 2017-02-26 00:44:23.000000000 +0100
+++ b/OpenBoard.pro 2017-05-09 15:58:37.448502744 +0200
@@ -44,6 +44,7 @@
QT += core
INCLUDEPATH += src
+INCLUDEPATH = "/usr/include/openssl-1.0" + $${INCLUDEPATH}
include($$THIRD_PARTY_PATH/libs.pri)
include(src/adaptors/adaptors.pri)
@@ -400,7 +401,7 @@
linux-g++* {
CONFIG += link_prl
- LIBS += -lcrypto
+ LIBS += -l:libcrypto.so.1.0.0
#LIBS += -lprofiler
LIBS += -lX11
QMAKE_CFLAGS += -fopenmp

View File

@ -0,0 +1,66 @@
# Tanım: Okullar ve üniversiteler için interaktif beyaz tahta yazılımı
# URL: http://openboard.ch/index.en.html
# Paketçi: Cihan Alkan
# Gerekler: qt5 libpaper openssl
# Grup: eğitim
isim=openboard
surum=1.3.6
devir=1
kaynak=(https://github.com/OpenBoard-org/OpenBoard/archive/v$surum.tar.gz::$isim-$surum.tar.gz
https://github.com/OpenBoard-org/OpenBoard-ThirdParty/archive/master.tar.gz::OpenBoard-ThirdParty-master.tar.gz
ssl10.patch
qchar.patch
qtmultimediadefs.patch
openboard.desktop)
derle() {
rm -rf $SRC/OpenBoard-ThirdParty
mv $SRC/OpenBoard-ThirdParty-master $SRC/OpenBoard-ThirdParty
cd $SRC/OpenBoard-$surum
patch -p1 < $SRC/ssl10.patch
patch -p1 < $SRC/qchar.patch
patch -p1 < $SRC/qtmultimediadefs.patch
cd $SRC/OpenBoard-ThirdParty
cd freetype
qmake-qt5 freetype.pro -spec linux-g++
make
cd ..
cd quazip
qmake-qt5 quazip.pro -spec linux-g++
make
cd ..
cd xpdf/xpdf-3.04
./configure --with-freetype2-library="../../freetype/lib/linux" --with-freetype2-includes="../../freetype/freetype-2.6.1/include"
cd ..
qmake-qt5 xpdf.pro -spec linux-g++
make
cd ..
cd "$SRC/OpenBoard-$surum"
qmake-qt5 OpenBoard.pro -spec linux-g++
make
mkdir -p $PKG/opt/openboard
for i in customizations etc i18n library; do
cp -rp $SRC/OpenBoard-$surum/resources/$i $PKG/opt/openboard;
done
cp -rp $SRC/OpenBoard-$surum/resources/images/OpenBoard.png $PKG/opt/openboard/
cp -rp build/linux/release/product/OpenBoard $PKG/opt/openboard/
mkdir -p $PKG/usr/share/applications
cp -rp $SRC/openboard.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/bin
ln -s /opt/openboard/OpenBoard $PKG/usr/bin/openboard
}