Skip to content
Permalink
Browse files

LyX: fix build on older systems

add missing header that seems to manifest only with the gcc headers
(when using stdlib=macports-libstdc++)

blacklist clang version that can't build this this port

closes: https://trac.macports.org/ticket/58379
  • Loading branch information
kencu committed Apr 25, 2019
1 parent 6632a1d commit 7a47e244dbf488811c0ba96e23c1051cf02ee490
Showing with 14 additions and 0 deletions.
  1. +4 −0 aqua/LyX/Portfile
  2. +10 −0 aqua/LyX/files/patch-lyx-applescriptproxy-add-stringh.diff
@@ -1,6 +1,7 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup cxx11 1.1

name LyX
@@ -43,6 +44,9 @@ checksums rmd160 369d5f0be707436ccafe0d454db95de0a4744449 \

configure.args --disable-silent-rules

compiler.blacklist-append { clang < 800 }
patchfiles-append patch-lyx-applescriptproxy-add-stringh.diff

post-configure {
reinplace \
"s|\$(MKDIR_P) \$(pkgdatadir)|\
@@ -0,0 +1,10 @@
--- src/support/AppleScriptProxy.cpp.orig 2019-04-20 11:01:31.000000000 -0700
+++ src/support/AppleScriptProxy.cpp 2019-04-20 11:09:34.000000000 -0700
@@ -23,6 +23,7 @@
#include "support/debug.h"

#include <stdlib.h>
+#include <string.h>

using namespace std;
using namespace lyx;

0 comments on commit 7a47e24

Please sign in to comment.
You can’t perform that action at this time.