jabber4haiku: patch is upstreamed.

This commit is contained in:
Jerome Duval
2017-02-08 21:15:32 +01:00
parent ebba9c8cbc
commit 032e38dfce
2 changed files with 3 additions and 81 deletions

View File

@@ -5,13 +5,12 @@ to use user interface."
HOMEPAGE="https://github.com/HaikuArchives/Jabber4Haiku"
COPYRIGHT="19??-2009 John Blanco, Frank Paul Silye, Andrea Anzani, Daniel Fischer, zuMi"
LICENSE="MIT"
REVISION="4"
commit="5b101cfa4a9e9eb5746b3b1880480e93b0072316"
REVISION="5"
commit="160b682b6c00640547c278e050104f11732b2c5f"
SOURCE_URI="$HOMEPAGE/archive/$commit.tar.gz"
SOURCE_FILENAME="$portName-$commit.tar.gz"
SOURCE_DIR="Jabber4Haiku-$commit"
CHECKSUM_SHA256="225e117aa984cf9d09969137dc95c61200356032876ff2efd8d3637271c1bbfd"
PATCHES="jabber4haiku-$portVersion.patchset"
CHECKSUM_SHA256="8199235c33eb8ab14be31cf8777682a23808040883bc57421d0aad9fe0ccb5d9"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"

View File

@@ -1,77 +0,0 @@
From 8b1d000b6147cb64b4cef55fc0139e71c3a4ddfb Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 28 Jan 2017 12:41:56 +0100
Subject: x86_64 build fix.
diff --git a/jabber/BuddyWindow.cpp b/jabber/BuddyWindow.cpp
index c4ed091..7c93373 100644
--- a/jabber/BuddyWindow.cpp
+++ b/jabber/BuddyWindow.cpp
@@ -50,7 +50,7 @@
#include "PictureView.h"
#endif
-#include <strings.h>
+#include <string.h>
BuddyWindow *BuddyWindow::_instance = NULL;
diff --git a/jabber/FileXMLReader.cpp b/jabber/FileXMLReader.cpp
index e5b6ff0..ea94470 100644
--- a/jabber/FileXMLReader.cpp
+++ b/jabber/FileXMLReader.cpp
@@ -10,7 +10,7 @@
#include <storage/StorageDefs.h>
#include <stdlib.h>
-#include <strings.h>
+#include <string.h>
#include "XMLEntity.h"
diff --git a/jabber/XMLReader.cpp b/jabber/XMLReader.cpp
index a158dc7..98c0343 100644
--- a/jabber/XMLReader.cpp
+++ b/jabber/XMLReader.cpp
@@ -6,7 +6,7 @@
#include <cstdio>
#include <string>
-#include <strings.h>
+#include <string.h>
#include <stdlib.h>
XMLReader::XMLReader() {
diff --git a/makefile b/makefile
index c8366b2..1d20fd7 100644
--- a/makefile
+++ b/makefile
@@ -112,23 +112,7 @@ endif
# 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 game root translation tracker ssl crypto expat
-
-# guess gcc version
-GCC_VERSION=$(subst -, , $(subst ., , $(shell gcc -dumpversion)))
-GCC_MAJOR_VERSION=$(word 1, $(GCC_VERSION))
-GCC_MINOR_VERSION=$(word 2, $(GCC_VERSION))
-GCC_MICRO_VERSION=$(word 3, $(GCC_VERSION))
-
-ifeq ($(GCC_MAJOR_VERSION), 4)
- LIBS+=stdc++
-else
- LIBS+=stdc++.r4
-endif
-
-ifeq "$(OP_SYSTEM)" "Haiku"
- LIBS+=network
-endif
+LIBS=be game root translation tracker ssl crypto expat network $(STDCPPLIBS)
# specify additional paths to directories following the standard
# libXXX.so or libXXX.a naming scheme. You can specify full paths
--
2.10.2