[54681] trunk/dports/devel/caml-ocamlnet
ryandesign at macports.org
ryandesign at macports.org
Fri Jul 31 10:03:57 PDT 2009
Revision: 54681
http://trac.macports.org/changeset/54681
Author: ryandesign at macports.org
Date: 2009-07-31 10:03:56 -0700 (Fri, 31 Jul 2009)
Log Message:
-----------
caml-ocamlnet: use ${configure.cpp}; see UsingTheRightCompiler
Modified Paths:
--------------
trunk/dports/devel/caml-ocamlnet/Portfile
Added Paths:
-----------
trunk/dports/devel/caml-ocamlnet/files/
trunk/dports/devel/caml-ocamlnet/files/patch-rpcgen.diff
Modified: trunk/dports/devel/caml-ocamlnet/Portfile
===================================================================
--- trunk/dports/devel/caml-ocamlnet/Portfile 2009-07-31 17:03:22 UTC (rev 54680)
+++ trunk/dports/devel/caml-ocamlnet/Portfile 2009-07-31 17:03:56 UTC (rev 54681)
@@ -29,10 +29,16 @@
port:caml-findlib \
port:caml-pcre
+patchfiles patch-rpcgen.diff
+
post-patch {
set ocaml_site_path [exec ocamlfind printconf destdir]
reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
${worksrcpath}/Makefile
+ reinplace "s|@CPP@|${configure.cpp}|g" \
+ ${worksrcpath}/src/netplex/Makefile.pre \
+ ${worksrcpath}/src/rpc/Makefile.pre \
+ ${worksrcpath}/src/rpc-auth-dh/Makefile.pre
}
configure {
Added: trunk/dports/devel/caml-ocamlnet/files/patch-rpcgen.diff
===================================================================
--- trunk/dports/devel/caml-ocamlnet/files/patch-rpcgen.diff (rev 0)
+++ trunk/dports/devel/caml-ocamlnet/files/patch-rpcgen.diff 2009-07-31 17:03:56 UTC (rev 54681)
@@ -0,0 +1,30 @@
+--- src/netplex/Makefile.pre 2007-11-01 17:12:32.000000000 -0500
++++ src/netplex/Makefile.pre 2009-07-31 11:58:14.000000000 -0500
+@@ -4,7 +4,7 @@
+ PKGNAME = netplex
+ GENERATE = netplex_ctrl_aux.ml netplex_ctrl_clnt.ml netplex_ctrl_srv.ml META
+ PACKLIST = netplex-packlist
+-RPCGEN = ../rpc-generator/ocamlrpcgen
++RPCGEN = ../rpc-generator/ocamlrpcgen -cpp @CPP@
+
+ INSTALL_EXTRA = netplex-packlist netplex_mt.cmo netplex_mt.cmx netplex_mt.o
+ INSTOTHER = install-netplex-admin
+--- src/rpc/Makefile.pre 2007-11-01 17:12:32.000000000 -0500
++++ src/rpc/Makefile.pre 2009-07-31 11:58:11.000000000 -0500
+@@ -5,7 +5,7 @@
+
+ GENERATE = rpc_portmapper_aux.ml rpc_portmapper_clnt.ml META
+
+-RPCGEN = ../rpc-generator/ocamlrpcgen
++RPCGEN = ../rpc-generator/ocamlrpcgen -cpp @CPP@
+
+ include $(TOP_DIR)/Makefile.rules
+
+--- src/rpc-auth-dh/Makefile.pre 2007-11-01 17:12:33.000000000 -0500
++++ src/rpc-auth-dh/Makefile.pre 2009-07-31 11:58:08.000000000 -0500
+@@ -18,4 +18,4 @@
+ sed -e "s/@CONNECTOR@/$(RPC_AUTH_DH_CONNECTOR)/" \
+ rpc_key_service.mlp >rpc_key_service.ml
+
+-RPCGEN = ../rpc-generator/ocamlrpcgen
++RPCGEN = ../rpc-generator/ocamlrpcgen -cpp @CPP@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090731/87a48d51/attachment.html>
More information about the macports-changes
mailing list