darwin: silence jdk popups and update macports

pull/2416/head
Tony Theodore 5 years ago
parent 16e80eabe5
commit e378f7655d

@ -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>

@ -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'

Loading…
Cancel
Save