#!/bin/sh # Use at least version 2.8p9 # http://sourceforge.net/projects/owfs/files/ # http://www.macports.org/ # port install macfuse # port install python26 # port install libusb-compat # port install libtool moveif() { if [ ! -e "${1}.orig" ]; then mv "${1}" "${1}.orig" else rm -f "${1}" fi } LD_OPTIONS=" -L/opt/local/lib -R/opt/local/lib \ -L/usr/local/lib -R/usr/local/lib" LDFLAGS="$LD_OPTIONS" CFLAGS="-I/opt/local/include -I/usr/local/include" export LDFLAGS LD_OPTIONS CFLAGS glibtoolize -c -f -i ./bootstrap moveif module/swig/python/Makefile.in awk '{print} \ /^[^#].*PYTHON. setup\.py install/ \ {print "\tchmod a+rX \"/$(DESTDIR)$(PYSITEDIR)/ow/\"*"} \ ' \ module/swig/python/Makefile.in.orig \ > module/swig/python/Makefile.in moveif src/man/Makefile.in sed -e 's/ tac/ tail -r/' \ < src/man/Makefile.in.orig > src/man/Makefile.in ./configure --prefix=/usr/local/owfs \ --with-python=/opt/local/bin/python2.6 \ --with-pythonconfig=/opt/local/bin/python2.6-config \ --disable-zero \ --disable-owphp \ --disable-owperl \ --disable-owtcl \ --disable-owftpd \ --enable-owhttpd \ --with-libusb-config=/opt/local/bin/libusb-config \ --with-fuseinclude=/opt/local/include \ --with-fuselib=/opt/local/lib gmake -j3