# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # ocaml-camlidl # ocaml-camlidl/pkg-descr # ocaml-camlidl/pkg-plist # ocaml-camlidl/Makefile # ocaml-camlidl/distinfo # ocaml-camlidl/ocaml-camlidl.shar # echo c - ocaml-camlidl mkdir -p ocaml-camlidl > /dev/null 2>&1 echo x - ocaml-camlidl/pkg-descr sed 's/^X//' >ocaml-camlidl/pkg-descr << '21372430200669067ee853188a386a01' XCamlIDL is a stub code generator and COM binding for Objective Caml. X XCamlIDL comprises two parts: X X * A stub code generator that generates the C stub code required for the XCaml/C interface, based on an MIDL specification. (MIDL stands for Microsoft's XInterface Description Language; it looks like C header files with some extras Xannotations, plus a notion of object interfaces that look like C++ classess Xwithout inheritance.) X X * A (currently small) library of functions and tools to import COM Xcomponents in Caml applications, and export Caml code as COM components. X XWWW: https://caml.inria.fr/pub/old_caml_site/camlidl/ 21372430200669067ee853188a386a01 echo x - ocaml-camlidl/pkg-plist sed 's/^X//' >ocaml-camlidl/pkg-plist << '4ae04a681de664e785ba0db4028aa10b' Xbin/camlidl Xlib/ocaml/caml/camlidlruntime.h Xlib/ocaml/com.a Xlib/ocaml/com.cma Xlib/ocaml/com.cmi Xlib/ocaml/com.cmxa Xlib/ocaml/libcamlidl.a X%%PORTDOCS%%%%DOCSDIR%%/htmlman/contents_motif.gif X%%PORTDOCS%%%%DOCSDIR%%/htmlman/index.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main001.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main002.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main003.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main004.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main005.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main006.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/main007.html X%%PORTDOCS%%%%DOCSDIR%%/htmlman/next_motif.gif X%%PORTDOCS%%%%DOCSDIR%%/htmlman/previous_motif.gif 4ae04a681de664e785ba0db4028aa10b echo x - ocaml-camlidl/Makefile sed 's/^X//' >ocaml-camlidl/Makefile << 'eeb9ac5ab86e2f94dd862682946bdeb4' X# $FreeBSD$ X X# Created by: Stanislav Sedov X# Modified by: Greg Kennedy X XPORTNAME= camlidl XDISTVERSION= 1.05 XPORTREVISION= 3 XCATEGORIES= lang XMASTER_SITES= https://caml.inria.fr/distrib/bazar-ocaml/ XPKGNAMEPREFIX= ocaml- X# Two sets of distfiles: one contains the program, X# the other is the documentation in HTML format XDISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ X ${PORTNAME}-${DISTVERSION}.doc.html${EXTRACT_SUFX} XEXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} X XMAINTAINER= kennedy.greg@gmail.com XCOMMENT= Stub code generator for using C/C++ libraries from ocaml X XLICENSE= LGPL20 LGPL21 XLICENSE_COMB= dual XLICENSE_FILE= ${WRKSRC}/LICENSE X XOPTIONS_DEFINE= DOCS XOPTIONS_DEFAULT= DOCS X XUSE_OCAML= yes X X# THIS IS NECESSARY because the custom makefile in compiler/ does not build X# dependencies in the right order. Shows up as a problem like "Error: Unbound module Prefix" XMAKE_JOBS_UNSAFE= yes X Xpost-extract: X # Muck with the Makefile.unix and fix filepaths etc. X # Have to fix: X # CPP (C preprocessor location), X # BINDIR and OCAMLLIB (install locations), X # and CFLAGS (is commented out so user CFLAGS take effect instead) X @${REINPLACE_CMD} -e "s,^\(OCAMLLIB=\).*,\1${STAGEDIR}${PREFIX}/lib/ocaml,g" \ X -e "s,^\(BINDIR=\).*,\1${STAGEDIR}${PREFIX}/bin,g" \ X -e "s,^CFLAGS=.*,#\&,g" \ X -e "s,^\(CPP=\).*,\1/usr/bin/cpp,g" \ X ${WRKSRC}/config/Makefile.unix X X # Change the "install" command from using cp to INSTALL_SCRIPT X # for the camlidl compiler (it is Ocaml bytecode, not nativecode, hence SCRIPT not PROGRAM) X @${REINPLACE_CMD} -e \ X "/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_SCRIPT},g" \ X ${WRKSRC}/compiler/Makefile X X # Change the "install" command from using cp to INSTALL_DATA X # for the library and runtime X @${REINPLACE_CMD} -e \ X "/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_DATA},g" \ X ${WRKSRC}/lib/Makefile ${WRKSRC}/runtime/Makefile.unix X X # build requires a symlink for the Unix-specific makefile X @${LN} -sf ${WRKSRC}/config/Makefile.unix ${WRKSRC}/config/Makefile X Xpre-install: X # installation bombs if the destination folder for caml lib is missing X ${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml/caml X X# if DOCS are enabled, we unpack the .tar.gz docs into the dest folder Xpost-install-DOCS-on: X ${MKDIR} ${STAGEDIR}${DOCSDIR} X ${GZCAT} ${_DISTDIR}/${PORTNAME}-${PORTVERSION}.doc.html.tar.gz \ X | ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf - X X# This should launch tests for the library. X# Unfortunately, it appears broken right now. X#test: X# @${ECHO_CMD} "Testing IDL library" X# @${REINPLACE_CMD} -e "s,^\(CCPP=\).*,\1${CXX},g" \ X# ${WRKSRC}/tests/Makefile X# cd ${WRKSRC}/tests && ${SETENV} ${MAKE_ENV} ${MAKE} all X X.include eeb9ac5ab86e2f94dd862682946bdeb4 echo x - ocaml-camlidl/distinfo sed 's/^X//' >ocaml-camlidl/distinfo << '84c749e574883ed1d85be110fc6bf930' XTIMESTAMP = 1089732659 XSHA256 (camlidl-1.05.tar.gz) = 857ed5bd3b2f99c62813070e1a5b4b6375e837c6815f4ad956baeb6f8c660311 XSIZE (camlidl-1.05.tar.gz) = 100640 XSHA256 (camlidl-1.05.doc.html.tar.gz) = 00ac7822ec73cb3cb5cb23b5d34879436366d979887eb3a312e1adcae8c1c32c XSIZE (camlidl-1.05.doc.html.tar.gz) = 45945 84c749e574883ed1d85be110fc6bf930 echo x - ocaml-camlidl/ocaml-camlidl.shar sed 's/^X//' >ocaml-camlidl/ocaml-camlidl.shar << 'a335df22afd0499fd99f5f436456bde1' a335df22afd0499fd99f5f436456bde1 exit