aboutsummaryrefslogtreecommitdiff
path: root/graphics/ocaml-lablgl
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-04-06 19:43:29 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-04-06 19:43:29 +0000
commit303bf406eff7d15b34a1d3754539c3537b299732 (patch)
treea1ba141310354049c2a0434df34255d0206a8595 /graphics/ocaml-lablgl
parent36d7489eab0b35b34f42c111dac7e2037fc19a0a (diff)
downloadports-303bf406eff7d15b34a1d3754539c3537b299732.tar.gz
ports-303bf406eff7d15b34a1d3754539c3537b299732.zip
Notes
Diffstat (limited to 'graphics/ocaml-lablgl')
-rw-r--r--graphics/ocaml-lablgl/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/ocaml-lablgl/Makefile b/graphics/ocaml-lablgl/Makefile
index 4dd337ee6ca5..3d13edbea446 100644
--- a/graphics/ocaml-lablgl/Makefile
+++ b/graphics/ocaml-lablgl/Makefile
@@ -21,6 +21,7 @@ USE_OCAML= yes
USE_OCAML_WASH= yes
ALL_TARGET= all opt
DEPENDS_ARGS+= WITH_TK=yes
+USE_TK= yes
MASTERPORT= ${PORTSDIR}/devel/ocaml-camlidl
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
@@ -39,6 +40,8 @@ post-extract:
-e "s,^\(RANLIB[ \t]*=\).*,\1ranlib,g" \
-e "s,^#\(LIBDIR[ \t]*=\).*,\1${PREFIX}/lib/ocaml,g" \
-e "s,^#\(DLLDIR[ \t]*=\).*,\1${PREFIX}/lib/ocaml/stublibs,g" \
+ -e "s,^\(TKINCLUDES[ \t]*=\).*,\1-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR},g" \
+ -e "s,^\(TKLIBS[ \t]*=\).*,\1-L${LOCALBASE}/lib -ltk${USE_TK} -ltcl${USE_TCL},g" \
${WRKSRC}/Makefile.config
@${REINPLACE_CMD} \