# prefix
-PREFIX=$(HOME)/FIX/leopard
+PREFIX=/opt/local
# base
echo >>$@
echo "/usr/local/bin/dot -c" >>$@
make -n -C ../../tclpkg install-data-hook >>$@
- echo "arch -arch i386 /usr/local/bin/gv-fc-cache" >>$@
+ echo "arch -arch ppc -arch i386 /usr/local/bin/gv-fc-cache" >>$@
echo 'if test `sysctl -n hw.cpu64bit_capable` = 1; then arch -arch x86_64 /usr/local/bin/gv-fc-cache; fi' >>$@
$(GV_DIR)/cmd/dot/.libs/$(DOT): $(GV_DIR)/Makefile
if [[ -e $@ ]]; then $(MAKE) -C $(GV_DIR) clean; fi
$(MAKE) -C $(GV_DIR)/tclpkg/tkstubs
$(MAKE) -C $(GV_DIR)/tclpkg/tclstubs
- $(MAKE) -C $(GV_DIR)/tclpkg/tkspline CFLAGS="-O2 -arch i386 -I$(PREFIX)/include" LDFLAGS="-arch i386 -L$(PREFIX)/lib -Wl,-dead_strip"
+ $(MAKE) -C $(GV_DIR)/tclpkg/tkspline CFLAGS="-O2 -arch ppc -arch i386 -I$(PREFIX)/include" LDFLAGS="-arch ppc -arch i386 -L$(PREFIX)/lib -Wl,-dead_strip"
$(MAKE) -C $(GV_DIR)
$(GV_DIR)/Makefile: $(GV_DIR)/configure
@echo CONFIGURING GRAPHVIZ...
@echo
# add ppc and ppc64 below if you want them
- cd $(GV_DIR) && ./configure --disable-dependency-tracking --with-ipsepcola --with-quartz --with-smyrna CFLAGS="-O2 -arch i386 -arch x86_64 -I$(PREFIX)/include" CXXFLAGS="-O2 -arch i386 -arch x86_64 -I$(PREFIX)/include" OBJCFLAGS="-O2 -arch i386 -arch x86_64 -I$(PREFIX)/include" LDFLAGS="-arch i386 -arch x86_64 -L$(PREFIX)/lib -Wl,-dead_strip" GDLIB_CONFIG="$(PREFIX)/bin/gdlib-config" PKG_CONFIG="$(PREFIX)/bin/pkg-config" PKG_CONFIG_PATH="$(PREFIX)/lib/pkgconfig:/usr/X11/lib/pkgconfig"
+ cd $(GV_DIR) && ./configure --disable-dependency-tracking --with-ipsepcola --with-quartz CFLAGS="-O2 -arch ppc -arch i386 -arch x86_64 -I$(PREFIX)/include" CXXFLAGS="-O2 -arch ppc -arch i386 -arch x86_64 -I$(PREFIX)/include" OBJCFLAGS="-O2 -arch ppc -arch i386 -arch x86_64 -I$(PREFIX)/include" LDFLAGS="-arch ppc -arch i386 -arch x86_64 -L$(PREFIX)/lib -Wl,-dead_strip" GDLIB_CONFIG="$(PREFIX)/bin/gdlib-config" PKG_CONFIG="$(PREFIX)/bin/pkg-config" PKG_CONFIG_PATH="$(PREFIX)/lib/pkgconfig:/usr/X11/lib/pkgconfig"