- Fix package so it registers shared libraries in ocaml register

PR:		ports/73194
Submitted by:	stephane (maintainer)
This commit is contained in:
Pav Lucistnik 2004-10-27 22:45:28 +00:00
parent 88f49b73ac
commit 5ffb27574a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120354
3 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= net
PORTVERSION= 0.98
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ocamlnet

View file

@ -0,0 +1,5 @@
#!/bin/sh
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
grep -v netstring ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp

View file

@ -0,0 +1,5 @@
#!/bin/sh
if ! grep "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" ${PKG_PREFIX}/lib/ocaml/ld.conf >/dev/null 2>&1; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/netstring" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
fi