diff options
author | Johan van Selst <johans@FreeBSD.org> | 2009-07-24 08:44:57 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2009-07-24 08:44:57 +0000 |
commit | 8d74ac0f6215298910e26dd32967134a950f2c16 (patch) | |
tree | 62cd10c01ebdc29ffe8860abcc935be4a09170d1 /devel/ocaml-findlib | |
parent | 353dc3147357f7f93dad507f8f55ce37f30a8cd4 (diff) |
Notes
Diffstat (limited to 'devel/ocaml-findlib')
-rw-r--r-- | devel/ocaml-findlib/Makefile | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/devel/ocaml-findlib/Makefile b/devel/ocaml-findlib/Makefile index 867056d5d29a..1619968e5a62 100644 --- a/devel/ocaml-findlib/Makefile +++ b/devel/ocaml-findlib/Makefile @@ -8,6 +8,7 @@ PORTNAME= findlib PORTVERSION= 1.2.4 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://download.camlcity.org/download/ PKGNAMEPREFIX= ocaml- @@ -33,16 +34,6 @@ 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,' \ @@ -60,4 +51,16 @@ post-install: "! -regex .*ref-man.*") .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if !exists(${LOCALBASE}/lib/ocaml/labltk) +WITHOUT_TK= yes +.endif + +.if defined(WITHOUT_TK) +PLIST_SUB+= TK="@comment " +.else +PLIST_SUB+= TK="" +.endif + +.include <bsd.port.post.mk> |