diff options
Diffstat (limited to 'x11/labltk/Makefile')
-rw-r--r-- | x11/labltk/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/x11/labltk/Makefile b/x11/labltk/Makefile new file mode 100644 index 00000000000..8f13f0cdeb8 --- /dev/null +++ b/x11/labltk/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/12/24 17:19:06 jmmv Exp $ + +.include "../../lang/ocaml/Makefile.common" + +PKGNAME= ${DISTNAME:S/ocaml/labltk/} + +COMMENT= Tk bindings for ocaml + +USE_X11= yes + +CONFIGURE_ARGS+= -x11include ${X11BASE}/include +CONFIGURE_ARGS+= -x11lib ${X11BASE}/lib +CONFIGURE_ARGS+= -tkdefs "-I${BUILDLINK_PREFIX.tk}/include -I${BUILDLINK_PREFIX.tcl}/include" +CONFIGURE_ARGS+= -tklibs "`${SH} -c '. ${TCLCONFIG_SH}; . ${TKCONFIG_SH}; ${ECHO} $$TK_LIBS $$TCL_LIBS'`" + +BUILD_TARGET= world +INSTALL_DIRS= ${WRKSRC}/otherlibs/labltk +INSTALL_TARGET= install +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") +BUILD_TARGET+= opt opt.opt +INSTALL_TARGET+= installopt +PLIST_SRC= ${.CURDIR}/PLIST.opt ${.CURDIR}/PLIST +.endif + +BUILDLINK_DEPMETHOD.ocaml= full + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../x11/tk/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |