[64623] trunk/dports/devel/caml-camlzip

avsm at macports.org avsm at macports.org
Thu Mar 11 02:48:30 PST 2010


Revision: 64623
          http://trac.macports.org/changeset/64623
Author:   avsm at macports.org
Date:     2010-03-11 02:48:26 -0800 (Thu, 11 Mar 2010)
Log Message:
-----------
install camlzip shared library in stub-libs correctly so that runtime linking works with findlib

Modified Paths:
--------------
    trunk/dports/devel/caml-camlzip/Portfile
    trunk/dports/devel/caml-camlzip/files/Makefile.diff

Modified: trunk/dports/devel/caml-camlzip/Portfile
===================================================================
--- trunk/dports/devel/caml-camlzip/Portfile	2010-03-11 10:29:11 UTC (rev 64622)
+++ trunk/dports/devel/caml-camlzip/Portfile	2010-03-11 10:48:26 UTC (rev 64623)
@@ -34,7 +34,7 @@
 build.target        all allopt
 
 set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
-destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir -ldconf ignore"
+destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir -ldconf ignore" OCAMLFIND_STUBLIBS=${ocamlfind_destdir}/stublibs
 destroot.target     ocamlfind-install
 
 pre-destroot {

Modified: trunk/dports/devel/caml-camlzip/files/Makefile.diff
===================================================================
--- trunk/dports/devel/caml-camlzip/files/Makefile.diff	2010-03-11 10:29:11 UTC (rev 64622)
+++ trunk/dports/devel/caml-camlzip/files/Makefile.diff	2010-03-11 10:48:26 UTC (rev 64623)
@@ -1,11 +1,14 @@
 --- Makefile	2002-04-22 08:28:57.000000000 -0700
 +++ Makefile	2009-07-03 12:06:22.000000000 -0700
-@@ -68,6 +68,9 @@
+@@ -68,6 +68,12 @@
  installopt:
  	cp zip.cmxa zip.a zip.cmx gzip.cmx $(INSTALLDIR)
  
 +ocamlfind-install: all allopt
-+	  ocamlfind install $(OCAMLFIND_INSTFLAGS) camlzip META gzip.cmi gzip.cmx gzip.mli libcamlzip.a zip.a zip.cma zip.cmi zip.cmx zip.cmxa zip.mli zlib.cmi zlib.mli dllcamlzip.so
++	ocamlfind install $(OCAMLFIND_INSTFLAGS) camlzip META gzip.cmi gzip.cmx gzip.mli libcamlzip.a zip.a zip.cma zip.cmi zip.cmx zip.cmxa zip.mli zlib.cmi zlib.mli
++	mkdir -p $(OCAMLFIND_STUBLIBS)
++	cp dllcamlzip.so $(OCAMLFIND_STUBLIBS)
++	echo camlzip > $(OCAMLFIND_STUBLIBS)/dllcamlzip.so.owner
 +
  depend:
  	gcc -MM -I$(ZLIB_INCLUDE) *.c > .depend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100311/9e4ebab9/attachment.html>


More information about the macports-changes mailing list