svn commit: r345108 - head/lang/ocaml
Pietro Cerutti
gahr at FreeBSD.org
Wed Feb 19 16:15:23 UTC 2014
Author: gahr
Date: Wed Feb 19 16:15:23 2014
New Revision: 345108
URL: http://svnweb.freebsd.org/changeset/ports/345108
QAT: https://qat.redports.org/buildarchive/r345108/
Log:
- Convert to USES=tk
Modified:
head/lang/ocaml/Makefile
Modified: head/lang/ocaml/Makefile
==============================================================================
--- head/lang/ocaml/Makefile Wed Feb 19 16:06:32 2014 (r345107)
+++ head/lang/ocaml/Makefile Wed Feb 19 16:15:23 2014 (r345108)
@@ -35,19 +35,8 @@ MODOPT= camlp4o camlp4r ocamlc ocamldep
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)(\$$\(CP\)|cp)([[:space:]]
NO_STAGE= yes
-.include <bsd.port.pre.mk>
-.if ${ARCH} == powerpc
-ARCH= power
-.endif
-
-.if ${ARCH} == power
-PLIST_SUB+= PROF="@comment "
-.else
-PLIST_SUB+= PROF=""
-.endif
-
-.include "${FILESDIR}/manfiles"
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTHREADS}
PLIST_SUB+= THREADS=""
@@ -80,15 +69,28 @@ CONFLICTS+= ocaml-[0-9]* ocaml-nox11-[0-
.endif
CONFIGURE_ARGS+=-no-tk
.else
-USE_TK= 84+
-INVALID_TK_VER = 86
+USES+= tk:84,85
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
PLIST_SUB+= TK=""
CONFLICTS+= ocaml-nox11-[0-9]* ocaml-notk-[0-9]*
CONFIGURE_ARGS+= -tkdefs \
"-I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} ${THR_CPP}" \
- -tklibs "-L${LOCALBASE}/lib -ltk${TK_VER:S|.||} \
- -ltcl${TCL_VER:S|.||} ${THR_LD}"
+ -tklibs "-L${LOCALBASE}/lib -ltk${TK_SHLIB_VER} \
+ -ltcl${TCL_SHLIB_VER} ${THR_LD}"
+.endif
+
+.include <bsd.port.pre.mk>
+
+.include "${FILESDIR}/manfiles"
+
+.if ${ARCH} == powerpc
+ARCH= power
+.endif
+
+.if ${ARCH} == power
+PLIST_SUB+= PROF="@comment "
+.else
+PLIST_SUB+= PROF=""
.endif
.if ${ARCH} == sparc64
More information about the svn-ports-all
mailing list