summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/chibi-scheme/Makefile15
-rw-r--r--lang/chibi-scheme/files/patch-Makefile6
-rw-r--r--lang/chibi-scheme/files/patch-Makefile.detect14
3 files changed, 18 insertions, 17 deletions
diff --git a/lang/chibi-scheme/Makefile b/lang/chibi-scheme/Makefile
index 7f64e5017349..6b119114b38b 100644
--- a/lang/chibi-scheme/Makefile
+++ b/lang/chibi-scheme/Makefile
@@ -29,13 +29,14 @@ PLIST_SUB= SOVERSION=${DISTVERSION}
PORTDOCS= *
post-patch:
- @${REINPLACE_CMD} -e 's@ -g -g3 -O3 @ @' \
- -e '/$$(SO)/ s@$$(INSTALL_EXE) -m0755 @$$(BSD_INSTALL_LIB) @' \
- -e '/tools/ s@$$(INSTALL) -m0755 @$$(BSD_INSTALL_SCRIPT) @' \
- -e 's@$$(INSTALL_EXE) -m0755 @$$(BSD_INSTALL_PROGRAM) @' \
- -e '/$$(MANDIR)/ s@$$(INSTALL) -m0644 @$$(BSD_INSTALL_MAN) @' \
- -e 's@$$(INSTALL) -m0644 @$$(BSD_INSTALL_DATA) @' \
- ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} \
+ -e '/$$(SO)/s|$$(INSTALL_EXE) -m0755|$$(BSD_INSTALL_LIB)|' \
+ -e '/tools/s|$$(INSTALL) -m0755|$$(BSD_INSTALL_SCRIPT)|' \
+ -e 's|$$(INSTALL_EXE) -m0755|$$(BSD_INSTALL_PROGRAM)|' \
+ -e '/$$(MANDIR)/s|$$(INSTALL) -m0644|$$(BSD_INSTALL_MAN)|' \
+ -e 's|$$(INSTALL) -m0644|$$(BSD_INSTALL_DATA)|' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} 's|-g -g3 -O3 ||' ${WRKSRC}/Makefile.detect
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}/lib
diff --git a/lang/chibi-scheme/files/patch-Makefile b/lang/chibi-scheme/files/patch-Makefile
index b7234090636a..81836371cec6 100644
--- a/lang/chibi-scheme/files/patch-Makefile
+++ b/lang/chibi-scheme/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 2020-10-14 09:49:18.314212000 +0000
-+++ Makefile 2020-10-14 09:51:06.922727000 +0000
-@@ -11,7 +11,7 @@
+--- Makefile.orig 2020-08-13 02:03:03 UTC
++++ Makefile
+@@ -11,7 +11,7 @@ CHIBI_FFI ?= $(CHIBI) -q tools/chibi-ffi
CHIBI_FFI_DEPENDENCIES ?= $(CHIBI_DEPENDENCIES) tools/chibi-ffi
CHIBI_DOC ?= $(CHIBI) tools/chibi-doc
diff --git a/lang/chibi-scheme/files/patch-Makefile.detect b/lang/chibi-scheme/files/patch-Makefile.detect
index 36795ddc8ea5..25a4b975d3d3 100644
--- a/lang/chibi-scheme/files/patch-Makefile.detect
+++ b/lang/chibi-scheme/files/patch-Makefile.detect
@@ -1,10 +1,10 @@
---- Makefile.detect.orig 2020-07-31 15:00:38 UTC
+--- Makefile.detect.orig 2020-10-16 13:28:43 UTC
+++ Makefile.detect
-@@ -75,6 +75,7 @@ CLIBFLAGS = -fPIC
- CLINKFLAGS = -shared
- LIBDL =
- RLDFLAGS=-Wl,-R$(LIBDIR)
+@@ -9,6 +9,7 @@ PLATFORM=macosx
+ else
+ ifeq ($(shell uname),FreeBSD)
+ PLATFORM=bsd
+LIBCHIBI_FLAGS = -Wl,-soname,libchibi-scheme$(SO).$(SOVERSION_MAJOR)
else
- ifeq ($(PLATFORM),solaris)
- SO = .so
+ ifeq ($(shell uname),NetBSD)
+ PLATFORM=bsd