]> granicus.if.org Git - graphviz/commitdiff
automated builds of Mac packages
authorglenlow <devnull@localhost>
Wed, 19 Dec 2007 08:01:17 +0000 (08:01 +0000)
committerglenlow <devnull@localhost>
Wed, 19 Dec 2007 08:01:17 +0000 (08:01 +0000)
Makefile.am
macbuild [new file with mode: 0755]

index 7850041d619722b5338f94eeff8e231284b4f016..4e55dd17a69279735bfb69b6d98cc46e63504b1b 100644 (file)
@@ -35,7 +35,8 @@ EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \
        graphviz.7 Doxyfile.in Doxyfile \
        makearch features awk windows \
        config/config_perl.pl config/config_python.py \
-       config/config_ruby.rb config/config_tcl.tcl dot.demo
+       config/config_ruby.rb config/config_tcl.tcl dot.demo \
+       macbuild macosx
 
 .PHONY: rpm
 rpm: dist
diff --git a/macbuild b/macbuild
new file mode 100755 (executable)
index 0000000..143f8bc
--- /dev/null
+++ b/macbuild
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PACKAGEMAKER="/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"
+
+# configure for Universal Binaries
+./configure --disable-dependency-tracking CFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc"
+make
+
+# make into the macosx build directory
+rm -rf macosx/build/usr/local/*
+make DESTDIR=$PWD/macosx/build install
+
+# convert the build directory into a package
+$PACKAGEMAKER --doc macosx/graphviz.pmdoc --out $1