Ticket #31852: patch-Makefile.dynamic.in.diff
File patch-Makefile.dynamic.in.diff, 2.6 KB (added by michael@…, 13 years ago) |
---|
-
Makefile.dynamic.in
10 10 docdir = $(prefix)/share/doc/fontforge 11 11 localedir = $(prefix)/share/locale 12 12 pythondir = $(sharedir)/python 13 applicationsdir = /Applications 13 14 14 15 srcdir = @srcdir@ 15 16 top_builddir = . … … 127 128 # You may need to be root to do the install 128 129 #explicit use of sh to make sure we don't invoke csh with different "if" syntax 129 130 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" 132 132 #we don't always create a setup.py 133 -(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 )133 -(cd pyhook ; if test -r setup.py ; then $(PYTHON) setup.py install --prefix=$(PYTHONPREFIX) --root=$(DESTDIR); for dir in * ; do if test -d $$dir -a "$$dir" != "CVS" ; then rm -rf $$dir ; fi; done ; fi ) 134 134 135 135 install_py: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_prog install_pycontrib 136 136 # You may need to be root to do the install 137 137 #explicit use of sh to make sure we don't invoke csh with different "if" syntax 138 138 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" 141 140 -(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 ) 142 141 143 142 install_gtk: fontforgegtk