summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2007-11-10 14:18:20 +0000
committerAlexis Ballier <aballier@gentoo.org>2007-11-10 14:18:20 +0000
commita5989fb75efb71120cd12671ef29ee1270a475ea (patch)
tree192f3930bbef71ab3dc4e06acdcbe93e32eea0f1 /dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch
parentamd64 stable (diff)
downloadgentoo-2-a5989fb75efb71120cd12671ef29ee1270a475ea.tar.gz
gentoo-2-a5989fb75efb71120cd12671ef29ee1270a475ea.tar.bz2
gentoo-2-a5989fb75efb71120cd12671ef29ee1270a475ea.zip
also install zlib support, thanks to Pierre Clairambault <pclairam@gmail.com>, bug #198466
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch')
-rw-r--r--dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch b/dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch
new file mode 100644
index 000000000000..6eefb5021f8a
--- /dev/null
+++ b/dev-ml/camlzip/files/camlzip-1.03-Makefile-findlib.patch
@@ -0,0 +1,36 @@
+--- Makefile.orig 2007-11-08 18:07:44.000000000 +0100
++++ Makefile 2007-11-08 18:09:35.000000000 +0100
+@@ -19,10 +19,13 @@
+ OCAMLOPT=ocamlopt
+ OCAMLDEP=ocamldep
+ OCAMLMKLIB=ocamlmklib
++OCAMLFIND=ocamlfind
+
+ OBJS=zlib.cmo zip.cmo gzip.cmo
+ C_OBJS=zlibstubs.o
+
++LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so *.cmx)
++
+ all: libcamlzip.a zip.cma
+
+ allopt: libcamlzip.a zip.cmxa
+@@ -55,18 +58,7 @@
+ rm -f *.o *.a
+
+ install:
+- mkdir -p $(INSTALLDIR)
+- cp zip.cma zip.cmi gzip.cmi zip.mli gzip.mli libcamlzip.a $(INSTALLDIR)
+- if test -f dllcamlzip.so; then \
+- cp dllcamlzip.so $(INSTALLDIR); \
+- ldconf=`$(OCAMLC) -where`/ld.conf; \
+- installdir=$(INSTALLDIR); \
+- if test `grep -s -c $$installdir'$$' $$ldconf || :` = 0; \
+- then echo $$installdir >> $$ldconf; fi \
+- fi
+-
+-installopt:
+- cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR)
++ $(OCAMLFIND) install camlzip META $(LIBINSTALL_FILES)
+
+ depend:
+ gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend