mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
editors/texstudio:
- Add patch to fix build on armv6 [1,2] - Add option to build with Qt 4 or 5, enable Qt 5 by default [2] - Remove needless INSTALLS_ICONS PR: 199487 [1] Reported by: Ulrich Grey Patch by: mikael.urankar@gmail.com PR: 202511 [2] Submitted by: Abilio Marques (maintainer)
This commit is contained in:
parent
96c100fa65
commit
288ec0edc3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395189
@ -2,26 +2,38 @@
|
||||
|
||||
PORTNAME= texstudio
|
||||
PORTVERSION= 2.9.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= editors
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/TeXstudio%20${PORTVERSION}
|
||||
|
||||
MAINTAINER= abiliojr@gmail.com
|
||||
COMMENT= Integrated writing environment for creating LaTeX documents
|
||||
COMMENT= Integrated writing environment for LaTeX documents
|
||||
|
||||
LIB_DEPENDS= libpoppler.so:${PORTSDIR}/graphics/poppler \
|
||||
libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
|
||||
LIB_DEPENDS= libpoppler.so:${PORTSDIR}/graphics/poppler
|
||||
|
||||
USES= desktop-file-utils dos2unix execinfo ghostscript:run \
|
||||
pkgconfig qmake
|
||||
DOS2UNIX_FILES= ${PORTNAME}.pro
|
||||
USE_QT4= gui network script svg xml iconengines_run \
|
||||
designer_build moc_build rcc_build uic_build
|
||||
|
||||
_USE_QT4= gui network script svg xml \
|
||||
iconengines_run designer_build moc_build rcc_build uic_build
|
||||
_USE_QT5= gui network script svg xml \
|
||||
printsupport concurrent uitools buildtools_build
|
||||
|
||||
USE_TEX= latex dvipsk
|
||||
INSTALLS_ICONS= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
||||
|
||||
OPTIONS_SINGLE= TOOLKIT
|
||||
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
|
||||
OPTIONS_DEFAULT= QT5
|
||||
|
||||
TOOLKIT_DESC= Qt toolkit
|
||||
QT4_USE= ${_USE_QT4:S/^/QT4=/}
|
||||
QT4_LIB_DEPENDS=libpoppler-qt4.so:${PORTSDIR}/graphics/poppler-qt4
|
||||
QT5_USE= ${_USE_QT5:S/^/QT5=/}
|
||||
QT5_LIB_DEPENDS=libpoppler-qt5.so:${PORTSDIR}/graphics/poppler-qt5
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,^\(utilities.path =\).*,\1 ${DATADIR},' \
|
||||
-e 's,/usr/include,${LOCALBASE}/include,g' \
|
||||
|
19
editors/texstudio/files/patch-debughelper.cpp
Normal file
19
editors/texstudio/files/patch-debughelper.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
--- debughelper.cpp.orig 2015-03-24 07:20:40 UTC
|
||||
+++ debughelper.cpp
|
||||
@@ -499,10 +499,16 @@ void print_backtrace(const QString& mess
|
||||
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[31] //not always used
|
||||
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[34]
|
||||
#elif defined(CPU_IS_ARM)
|
||||
+/*
|
||||
#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_pc
|
||||
#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_sp
|
||||
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_fp
|
||||
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_lr
|
||||
+*/
|
||||
+#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R15]
|
||||
+#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R13]
|
||||
+#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R11]
|
||||
+#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R14]
|
||||
#elif defined(CPU_IS_IA64)
|
||||
#define PC_FROM_UCONTEXT(context) (context)->_u._mc.sc_ip
|
||||
#define STACK_FROM_UCONTEXT(context) (context)->_u._mc.sc_gr[12] //is that register 12?
|
Loading…
Reference in New Issue
Block a user