diff options
author | is <is> | 2011-05-24 12:26:00 +0000 |
---|---|---|
committer | is <is> | 2011-05-24 12:26:00 +0000 |
commit | f2f3ca4390d00a792e6509d8bd240a2172e54f9d (patch) | |
tree | d6ec52bb3224b25e826922cc7abd672501296016 /graphics/camlimages/patches | |
parent | bbd4bb89cd5bad20ac795633eb7020dcc680277d (diff) | |
download | pkgsrc-f2f3ca4390d00a792e6509d8bd240a2172e54f9d.tar.gz |
DESTDIR support
Diffstat (limited to 'graphics/camlimages/patches')
-rw-r--r-- | graphics/camlimages/patches/patch-ac | 27 | ||||
-rw-r--r-- | graphics/camlimages/patches/patch-ad | 15 |
2 files changed, 42 insertions, 0 deletions
diff --git a/graphics/camlimages/patches/patch-ac b/graphics/camlimages/patches/patch-ac new file mode 100644 index 00000000000..331eb3de495 --- /dev/null +++ b/graphics/camlimages/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1 2011/05/24 12:26:00 is Exp $ + +--- Makefile.orig 2004-10-02 15:49:05.000000000 +0000 ++++ Makefile +@@ -92,15 +92,15 @@ top: + installopt: install + + install: all +- mkdir -p $(LIBDIR) +- if test -w $(CAMLDIR)/ld.conf \ +- && test `grep -s -c '^$(LIBDIR)$$' $(CAMLDIR)/ld.conf` = 0; then \ +- echo $(LIBDIR) >> $(CAMLDIR)/ld.conf; \ ++ mkdir -p $(DESTDIR)$(LIBDIR) ++ if test -w $(DESTDIR)$(CAMLDIR)/ld.conf \ ++ && test `grep -s -c '^$(LIBDIR)$$' $(DESTDIR)$(CAMLDIR)/ld.conf` = 0; then \ ++ echo $(LIBDIR) >> $(DESTDIR)$(CAMLDIR)/ld.conf; \ + fi + for i in $(BUILDDIRS); do (cd $$i; $(MAKE) install) || exit $$?; done +- $(CP) Makefile.config $(LIBDIR) +- $(CP) config.h $(LIBDIR) +- $(RANLIB) $(LIBDIR)/*.a ++ $(CP) Makefile.config $(DESTDIR)$(LIBDIR) ++ $(CP) config.h $(DESTDIR)$(LIBDIR) ++ $(RANLIB) $(DESTDIR)$(LIBDIR)/*.a + + depend: + for i in $(BUILDDIRS); do (cd $$i; $(MAKE) depend) || exit $$?; done diff --git a/graphics/camlimages/patches/patch-ad b/graphics/camlimages/patches/patch-ad new file mode 100644 index 00000000000..3404b91d66e --- /dev/null +++ b/graphics/camlimages/patches/patch-ad @@ -0,0 +1,15 @@ +$NetBSD: patch-ad,v 1.1 2011/05/24 12:26:00 is Exp $ + +--- Makefile.shared.orig 2004-10-02 14:20:09.000000000 +0000 ++++ Makefile.shared +@@ -45,8 +45,8 @@ clean:: + rm -f *.cm[iox] *.o *.cma *.cmxa *.a *.so *~ + + install:: all +- - mkdir -p $(LIBDIR) +- - cp -p *.mli *.cm[iox] *.o *.cma *.cmxa *.a *.so $(LIBDIR) ++ - mkdir -p $(DESTDIR)$(LIBDIR) ++ - cp -p *.mli *.cm[iox] *.o *.cma *.cmxa *.a *.so $(DESTDIR)$(LIBDIR) + + ####### + |