Lines 1-7
Link Here
|
1 |
# ex:ts=4 |
1 |
# ex:ts=4 |
2 |
# |
2 |
# |
3 |
# $MBSDlabs: portmk/bsd.ocaml.mk,v 1.17 2006/08/02 19:31:46 stas Exp $ |
3 |
# $MBSDlabs: portmk/bsd.ocaml.mk,v 1.18 2006/08/06 18:47:23 stas Exp $ |
4 |
# $FreeBSD: /repoman/r/pcvs/ports/lang/ocaml/bsd.ocaml.mk,v 1.2 2006/08/04 14:22:50 itetcu Exp $ |
4 |
# $FreeBSD$ |
5 |
# |
5 |
# |
6 |
# bsd.ocaml.mk - Support for the Objective Caml language packages |
6 |
# bsd.ocaml.mk - Support for the Objective Caml language packages |
7 |
# |
7 |
# |
Lines 20-25
Link Here
|
20 |
# USE_OCAML_LDCONFIG - Set if your port installs shared libraries |
20 |
# USE_OCAML_LDCONFIG - Set if your port installs shared libraries |
21 |
# into ocaml site-lib dir. OCaml ld.conf file |
21 |
# into ocaml site-lib dir. OCaml ld.conf file |
22 |
# will be automatically processed. |
22 |
# will be automatically processed. |
|
|
23 |
# USE_OCAML_WASH - Set if your port wants to automatically |
24 |
# purge shared Ocaml dirs on uninstall. It's |
25 |
# useful when installing to non-standard PREFIX |
23 |
# OCAML_PKGDIRS - Directories under site-lib to be processed |
26 |
# OCAML_PKGDIRS - Directories under site-lib to be processed |
24 |
# if USE_OCAML_FINDLIB specified. |
27 |
# if USE_OCAML_FINDLIB specified. |
25 |
# Default: ${PORTNAME} |
28 |
# Default: ${PORTNAME} |
Lines 90-96
Link Here
|
90 |
|
93 |
|
91 |
.if defined(USE_OCAML_FINDLIB) || defined(USE_OCAML_LDCONFIG) |
94 |
.if defined(USE_OCAML_FINDLIB) || defined(USE_OCAML_LDCONFIG) |
92 |
. if !target(post-install-script) |
95 |
. if !target(post-install-script) |
93 |
post-install-script: ocaml-findlib ocaml-ldconfig |
96 |
post-install-script: ocaml-findlib ocaml-ldconfig ocaml-wash |
94 |
. endif |
97 |
. endif |
95 |
.endif |
98 |
.endif |
96 |
|
99 |
|
Lines 142-147
Link Here
|
142 |
. endif |
145 |
. endif |
143 |
.endif |
146 |
.endif |
144 |
|
147 |
|
|
|
148 |
.if defined(USE_OCAML_WASH) |
149 |
. if !target(ocaml-wash) |
150 |
ocaml-wash: |
151 |
@${ECHO_CMD} "@unexec rmdir %D/${OCAML_SITELIBDIR} 2>/dev/null || true"\ |
152 |
>> ${TMPPLIST} |
153 |
# If ld.conf is empty |
154 |
@${ECHO_CMD} "@unexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} -f %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST} |
155 |
@${ECHO_CMD} "@unexec rmdir %D/${OCAML_LIBDIR} 2>/dev/null || true" \ |
156 |
>> ${TMPPLIST} |
157 |
. endif |
158 |
.endif |
159 |
|
145 |
.if !target(ocaml-findlib) |
160 |
.if !target(ocaml-findlib) |
146 |
ocaml-findlib: |
161 |
ocaml-findlib: |
147 |
@${DO_NADA} |
162 |
@${DO_NADA} |
Lines 152-157
Link Here
|
152 |
@${DO_NADA} |
167 |
@${DO_NADA} |
153 |
.endif |
168 |
.endif |
154 |
|
169 |
|
|
|
170 |
.if !target(ocaml-wash) |
171 |
ocaml-wash: |
172 |
@${DO_NADA} |
173 |
.endif |
174 |
|
155 |
# |
175 |
# |
156 |
# XXX: temporary workaround for non-standard PREFIX |
176 |
# XXX: temporary workaround for non-standard PREFIX |
157 |
# |
177 |
# |
Lines 162-176
Link Here
|
162 |
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} |
182 |
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} |
163 |
. else |
183 |
. else |
164 |
@${DO_NADA} |
184 |
@${DO_NADA} |
165 |
. endif |
|
|
166 |
|
167 |
. if (${PREFIX} != ${LOCALBASE}) |
168 |
@${ECHO_CMD} "@unexec rmdir %D/${OCAML_SITELIBDIR} 2>/dev/null || true"\ |
169 |
>> ${TMPPLIST} |
170 |
# If PREFIX is non-standard and ld.conf is empty |
171 |
@${ECHO_CMD} "@unexec if [ ! -s %D/${OCAML_LDCONF} ]; then ${RM} -f %D/${OCAML_LDCONF}; fi || true" >> ${TMPPLIST} |
172 |
@${ECHO_CMD} "@unexec rmdir %D/${OCAML_LIBDIR} 2>/dev/null || true" \ |
173 |
>> ${TMPPLIST} |
174 |
. endif |
185 |
. endif |
175 |
|
186 |
|
176 |
# If we are using PORTDOCS macro port cannot delete OCAML_DOCSDIR, so |
187 |
# If we are using PORTDOCS macro port cannot delete OCAML_DOCSDIR, so |