summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/index.html6
-rw-r--r--plugins/native/darwin/overrides.mk15
2 files changed, 16 insertions, 5 deletions
diff --git a/docs/index.html b/docs/index.html
index 173cde9..ee2150b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -953,18 +953,14 @@ USE_OSGPLUGIN(<plugin2>)
then run:
</p>
<!-- https://www.macports.org/ports.php -->
- <pre>sudo port install \
- autoconf \
- automake \
+ <pre>sudo port -N install \
coreutils \
gdk-pixbuf2 \
gnutar \
gsed \
intltool \
- libtool \
lzip \
p7zip \
- pkgconfig \
wget \
xz</pre>
diff --git a/plugins/native/darwin/overrides.mk b/plugins/native/darwin/overrides.mk
index 4bd68c9..62e50be 100644
--- a/plugins/native/darwin/overrides.mk
+++ b/plugins/native/darwin/overrides.mk
@@ -7,3 +7,18 @@ override EXCLUDE_PKGS += ocaml%
$(foreach PKG,$(filter ocaml%,$(PKGS)),\
$(foreach TGT,$(MXE_TARGETS),\
$(eval $(PKG)_BUILD_$(TGT) :=)))
+
+# silence "install JDK" popups
+# move the rule to main Makefile if other systems abandon java
+# and conditionally include the dependency
+check-requirements: disable-native-jre
+
+.PHONY: disable-native-jre
+disable-native-jre:
+ @mkdir -p '$(PREFIX)/$(BUILD)/bin'
+ @( \
+ echo '#!/bin/sh'; \
+ echo 'exit 1'; \
+ ) > '$(PREFIX)/$(BUILD)/bin/java'
+ @chmod 0755 '$(PREFIX)/$(BUILD)/bin/java'
+ @cp '$(PREFIX)/$(BUILD)/bin/java' '$(PREFIX)/$(BUILD)/bin/javac'