From: glenlow Date: Fri, 15 Feb 2008 23:22:38 +0000 (+0000) Subject: macbuild now has get, prep and build options; make pkg will generate a Mac OS X packa... X-Git-Tag: LAST_LIBGRAPH~32^2~4724 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b4e7f4126b5004910c53efb3f685ce20de5a16;p=graphviz macbuild now has get, prep and build options; make pkg will generate a Mac OS X package at root level --- diff --git a/Makefile.am b/Makefile.am index 578021c9d..897a0b974 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,5 +41,10 @@ EXTRA_DIST = $(txt) $(html) graphviz.spec.in graphviz.spec \ .PHONY: rpm rpm: dist rpmbuild -ta graphviz-@VERSION@.tar.gz + +.PHONY: pkg +pkg: dist + ./macbuild --prep=graphviz-@VERSION@.tar.gz + DISTCLEANFILES = config.cache builddate.h ast_common.h FEATURE/* graphviz-@VERSION@* diff --git a/macbuild b/macbuild index cd76e52d3..c1fed304e 100755 --- a/macbuild +++ b/macbuild @@ -1,18 +1,161 @@ -#!/bin/sh +#!/bin/bash PACKAGEMAKER="/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker" XCODEBUILD="xcodebuild" -# configure for Universal Binaries -./configure --disable-dependency-tracking --with-quartz CFLAGS="-arch i386 -arch ppc" LDFLAGS="-arch i386 -arch ppc" -make +GRAPHVIZ_BUILDING= +PACKAGE= -# make into the macosx build directory -rm -rf macosx/build/usr/local/* -make DESTDIR=$PWD/macosx/build install +# first pass -- getting + prepping -# build the GUI application -$XCODEBUILD -project macosx/graphviz.xcodeproj -configuration Release +for ARG +do + GET= + PREP= + BUILD= + case $ARG in + --help ) + cat <