diff --git a/haiku-apps/moe/moe-1.1.2.recipe b/haiku-apps/moe/moe-1.1.2.recipe index a75d773be..f58d877e4 100644 --- a/haiku-apps/moe/moe-1.1.2.recipe +++ b/haiku-apps/moe/moe-1.1.2.recipe @@ -5,10 +5,11 @@ How about mind cooler for your desktop?" HOMEPAGE="https://github.com/HaikuArchives/moe" COPYRIGHT="2001 Okada Jun" LICENSE="GNU GPL v2" -REVISION="2" +REVISION="3" SOURCE_URI="https://github.com/HaikuArchives/Moe/archive/68e18f359d114fbce2b0f4247a43c951becc87bc.tar.gz" CHECKSUM_SHA256="62aaefdd298e41d865d73ed092251469a0cc63b9ed5c2e1531d0a409513d5f46" SOURCE_DIR="Moe-68e18f359d114fbce2b0f4247a43c951becc87bc" +PATCHES="moe-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64" diff --git a/haiku-apps/moe/patches/moe-1.1.2.patchset b/haiku-apps/moe/patches/moe-1.1.2.patchset new file mode 100644 index 000000000..ea4a0a1f7 --- /dev/null +++ b/haiku-apps/moe/patches/moe-1.1.2.patchset @@ -0,0 +1,69 @@ +From 9d11fecef8444e5514a7abcfecd13029267a6169 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 7 Dec 2016 15:58:24 +0000 +Subject: build on x86_64. + + +diff --git a/source/Makefile b/source/Makefile +index 2045afc..6804a54 100644 +--- a/source/Makefile ++++ b/source/Makefile +@@ -64,7 +64,7 @@ RDEFS= Moe.rdef + # naming scheme you need to specify the path to the library + # and it's name + # library: my_lib.a entry: my_lib.a or path/my_lib.a +-LIBS= be translation z ++LIBS= be translation z $(STDCPPLIBS) + + # specify additional paths to directories following the standard + # libXXX.so or libXXX.a naming scheme. You can specify full paths +diff --git a/source/MoeDefs.h b/source/MoeDefs.h +index 72fa270..dd70803 100644 +--- a/source/MoeDefs.h ++++ b/source/MoeDefs.h +@@ -33,7 +33,7 @@ + + #define MOE_APP_SIGNATURE "application/x-vnd.Kamnagi.Moe" + #define MOE_CONFIG_DIRECTORY "/boot/home/config/settings/Kamnagi/Moe/" +-#define MOE_CONFIG_FILE MOE_CONFIG_DIRECTORY##"property" ++#define MOE_CONFIG_FILE MOE_CONFIG_DIRECTORY "property" + + #define MOE_MAX_SLICE_NUM 30 + +diff --git a/source/MoeMascot.cpp b/source/MoeMascot.cpp +index 8ff0204..a7e1418 100644 +--- a/source/MoeMascot.cpp ++++ b/source/MoeMascot.cpp +@@ -25,6 +25,7 @@ + + + #include ++#include + #include + #include + #include +@@ -398,7 +399,7 @@ MoeMascot::MoveToPrefered(void) + MoePointTransformer pointAccessor(&point, mSide); + pointAccessor.X() = + int(targetAccessor.Left() + +- mXRate * max(0.0f, targetAccessor.Width() - frameAccessor.Width())); ++ mXRate * std::max(0.0f, targetAccessor.Width() - frameAccessor.Width())); + pointAccessor.Y() = + int(targetAccessor.Top() - + targetAccessor.YSign() * ((targetAccessor.YSign() > 0) - mYRate) * +diff --git a/source/MoeMascotManager.cpp b/source/MoeMascotManager.cpp +index 44be1da..b6f38d8 100644 +--- a/source/MoeMascotManager.cpp ++++ b/source/MoeMascotManager.cpp +@@ -166,7 +166,7 @@ MoeMascotManager::Open(const entry_ref &entry) + + + while (this->SumSlices() + surface->CountRects() > +- max(mMaxWindowNum, this->CountMascots() + 1)) ++ std::max(mMaxWindowNum, this->CountMascots() + 1)) + { + this->CellReduction(); + surface->SetCellSize(mCellSize); +-- +2.10.2 +