Ticket #31852: patch-Makefile.dynamic.in.2.diff
File patch-Makefile.dynamic.in.2.diff, 2.6 KB (added by jmaibaum@…, 11 years ago) |
---|
-
Makefile.dynamic.in
12 12 docdir = $(prefix)/share/doc/fontforge 13 13 localedir = $(prefix)/share/locale 14 14 pythondir = $(sharedir)/python 15 applicationsdir = /Applications 15 16 16 17 srcdir = @srcdir@ 17 18 top_builddir = . … … 129 130 # You may need to be root to do the install 130 131 #explicit use of sh to make sure we don't invoke csh with different "if" syntax 131 132 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" 134 134 #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 ) 136 136 137 137 install_py: $(DESTDIR)$(sharedir) all install_libs install_incs install_po install_prog install_pycontrib 138 138 # You may need to be root to do the install 139 139 #explicit use of sh to make sure we don't invoke csh with different "if" syntax 140 140 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" 143 142 -(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 ) 144 143 145 144 install_gtk: fontforgegtk