#! /bin/sh # find fontconfig, freetype and pango from fink PKG_CONFIG_PATH=/sw/lib/fontconfig2/lib/pkgconfig/:/sw/lib/freetype219/lib/pkgconfig:/sw/lib/pango-ft219/lib/pkgconfig # find flex 2.5.31 from fink (package flex-devel) PATH="/sw/lib/flex/bin:$PATH" CPPFLAGS="-I/sw/lib/flex/include" LDFLAGS="-L/sw/lib/flex/lib -L/sw/lib -lexpat" # -shared flag do not work on mac os x SHARED_FLAGS="-bundle -flat_namespace -undefined suppress" # tell about fink's kpathsea: KPATHSEA_FLAGS="--with-kpathsea-include=/sw/include --with-kpathsea-lib=/sw/lib" #KPATHSEA_FLAGS="--without-kpathsea" make PATH="$PATH" SHARED_FLAGS="$SHARED_FLAGS" LDFLAGS="$LDFLAGS"