mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
46
haiku-games/besol/besol-2.0.5.recipe
Normal file
46
haiku-games/besol/besol-2.0.5.recipe
Normal file
@@ -0,0 +1,46 @@
|
||||
SUMMARY="Easily create and play games of solitaire"
|
||||
DESCRIPTION="Solitaire program that loads, saves, edits, and of course runs \
|
||||
solitaire games."
|
||||
HOMEPAGE="http://github.com/HaikuArchives/BeSol"
|
||||
SOURCE_URI="git://github.com/HaikuArchives/BeSol"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="1999 Jason Wrinkle"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
besol$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libie
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libie
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:find
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
SOURCE_DIR="BeSol-master"
|
||||
|
||||
PATCHES="BeSol.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
find . -name *.cpp -exec g++ -c {} \;
|
||||
find . -name *.c++ -exec g++ -c {} \;
|
||||
g++ -o BeSol *.o -lbe -ltranslation -lie -ltracker
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cp BeSol $appsDir
|
||||
}
|
||||
35
haiku-games/besol/patches/BeSol.patch
Normal file
35
haiku-games/besol/patches/BeSol.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
diff --git a/Source/BesolWindow.h b/Source/BesolWindow.h
|
||||
index d703c1c..ad648f8 100644
|
||||
--- a/Source/BesolWindow.h
|
||||
+++ b/Source/BesolWindow.h
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <View.h>
|
||||
#include <Beep.h>
|
||||
#include <SupportKit.h>
|
||||
+#include <File.h>
|
||||
+#include <Roster.h>
|
||||
|
||||
#ifndef IEWINDOW
|
||||
#define IEWINDOW
|
||||
diff --git a/Source/PILE.c++ b/Source/PILE.c++
|
||||
index e826b76..3c0f259 100644
|
||||
--- a/Source/PILE.c++
|
||||
+++ b/Source/PILE.c++
|
||||
@@ -238,7 +238,7 @@ void PILE::construction_helper(pile_props* props)
|
||||
PILE::~PILE()
|
||||
{
|
||||
BMenuItem* item = popmenu->FindItem(POP_EDIT);
|
||||
- if ( item->IsMarked() ) peditor->Remove_Target(cast_as(this, BView));
|
||||
+ if ( item->IsMarked() ) peditor->Remove_Target((BView*)this);
|
||||
|
||||
list< list<TRANSRULES*> >::iterator itert = allrules->begin();
|
||||
list<TRANSRULES*>::iterator iterf;
|
||||
@@ -685,7 +685,7 @@ void PILE::MessageReceived(BMessage* message)
|
||||
{
|
||||
BMenuItem* item = popmenu->FindItem(POP_EDIT);
|
||||
item->SetMarked( !(item->IsMarked()) );
|
||||
- BView* temp = cast_as (this, BView);
|
||||
+ BView* temp = (BView*)this;
|
||||
isbeingedited = !isbeingedited;
|
||||
Invalidate(Bounds());
|
||||
|
||||
57
haiku-libs/interface_elements/interface_elements-1.0.recipe
Normal file
57
haiku-libs/interface_elements/interface_elements-1.0.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
SUMMARY="Interface Elements Library"
|
||||
DESCRIPTION="Attila Mezei's Interface Elements. This library helps you to \
|
||||
instantiate window archives."
|
||||
HOMEPAGE="http://github.com/HaikuArchives/InterfaceElements"
|
||||
SOURCE_URI="git://github.com/HaikuArchives/InterfaceElements"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1997-1998 Attila Mezei"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
interface_elements$secondaryArchSuffix = $portVersion
|
||||
lib:libie$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES=""
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
makefile_engine
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
SOURCE_DIR="InterfaceElements-master"
|
||||
|
||||
#PATCHES="IEWindow.patch"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd "Develop/IE library"
|
||||
make BUILDHOME=/system/develop $jobArgs
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $includeDir
|
||||
mkdir -p $libDir
|
||||
|
||||
cd "Develop/IE library"
|
||||
make BUILDHOME=/system/develop INSTALL_DIR=$libDir $jobArgs install
|
||||
cp *.h $includeDir
|
||||
|
||||
prepareInstalledDevelLibs libie
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
PROVIDES_devel="
|
||||
interface_elements${secondaryArchSuffix}_devel
|
||||
devel:libie$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
interface_elements${secondaryArchSuffix} == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user