Ticket #31852: patch-Makefile.dynamic.in.2.diff

File patch-Makefile.dynamic.in.2.diff, 2.6 KB (added by jmaibaum@…, 11 years ago)

New version reflecting jmr’s advices.

  • Makefile.dynamic.in

     
    1212docdir = $(prefix)/share/doc/fontforge
    1313localedir = $(prefix)/share/locale
    1414pythondir = $(sharedir)/python
     15applicationsdir = /Applications
    1516
    1617srcdir = @srcdir@
    1718top_builddir = .
     
    129130# You may need to be root to do the install
    130131#explicit use of sh to make sure we don't invoke csh with different "if" syntax
    131132        sh -c "if test -d $(srcdir)/htdocs >/dev/null ; then $(MAKE) install_docs ; fi"
    132         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"
    133         sh < systemspecific
     133        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"
    134134#we don't always create a setup.py
    135         -(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 )
     135        -(cd pyhook ; if test -r setup.py ; then $(PYTHON) setup.py --no-user-cfg install --prefix=$(PYTHONPREFIX) --root=$(DESTDIR); for dir in * ; do if test -d $$dir -a "$$dir" != "CVS" ; then  rm -rf $$dir ; fi; done ; fi )
    136136
    137137install_py: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_prog install_pycontrib
    138138# You may need to be root to do the install
    139139#explicit use of sh to make sure we don't invoke csh with different "if" syntax
    140140        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"
    141         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"
    142         sh < systemspecific
     141        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"
    143142        -(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 )
    144143
    145144install_gtk: fontforgegtk