an easy and consistent way of installing software ported to FreeBSD
The Ocaml Curl Library (Ocurl) is an interface library for the
programming language Ocaml to the networking library
libcurl. Currently Ocurl requires libcurl 7.9.8 or newer (using older
versions may yield compilation errors).
WWW: http://sourceforge.net/projects/ocurl
#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/curl" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
elif [ "$2" = "DEINSTALL" ]; then
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
grep -v curl ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
fi