From b21bb262e1ea9301598e7c5c9848e67a1efdc62a Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 17 Sep 2018 10:21:02 +0200 Subject: [PATCH] dengon: fix recipe, add x86_64 arch (#3068) --- haiku-apps/dengon/dengon-20140804.recipe | 13 +-- .../dengon/patches/dengon-20140804.patchset | 101 ++++++++++++++++++ 2 files changed, 108 insertions(+), 6 deletions(-) create mode 100644 haiku-apps/dengon/patches/dengon-20140804.patchset diff --git a/haiku-apps/dengon/dengon-20140804.recipe b/haiku-apps/dengon/dengon-20140804.recipe index 94a3c4da1..dcb3aec1d 100644 --- a/haiku-apps/dengon/dengon-20140804.recipe +++ b/haiku-apps/dengon/dengon-20140804.recipe @@ -1,18 +1,19 @@ SUMMARY="A lightweight XMPP client" -DESCRIPTION=" -Dengon is an XMPP client, allowing to use instant messaging networks such as \ -Jabber, Google Talk, or Facebook Chat. It supports multi-use rchat, Psi \ -bookmarks, in-band registration and other features." +DESCRIPTION="Dengon is an XMPP client, allowing to use instant messaging \ +networks such as Jabber, Google Talk, or Facebook Chat. It supports \ +multi-use rchat, Psi bookmarks, in-band registration and other features." HOMEPAGE="https://github.com/diger/dengon/" COPYRIGHT="2010-2014 Maxim Sokhatsky" LICENSE="MIT" -REVISION="1" +REVISION="2" srcGitRev="aa5c1ecda7b2f087434df28f3b99cc4aaf6e199d" SOURCE_URI="https://github.com/diger/dengon/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="6d9ce10c535b186d713b03d63ea7af74a2e6ec31ee4b716688b5b8349f788bb2" +SOURCE_FILENAME="dengon-$portVersion.tar.gz" SOURCE_DIR="dengon-$srcGitRev" +PATCHES="dengon-$portVersion.patchset" -ARCHITECTURES="x86_gcc2 x86" +ARCHITECTURES="x86_gcc2 x86 x86_64" PROVIDES=" dengon = $portVersion diff --git a/haiku-apps/dengon/patches/dengon-20140804.patchset b/haiku-apps/dengon/patches/dengon-20140804.patchset new file mode 100644 index 000000000..2003026d9 --- /dev/null +++ b/haiku-apps/dengon/patches/dengon-20140804.patchset @@ -0,0 +1,101 @@ +From 4ca69b597841b069cb957db2fb5ec0299e43c401 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sat, 15 Sep 2018 10:17:27 +0200 +Subject: Deskbar.h isn't in be_app subfolder anymore + + +diff --git a/MainWindow.cpp b/MainWindow.cpp +index b241e2d..56bdc93 100644 +--- a/MainWindow.cpp ++++ b/MainWindow.cpp +@@ -5,7 +5,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +-- +2.19.0 + + +From 11c99de6793b84893b67c06e7ceadb3f49cf3ec9 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sat, 15 Sep 2018 10:37:34 +0200 +Subject: call the correct libstdc++ + + +diff --git a/Makefile b/Makefile +index b59de4d..b66d9f0 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,9 +12,28 @@ SRCS= App.cpp JRoster.cpp \ + SplitView.cpp Base64.cpp ChatTextView.cpp DataForm.cpp + + RSRCS= Resources.rsrc +-LIBS= stdc++ be root network ssl crypto expat ++ ++# Determine the CPU type ++MACHINE=$(shell uname -m) ++ifeq ($(MACHINE), BePC) ++ CPU = x86 ++else ++ CPU = $(MACHINE) ++endif ++ ++# Get the compiler version. ++CC_VER = $(word 1, $(subst -, , $(subst ., , $(shell $(CC) -dumpversion)))) ++ ++# Set up the local & system check for C++ stdlibs. ++ifneq (,$(filter $(CPU),x86 x86_64)) ++ ifeq ($(CC_VER), 2) ++ LIBS= stdc++.r4 be root network ssl crypto expat ++ else ++ LIBS = stdc++ supc++ be root network ssl crypto expat ++ endif ++endif + +-LIBPATHS= /boot/develop/lib/x86/ /boot/common/lib/ ++LIBPATHS= /boot/develop/lib/x86/ /boot/system/lib/ + SYSTEM_INCLUDE_PATHS= /boot/develop/headers/be + LOCAL_INCLUDE_PATHS= + OPTIMIZE=-O3 +-- +2.19.0 + + +From 0df79542453ef181124c298af55fd04555d7eead Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sat, 15 Sep 2018 11:17:12 +0200 +Subject: add include for , needed for x86_64 + + +diff --git a/FileXMLReader.cpp b/FileXMLReader.cpp +index e5b6ff0..342446e 100644 +--- a/FileXMLReader.cpp ++++ b/FileXMLReader.cpp +@@ -9,6 +9,7 @@ + #include + #include + ++#include + #include + #include + +diff --git a/XMLReader.cpp b/XMLReader.cpp +index f38d37d..21bfeb0 100644 +--- a/XMLReader.cpp ++++ b/XMLReader.cpp +@@ -5,6 +5,7 @@ + #include "XMLReader.h" + + #include ++#include + #include + #include + #include +-- +2.19.0 +