Skip to content

Commit

Permalink
Redo the mac application. Get rid of the macshell (a separate little …
Browse files Browse the repository at this point in the history
…proge which translated apple events into something fontforge could handle) and make it so fontforge itself can grok apple events if it is started from the finder.
  • Loading branch information
George Williams committed Aug 14, 2012
1 parent 54be11e commit 3506ff3
Show file tree
Hide file tree
Showing 13 changed files with 308 additions and 236 deletions.
4 changes: 2 additions & 2 deletions Makefile.dynamic.in
Expand Up @@ -127,7 +127,7 @@ install: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_
# You may need to be root to do the install
#explicit use of sh to make sure we don't invoke csh with different "if" syntax
sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
sh < systemspecific
#we don't always create a setup.py
-(cd pyhook ; if test -r setup.py ; then python setup.py install --prefix=$(prefix) --root=$(DESTDIR); for dir in * ; do if test -d $$dir ; then rm -rf $$dir ; fi; done ; fi )
Expand All @@ -136,7 +136,7 @@ install_py: $(DESTDIR)$(sharedir) all install_libs install_incs install_po insta
# You may need to be root to do the install
#explicit use of sh to make sure we don't invoke csh with different "if" syntax
sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
sh < systemspecific
-(cd pyhook ; python setup.py bdist --formats=gztar ; cp dist/fontforge-*.tar.gz $(DESTDIR)/tmp )

Expand Down
2 changes: 1 addition & 1 deletion Makefile.static.in
Expand Up @@ -90,7 +90,7 @@ install: $(sharedir) all install_libs install_po install_pycontrib
$(INSTALL_DATA) fontforge.pc $(DESTDIR)$(libdir)/pkgconfig
#explicit use of sh to make sure we don't invoke csh with different "if" syntax
sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; fi"
sh -c "if test -d fontforge/FontForge.app >/dev/null ; then rm -rf /Applications/FontForge.app ; mv fontforge/FontForge.app /Applications ; ln -s /usr/local/bin/fontforge /Applications/FontForge.app/Contents/MacOS/FontForge ; fi"
sh < systemspecific

uninstall:
Expand Down
6 changes: 3 additions & 3 deletions README-Mac.html
Expand Up @@ -168,7 +168,7 @@ <H2>
Before you build (on a <A NAME="src-mac">mac</A>)
</H2>
<P>
You must ensure that you have the both the X11 server and the Xcode toolchain
You must ensure that you have the both the X11 server and the Developer's toolchain
installed on your system. This process is slightly different on OS/X 10.3
&amp; 10.4
<DL>
Expand All @@ -191,7 +191,7 @@ <H2>
Keep pressing <CODE>Continue</CODE>
<HR>
<LI>
The Xcode toolchain is optional software on the install DVD. Simply insert
The Developer's toolchain is optional software on the install DVD. Simply insert
the disk and click on the XCode install icon.
</UL>
<DT>
Expand All @@ -203,7 +203,7 @@ <H2>
<LI>
You must also install the X11SDK package on the XCode CD
<LI>
And you must install the XCode tools themselves.
And you must install the Developer's (XCode) tools themselves.
</UL>
</DL>
<P>
Expand Down
59 changes: 32 additions & 27 deletions configure
Expand Up @@ -2705,9 +2705,14 @@ _ACEOF
gww_define_caps_for_alt="1"


CPPFLAGS="$CPPFLAGS -I/sw/include"
LDFLAGS="$LDFLAGS -L/sw/lib"
gww_rpath="-rpath /sw/lib"
if test -d /sw/include >/dev/null ; then
CPPFLAGS="$CPPFLAGS -I/sw/include"
fi
if test -d /sw/lib >/dev/null ; then
LDFLAGS="$LDFLAGS -L/sw/lib"
gww_rpath="-rpath /sw/lib"
fi
LIBS="-Wl,/System/Library/Frameworks/Carbon.framework/Carbon $LIBS"
LIBS="-Wl,/System/Library/Frameworks/CoreServices.framework/CoreServices $LIBS"

;;
Expand Down Expand Up @@ -3513,7 +3518,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 3516 "configure"' > conftest.$ac_ext
echo '#line 3521 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
Expand Down Expand Up @@ -5014,7 +5019,7 @@ fi


# Provide some information about the compiler.
echo "$as_me:5017:" \
echo "$as_me:5022:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Expand Down Expand Up @@ -6367,11 +6372,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6370: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6375: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6374: \$? = $ac_status" >&5
echo "$as_me:6379: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -6657,11 +6662,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6660: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6665: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6664: \$? = $ac_status" >&5
echo "$as_me:6669: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -6761,11 +6766,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6764: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6769: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:6768: \$? = $ac_status" >&5
echo "$as_me:6773: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -9175,7 +9180,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9178 "configure"
#line 9183 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -9275,7 +9280,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 9278 "configure"
#line 9283 "configure"
#include "confdefs.h"

#if HAVE_DLFCN_H
Expand Down Expand Up @@ -11684,11 +11689,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:11687: $lt_compile\"" >&5)
(eval echo "\"\$as_me:11692: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:11691: \$? = $ac_status" >&5
echo "$as_me:11696: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -11788,11 +11793,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:11791: $lt_compile\"" >&5)
(eval echo "\"\$as_me:11796: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:11795: \$? = $ac_status" >&5
echo "$as_me:11800: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -13386,11 +13391,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13389: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13394: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:13393: \$? = $ac_status" >&5
echo "$as_me:13398: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -13490,11 +13495,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13498: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:13497: \$? = $ac_status" >&5
echo "$as_me:13502: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down Expand Up @@ -15719,11 +15724,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15722: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15727: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:15726: \$? = $ac_status" >&5
echo "$as_me:15731: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -16009,11 +16014,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16012: $lt_compile\"" >&5)
(eval echo "\"\$as_me:16017: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:16016: \$? = $ac_status" >&5
echo "$as_me:16021: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
Expand Down Expand Up @@ -16113,11 +16118,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:16116: $lt_compile\"" >&5)
(eval echo "\"\$as_me:16121: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:16120: \$? = $ac_status" >&5
echo "$as_me:16125: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
Expand Down

0 comments on commit 3506ff3

Please sign in to comment.