diff options
author | johans <johans@FreeBSD.org> | 2011-04-28 01:43:21 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2011-04-28 01:43:21 +0800 |
commit | 4544021b89141e569932d7f104b425b928f88d71 (patch) | |
tree | fb8886353b0113b4d1c10a07078ffac74e3dca68 /devel/ocaml-findlib | |
parent | 1132a7805b5cd55cbc0c1ff4bb569f79b02427ba (diff) | |
download | freebsd-ports-gnome-4544021b89141e569932d7f104b425b928f88d71.tar.gz freebsd-ports-gnome-4544021b89141e569932d7f104b425b928f88d71.tar.zst freebsd-ports-gnome-4544021b89141e569932d7f104b425b928f88d71.zip |
Fix installation of ocaml-findlib if WITHOUT_TK is defined
PR: ports/156657
Reported by: Herbert J. Skuhra <h.skuhra@gmail.com>
Diffstat (limited to 'devel/ocaml-findlib')
-rw-r--r-- | devel/ocaml-findlib/Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/devel/ocaml-findlib/Makefile b/devel/ocaml-findlib/Makefile index bd59d82d4e5a..844805d4b07b 100644 --- a/devel/ocaml-findlib/Makefile +++ b/devel/ocaml-findlib/Makefile @@ -48,6 +48,17 @@ post-patch: .include <bsd.port.pre.mk> +.if !exists(${LOCALBASE}/lib/ocaml/labltk) +WITHOUT_TK= yes +.endif + +.if defined(WITHOUT_TK) +PLIST_SUB+= TK="@comment " +.else +CONFIGURE_ARGS+=-with-toolbox +PLIST_SUB+= TK="" +.endif + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @@ -58,15 +69,4 @@ post-install: @${CHMOD} +x ${PREFIX}/lib/ocaml/site-lib/findlib/make_wizard .endif -.if !exists(${LOCALBASE}/lib/ocaml/labltk) -WITHOUT_TK= yes -.endif - -.if defined(WITHOUT_TK) -PLIST_SUB+= TK="@comment " -.else -CONFIGURE_ARGS+=-with-toolbox -PLIST_SUB+= TK="" -.endif - .include <bsd.port.post.mk> |