Fixup fromcvs/togit conversion
[pkgsrcv2.git] / lang / ocaml / patches / patch-bh
1 $NetBSD: patch-bh,v 1.3 2009/09/07 21:48:14 tonio Exp $
2
3 --- otherlibs/labltk/lib/Makefile.orig  2010-06-08 04:54:09.000000000 +0400
4 +++ otherlibs/labltk/lib/Makefile       2010-08-12 14:39:56.000000000 +0400
5 @@ -58,26 +58,21 @@
6         @echo 'exec $(INSTALLDIR)/$(LIBNAME)top$(EXE) -I $(INSTALLDIR) $$*' >> $@
7  
8  install-script: $(LIBNAME)
9 -       cp $(LIBNAME) $(BINDIR)
10 -       chmod 755 $(BINDIR)/$(LIBNAME)
11 +       $(BSD_INSTALL_SCRIPT) $(LIBNAME) $(BINDIR)
12  
13  install-batch:
14         cp labltk.bat $(BINDIR)
15  
16  install:
17 -       if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
18 -       cp $(LIBNAME).cma $(LIBNAME)top$(EXE) $(INSTALLDIR)
19 -       chmod 644 $(INSTALLDIR)/$(LIBNAME).cma
20 -       chmod 755 $(INSTALLDIR)/$(LIBNAME)top$(EXE)
21 -       @if test -d $(BINDIR); then : ; else mkdir $(BINDIR); fi
22 +       if test -d $(INSTALLDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALLDIR); fi
23 +       $(BSD_INSTALL_DATA) $(LIBNAME).cma $(LIBNAME)top$(EXE) $(INSTALLDIR)
24 +       @if test -d $(BINDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(BINDIR); fi
25         @case x$(TOOLCHAIN) in \
26           xmingw|xmsvc) $(MAKE) install-batch ;; \
27           *)            $(MAKE) install-script ;; \
28         esac
29  
30  installopt:
31 -       @if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
32 -       cp $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
33 +       @if test -d $(INSTALLDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALLDIR); fi
34 +       $(BSD_INSTALL_DATA) $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
35         cd $(INSTALLDIR); $(RANLIB) $(LIBNAME).$(A)
36 -       chmod 644 $(INSTALLDIR)/$(LIBNAME).cmxa
37 -       chmod 644 $(INSTALLDIR)/$(LIBNAME).$(A)