pkgsrc/archivers/ocaml-zip/patches/patch-aa
obache ed31e415b1 Import ocaml-zip-1.03 as archivers/ocaml-zip.
Packaged by Jaap Boender and provided by PR 39113.

This Objective Caml library provides easy access to compressed files in ZIP
and GZIP format, as well as to Java JAR files.  It provides functions
for reading from and writing to compressed files in these formats.
2008-09-02 11:45:32 +00:00

26 lines
899 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2008/09/02 11:45:32 obache Exp $
--- Makefile.orig 2002-04-22 17:28:57.000000000 +0200
+++ Makefile 2008-02-18 14:25:56.000000000 +0100
@@ -55,18 +55,9 @@
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 -optional zip META zip.cma zip.cmi gzip.cmi zip.mli \
+ gzip.mli libcamlzip.a dllcamlzip.so zip.cmxa zip.a zip.cmx gzip.cmx \
+ zlib.mli zlib.cmi zlib.cmx
depend:
gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend