Ticket #18976: patch-Makefile.dynamic.in.diff

File patch-Makefile.dynamic.in.diff, 2.3 KB (added by adfernandes (Andrew Fernandes), 16 years ago)
  • Makefile.dynamic.in

     
    1010docdir = $(prefix)/share/doc/fontforge
    1111localedir = $(prefix)/share/locale
    1212pythondir = $(sharedir)/python
     13applicationsdir = /Applications
    1314
    1415srcdir = @srcdir@
    1516top_builddir = .
     
    127128# You may need to be root to do the install
    128129#explicit use of sh to make sure we don't invoke csh with different "if" syntax
    129130        sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
    130         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"
    131         sh < systemspecific
     131        sh -c "if test -d fontforge/FontForge.app >/dev/null ; then mkdir -p $(DESTDIR)$(applicationsdir) ; mv fontforge/FontForge.app $(DESTDIR)$(applicationsdir) ; ln -sf $(bindir)/fontforge $(DESTDIR)$(applicationsdir)/FontForge.app/Contents/MacOS/FontForge ; fi"
    132132#we don't always create a setup.py
    133133        -(cd pyhook ; if test -r setup.py ; then python setup.py install --prefix=$(prefix) --root=$(DESTDIR); for dir in * ; do if test -d $$dir -a "$$dir" != "CVS" ; then  rm -rf $$dir ; fi; done ; fi )
    134134
     
    136136# You may need to be root to do the install
    137137#explicit use of sh to make sure we don't invoke csh with different "if" syntax
    138138        sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; for dir in * ; do if test -d $$dir ; then  rm -rf $$dir ; fi; done ; fi"
    139         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"
    140         sh < systemspecific
     139        sh -c "if test -d fontforge/FontForge.app >/dev/null ; then mkdir -p $(DESTDIR)$(applicationsdir) ; mv fontforge/FontForge.app $(DESTDIR)$(applicationsdir) ; ln -s $(bindir)/fontforge $(DESTDIR)$(applicationsdir)/FontForge.app/Contents/MacOS/FontForge ; fi"
    141140        -(cd pyhook ; python setup.py bdist --formats=gztar ; cp dist/fontforge-*.tar.gz $(DESTDIR)/tmp; for dir in * ; do if test -d $$dir -a "$$dir" != "CVS" ; then  rm -rf $$dir ; fi; done )
    142141
    143142install_gtk: fontforgegtk