pkgsrc-ng/lang/ocaml/patches/patch-otherlibs_labltk_lib_Makefile
2013-09-26 17:14:40 +02:00

39 lines
1.6 KiB
Plaintext

$NetBSD: patch-otherlibs_labltk_lib_Makefile,v 1.1 2012/10/08 15:05:33 jaapb Exp $
Use BSD_INSTALL_* instead of mkdir and cp
--- otherlibs/labltk/lib/Makefile.orig 2012-05-24 16:17:19.000000000 +0000
+++ otherlibs/labltk/lib/Makefile
@@ -80,26 +80,21 @@ $(LIBNAME): Makefile $(TOPDIR)/config/Ma
@echo 'exec $(INSTALLDIR)/$(LIBNAME)top$(EXE) -I $(INSTALLDIR) "$$@"' >> $@
install-script: $(LIBNAME)
- cp $(LIBNAME) $(BINDIR)
- chmod 755 $(BINDIR)/$(LIBNAME)
+ $(BSD_INSTALL_SCRIPT) $(LIBNAME) $(BINDIR)
install-batch:
cp labltk.bat $(BINDIR)
install:
- if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
- cp $(LIBNAME).cma $(LIBNAME)top$(EXE) $(INSTALLDIR)
- chmod 644 $(INSTALLDIR)/$(LIBNAME).cma
- chmod 755 $(INSTALLDIR)/$(LIBNAME)top$(EXE)
- @if test -d $(BINDIR); then : ; else mkdir $(BINDIR); fi
+ if test -d $(INSTALLDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALLDIR); fi
+ $(BSD_INSTALL_DATA) $(LIBNAME).cma $(LIBNAME)top$(EXE) $(INSTALLDIR)
+ @if test -d $(BINDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(BINDIR); fi
@case x$(TOOLCHAIN) in \
xmingw|xmsvc) $(MAKE) install-batch ;; \
*) $(MAKE) install-script ;; \
esac
installopt:
- @if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
- cp $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
+ @if test -d $(INSTALLDIR); then : ; else $(BSD_INSTALL_DATA_DIR) $(INSTALLDIR); fi
+ $(BSD_INSTALL_DATA) $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
cd $(INSTALLDIR); $(RANLIB) $(LIBNAME).$(A)
- chmod 644 $(INSTALLDIR)/$(LIBNAME).cmxa
- chmod 644 $(INSTALLDIR)/$(LIBNAME).$(A)