Initial bep and patch for Globe, web editor, from GCI2012 student Piotr

This commit is contained in:
Scott McCreary
2013-01-01 03:22:23 +00:00
parent 8e6d9b398d
commit cc081f0131
2 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
DESCRIPTION="Globe Web Editor"
HOMEPAGE="http://globe.beos.hu/index_en.html"
SRC_URI="http://ports-space.haiku-files.org/source/globe-0.4.zip"
CHECKSUM_MD5="61601576e59b0dc5ab6364f684a47236"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd globe0.4
make
}
INSTALL {
cd globe0.4
TARGET_DIR=${DESTDIR}`finddir B_APPS_DIRECTORY`/Globe
mkdir -p $TARGET_DIR
cp Globe $TARGET_DIR
cp GlobeBUGList.txt $TARGET_DIR
cp globe* $TARGET_DIR
cp LICENSE.txt $TARGET_DIR
cp NewFeatures.txt $TARGET_DIR
cp objects.*/Globe* $TARGET_DIR
}
LICENSE="GNU GPL v2"
COPYRIGHT="2001-2004 Gergely Rózsahegyi"

View File

@@ -0,0 +1,92 @@
diff -Naur globe0.4/Makefile globe0.4-haiku/Makefile
--- globe0.4/Makefile 1970-01-01 00:00:00.000000000 +0000
+++ globe0.4-haiku/Makefile 2012-12-30 19:40:59.058720256 +0000
@@ -0,0 +1,27 @@
+NAME= Globe
+TYPE= APP
+SRCS= RHTML_app.cpp RHTML_win.cpp RHTML_numview.cpp RHTML_savewin.cpp RHTML_aboutwin.cpp RHTML_prefwin.cpp RHTML_fmenu.cpp RHTML_buttonmenu.cpp RHTML_bmenu.cpp RHTML_parammenu.cpp RHTML_colorwin.cpp RHTML_amenu.cpp RHTML_textview.cpp RHTML_tabbutton.cpp RHTML_tagmenu.cpp RHTML_filetypes.cpp RHTML_options.cpp ToolTip/TToolTip.cpp Timer/RTimer.cpp URLView/URLView.cpp Tool/RadioBar.cpp Tool/ToolBar.cpp Tool/ToolItem.cpp Tool/ToolView.cpp
+RSRCS= Globe.rsrc
+LIBS= /boot/system/lib/libbe.so /boot/system/lib/libtextencoding.so /boot/system/lib/libtracker.so /boot/system/lib/libroot.so /boot/system/lib/libtranslation.so /boot/system/lib/libgame.so /boot/system/lib/libstdc++.r4.so
+LIBPATHS=
+SYSTEM_INCLUDE_PATHS= /boot/develop/headers/be /boot/develop/headers/cpp /boot/develop/headers/posix /boot/develop/lib /boot/beos/system/lib
+LOCAL_INCLUDE_PATHS= ./../../../config/lib ./Genesis ToolTip Timer URLView Tool
+OPTIMIZE=FULL
+# specify any preprocessor symbols to be defined. The symbols will not
+# have their values set automatically; you must supply the value (if any)
+# to use. For example, setting DEFINES to "DEBUG=1" will cause the
+# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"
+# would pass "-DDEBUG" on the compiler's command line.
+DEFINES=
+# specify special warning levels
+# if unspecified default warnings will be used
+# NONE = supress all warnings
+# ALL = enable all warnings
+WARNINGS =
+# Build with debugging symbols if set to TRUE
+SYMBOLS=
+COMPILER_FLAGS=-Woverloaded-virtual -funsigned-bitfields -D_HAIKU_
+LINKER_FLAGS=
+
+## include the makefile-engine
+include $(BUILDHOME)/etc/makefile-engine
diff -Naur globe0.4/RHTML_win.cpp globe0.4-haiku/RHTML_win.cpp
--- globe0.4/RHTML_win.cpp 2004-10-21 14:16:28.000000000 +0000
+++ globe0.4-haiku/RHTML_win.cpp 2012-12-30 18:28:09.000000000 +0000
@@ -288,7 +288,9 @@
if (textdb>0)
{
close->SetEnabled(true);
+ #ifndef _HAIKU_
fmenu->FindToolItem("CLOSEBUTTON")->SetEnabled(true);
+ #endif
}
}
// - End - RHTML_Win - AddText -------------------------------------------------------------------------------
@@ -310,7 +312,9 @@
if (textdb<=0)
{
close->SetEnabled(false);
+ #ifndef _HAIKU_
fmenu->FindToolItem("CLOSEBUTTON")->SetEnabled(false);
+ #endif
}
}
// - End - RHTML_Win - RemoveText ----------------------------------------------------------------------------
@@ -1122,7 +1126,9 @@
break;
case 'RTMM':
{
+ #ifndef _HAIKU_
fmenu->FindToolItem("SAVEBUTTON")->SetEnabled(textview[current]->Modify());
+ #endif
save->SetEnabled(textview[current]->Modify());
// save_as->SetEnabled(textview[current]->Modify());
bool mod=false;
@@ -1130,7 +1136,9 @@
if (textview[i]->Modify())
mod=true;
save_all->SetEnabled(mod);
+ #ifndef _HAIKU_
fmenu->FindToolItem("SAVEALLBUTTON")->SetEnabled(mod);
+ #endif
}
break;
case 'ABWQ':
diff -Naur globe0.4/URLView/URLView.cpp globe0.4-haiku/URLView/URLView.cpp
--- globe0.4/URLView/URLView.cpp 2002-03-10 00:38:20.000000000 +0000
+++ globe0.4-haiku/URLView/URLView.cpp 2012-12-29 14:17:53.000000000 +0000
@@ -30,9 +30,13 @@
#include <unistd.h>
+#ifndef _HAIKU_
#include <printf.h>
+#endif
-
+#ifdef _HAIKU_
+#include<Clipboard.h>
+#endif
URLView::URLView( BRect frame, const char *name, const char *label,
const char *url, uint32 resizingMode, uint32 flags )