The original version contains a file called macosx-app-template in the bin . This file is used by the following part of the configure script to create macosx-app :
cat > config/macosx-app-temp << EOF #!/bin/sh rezcomp="$wxinstallrezcomp" rezfile="$wxinstallrezfile" EOF cat config/macosx-app-temp bin/macosx-app-template > config/macosx-app rm -f config/macosx-app-temp chmod a+x config/macosx-app
If you have already installed wxHaskell and are not using the configure script, you can simply duplicate these steps, that is, copy macosx-app-template to macosx-app , make it executable and add the following lines at the top:
#!/bin/sh libdir="" wxrezcomp="`wx-config --rezflags`" wxrezfile="" if test "$wxrezcomp"; then for word in $wxrezcomp; do temp="`echo $word | grep '[^_]*_mac-[^r]*r'`" if test "$temp"; then wxrezfile="$temp" fi done fi if test "$wxrezfile"; then wxrezdir="`echo $wxrezfile | sed -e 's|\(.*\)/libwx_mac.*|\1|'`" wxinstallrezcomp="`echo \"${wxrezcomp}\" | sed -e \"s|${wxrezdir}|${libdir}|g\"`" wxinstallrezfile="`echo \"${wxrezfile}\" | sed -e \"s|${wxrezdir}|${libdir}|g\"`" fi rezcomp="$wxinstallrezcomp" rezfile="$wxinstallrezfile"
Note that you need to change libdir="" to indicate the directory where the wxHaskell library files are installed, and if wx-config not in your path, you will also need to change this line.
source share