# $NetBSD: Makefile,v 1.41 2022/06/03 08:51:22 wiz Exp $ DISTNAME= labltk-8.06.12 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_GITHUB:=garrigue/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/garrigue/labltk/ COMMENT= Tk bindings for ocaml LICENSE= gnu-lgpl-v2.1 USE_TOOLS+= gmake MAKE_JOBS_SAFE= no MAKE_ENV+= BYTECC='cc -fPIC' HAS_CONFIGURE= yes CONFIGURE_ARGS+= -use-findlib CONFIGURE_ARGS+= -tkdefs "-I${BUILDLINK_PREFIX.tk}/include -I${BUILDLINK_PREFIX.tcl}/include" CONFIGURE_ARGS+= -tklibs "`${SH} -c '. ${TCLCONFIG_SH}; . ${TKCONFIG_SH}; ${ECHO} $$TK_LD_FLAGS $$TCL_LD_FLAGS $$TK_LIBS $$TCL_LIBS'`" BUILD_TARGET= all INSTALL_TARGET= install .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ (${MACHINE_ARCH} == "arm") || \ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") BUILD_TARGET+= opt PLIST_SRC= ${.CURDIR}/PLIST.opt ${.CURDIR}/PLIST .endif .include "../../devel/ocaml-findlib/buildlink3.mk" .include "../../lang/ocaml/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../x11/tk/buildlink3.mk" .include "../../mk/bsd.pkg.mk"