diff --git a/macosx/Makefile b/macosx/Makefile index aaf347c32..91243695d 100644 --- a/macosx/Makefile +++ b/macosx/Makefile @@ -31,7 +31,7 @@ NMAP_UPDATE_BUILD_DIR = nmap-update-build NMAP_UPDATE_STAGING_DIR = nmap-update-root JHBUILD_PREFIX=$(HOME)/gtk/inst -export JHBUILD_PREFIX +JHBUILD_SOURCE=$(HOME)/gtk/source PREFIX = /usr/local # Extra distribution file names @@ -190,7 +190,7 @@ stage-%: export-tarball rsync -a --files-from "$(JHBUILD_PREFIX)/_jhbuild/manifests/$*" "$(JHBUILD_PREFIX)" $*-root/ stage-zenmap: export-$(ZENMAP_BUILD_DIR) - cd $(ZENMAP_BUILD_DIR)/zenmap && install_scripts/macosx/make-bundle.sh + cd $(ZENMAP_BUILD_DIR)/zenmap && jhbuild run install_scripts/macosx/make-bundle.sh rm -rf $(ZENMAP_STAGING_DIR) mkdir -p $(ZENMAP_STAGING_DIR) cp -rf $(ZENMAP_BUILD_DIR)/zenmap/dist/Zenmap.app $(ZENMAP_STAGING_DIR) diff --git a/zenmap/install_scripts/macosx/make-bundle.sh b/zenmap/install_scripts/macosx/make-bundle.sh index 7f8b25ff1..16188f771 100755 --- a/zenmap/install_scripts/macosx/make-bundle.sh +++ b/zenmap/install_scripts/macosx/make-bundle.sh @@ -1,6 +1,8 @@ #!/bin/sh -e set -x +test "x$UNDER_JHBUILD" = "x" && exit 1 + # make-bundle.sh APP_NAME=Zenmap ZENMAP_DIST_DIR=$PWD/dist @@ -21,11 +23,7 @@ echo "Removing old build." rm -rf "$ZENMAP_DIST_DIR" "$ZENMAP_BUILD_DIR" echo "Building bundle" -# jhbuild bootstrap -# jhbuild build meta-gtk-osx-bootstrap -# jhbuild build meta-gtk-osx-core -# jhbuild build meta-gtk-osx-python -jhbuild run gtk-mac-bundler "$SCRIPT_DIR/zenmap.bundle" +gtk-mac-bundler "$SCRIPT_DIR/zenmap.bundle" echo "Stripping unoptimized Python libraries" #Remove some stuff that is unneeded. This cuts 40M off the installed size. @@ -45,8 +43,8 @@ find "$BASE/Resources/lib/python2.7" -type f -name '*.pyo' | while read py; do done echo "Building using distutils" -jhbuild run python setup.py build --executable "/usr/bin/env python" -jhbuild run python setup.py install vanilla --prefix "$BASE/Resources" +python setup.py build --executable "/usr/bin/env python" +python setup.py install vanilla --prefix "$BASE/Resources" echo "Renaming main Zenmap executable." mv $BASE/MacOS/$APP_NAME $BASE/MacOS/zenmap.bin