Skip to content

Commit

Permalink
scriptix: fix broken build (#15921)
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored May 29, 2023
1 parent b4c3993 commit b7c80ff
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 11 deletions.
51 changes: 40 additions & 11 deletions devel/scriptix/Portfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,52 @@
PortSystem 1.0
# -*- 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

name scriptix
version 0.31
revision 2
revision 3
categories devel
license BSD
maintainers nomaintainer
description scripting system coded in C++
long_description \
Scriptix is a scripting system coded in C++, designed solely \
for embedding in other C++ applications. Scriptix doesn't \
pretend to be a stand-alone language.
homepage http://www.awemud.net/
platforms darwin
long_description Scriptix is a scripting system coded in C++, designed solely \
for embedding in other C++ applications. Scriptix doesn't \
pretend to be a stand-alone language.
homepage https://sourceforge.net/projects/awemud/
master_sites sourceforge:awemud
checksums md5 62cfa278d9580d17bedce9d67365cc93
checksums rmd160 6286fdffaf324d0f754340d921bb191f9dd8c82c \
sha256 2b38ca0cad98f3794b9460ea1ee3f6f57ce3fd225a2854f32ad50eab6f403c47 \
size 386220

depends_lib port:boehmgc
patchfiles patch-Makefile.am patch-Makefile.in

patchfiles patch-Makefile.am.diff \
patch-Makefile.in.diff \
patch-missing-headers.diff

post-patch {
reinplace s|shrext_cmds|shrext|g ${worksrcpath}/configure
reinplace s|shrext_cmds|shrext|g ${worksrcpath}/configure
}

platform darwin {
if {${os.major} > 10 && ${os.major} < 16} {
# Newer gcc and clang fail to build it.
# apple-gcc-4.2 builds through 10.11.
depends_build-append port:apple-gcc42
configure.compiler apple-gcc-4.2
}

if {${os.major} > 15} {
known_fail yes
pre-fetch {
ui_error "${name} requires MacOS 10.11 or earlier"
return -code error "incompatible OS version"
}
}
}

configure.args --with-gc=${prefix}

# See: https://github.com/ivmai/bdwgc/issues/268
configure.ldflags-append \
-lgccpp
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions devel/scriptix/files/patch-missing-headers.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- lib/string.cc.orig 2005-11-13 13:11:17.000000000 +0800
+++ lib/string.cc 2023-05-29 07:24:40.000000000 +0800
@@ -27,6 +27,7 @@

#include <iostream>
#include <ctype.h>
+#include <cstring>

#include "scriptix.h"
#include "system.h"

0 comments on commit b7c80ff

Please sign in to comment.