aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2009-07-23 19:40:30 +0000
committerJohan van Selst <johans@FreeBSD.org>2009-07-23 19:40:30 +0000
commit8315c055c2d87554508b1bce16f2ef190b05a45c (patch)
tree48fec1c517cf57c6763785b76b1739501a5b7ca9
parent05fbd1f2158e07042690b7d841a772d1b63e745d (diff)
downloadports-8315c055c2d87554508b1bce16f2ef190b05a45c.tar.gz
ports-8315c055c2d87554508b1bce16f2ef190b05a45c.zip
Notes
-rw-r--r--devel/ocaml-findlib/Makefile10
-rw-r--r--devel/ocaml-findlib/pkg-plist4
2 files changed, 12 insertions, 2 deletions
diff --git a/devel/ocaml-findlib/Makefile b/devel/ocaml-findlib/Makefile
index 2a97fa0d8941..867056d5d29a 100644
--- a/devel/ocaml-findlib/Makefile
+++ b/devel/ocaml-findlib/Makefile
@@ -33,6 +33,16 @@ PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
MAN1= ocamlfind.1
MAN5= META.5 findlib.conf.5 site-lib.5
+.if !exists(${LOCALBASE}/lib/ocaml/site-lib/labltk)
+WITHOUT_TK= yes
+.endif
+
+.if defined(WITHOUT_TK)
+PLIST_SUB+= TK="@comment "
+.else
+PLIST_SUB+= TK=""
+.endif
+
post-patch:
@${REINPLACE_CMD} -E \
-e 's,(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \
diff --git a/devel/ocaml-findlib/pkg-plist b/devel/ocaml-findlib/pkg-plist
index d4562f106b3c..d86c2e55ed90 100644
--- a/devel/ocaml-findlib/pkg-plist
+++ b/devel/ocaml-findlib/pkg-plist
@@ -20,7 +20,7 @@ lib/ocaml/site-lib/findlib/fl_package_base.mli
lib/ocaml/site-lib/findlib/topfind.cmi
lib/ocaml/site-lib/findlib/topfind.mli
lib/ocaml/site-lib/graphics/META
-lib/ocaml/site-lib/labltk/META
+%%TK%%lib/ocaml/site-lib/labltk/META
lib/ocaml/site-lib/num-top/META
lib/ocaml/site-lib/num-top/num_top.cma
lib/ocaml/site-lib/num-top/num_top.cmi
@@ -106,11 +106,11 @@ lib/ocaml/topfind
@dirrm lib/ocaml/site-lib/stdlib
@dirrm lib/ocaml/site-lib/num-top
@dirrm lib/ocaml/site-lib/num
-@dirrm lib/ocaml/site-lib/labltk
@dirrm lib/ocaml/site-lib/graphics
@dirrm lib/ocaml/site-lib/findlib
@dirrm lib/ocaml/site-lib/dynlink
@dirrm lib/ocaml/site-lib/dbm
@dirrm lib/ocaml/site-lib/camlp4
@dirrm lib/ocaml/site-lib/bigarray
+@dirrmtry lib/ocaml/site-lib/labltk
@dirrmtry lib/ocaml/site-lib