View | Details | Raw Unified | Return to bug 201092
Collapse All | Expand All

(-)Makefile (-2 / +1 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	texstudio
3
PORTNAME=	texstudio
4
PORTVERSION=	2.8.8
4
PORTVERSION=	2.9.4
5
PORTREVISION=	1
6
CATEGORIES=	editors
5
CATEGORIES=	editors
7
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
6
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
8
7
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (texstudio-2.8.8.tar.gz) = 5d00c42425c0d1464438c0c1701508fef281f5dbdd0fbcebdbba9de60ac6db95
1
SHA256 (texstudio-2.9.4.tar.gz) = dc71590e3745ac193a640667737befd665d549e642e268eec7a8238d3b61b5ea
2
SIZE (texstudio-2.8.8.tar.gz) = 25198033
2
SIZE (texstudio-2.9.4.tar.gz) = 25292627
(-)files/patch-debughelper.cpp (-42 lines)
Lines 1-42 Link Here
1
--- debughelper.cpp.orig	2014-12-04 18:53:50 UTC
2
+++ debughelper.cpp
3
@@ -107,6 +107,7 @@ struct SimulatedCPU {
4
 //===========================CRASH HANDLER HEADER==============================
5
 
6
 #ifdef OS_IS_UNIX_LIKE
7
+#include "signal.h"
8
 #include "unistd.h"
9
 #include "sys/wait.h"
10
 #define SAFE_INT volatile sig_atomic_t
11
@@ -473,13 +474,25 @@ void print_backtrace(const QString& mess
12
 
13
 #define USE_SIGNAL_HANDLER
14
 #ifdef CPU_IS_X86_64
15
-#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RIP]
16
-#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RSP]
17
-#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RBP]
18
+ #if defined(__FreeBSD__) 
19
+  #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_rip
20
+  #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_rsp
21
+  #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_rbp
22
+ #else
23
+  #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RIP]
24
+  #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RSP]
25
+  #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_RBP]
26
+ #endif
27
 #elif defined(CPU_IS_X86_32)
28
-#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EIP]
29
-#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_ESP]
30
-#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EBP]
31
+ #if defined(__FreeBSD__)
32
+  #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_eip
33
+  #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_esp
34
+  #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.mc_ebp
35
+ #else
36
+  #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EIP]
37
+  #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_ESP]
38
+  #define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gregs[REG_EBP]
39
+ #endif
40
 #elif defined(CPU_IS_PPC)
41
 #define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[32]
42
 #define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[1]
(-)files/patch-texstudio.pro (-13 lines)
Lines 1-13 Link Here
1
--- texstudio.pro.orig	2014-12-10 21:27:10 UTC
2
+++ texstudio.pro
3
@@ -531,6 +531,10 @@ unix {
4
     -lz
5
 }
6
 
7
+freebsd-* {
8
+    LIBS += -lexecinfo
9
+}
10
+
11
 # ################################
12
 # Poppler PDF Preview, will only be used if NO_POPPLER_PREVIEW is not set
13
 isEmpty(NO_POPPLER_PREVIEW) {

Return to bug 201092