diff options
Diffstat (limited to 'x11/lablgtk1/Makefile')
-rw-r--r-- | x11/lablgtk1/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/x11/lablgtk1/Makefile b/x11/lablgtk1/Makefile new file mode 100644 index 00000000000..1f13db48079 --- /dev/null +++ b/x11/lablgtk1/Makefile @@ -0,0 +1,48 @@ +# $NetBSD: Makefile,v 1.1 2007/09/21 13:00:54 wiz Exp $ + +DISTNAME= lablgtk-1.2.7 +PKGNAME= lablgtk1-1.2.7 +PKGREVISION= 3 +CATEGORIES= x11 +MASTER_SITES= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html +COMMENT= GTK+ bindings for ocaml + +USE_TOOLS+= gmake + +BUILDLINK_DEPMETHOD.ocaml= full +BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.0.5 + +CONFLICTS+= lablgtk-1.* + +.include "../../mk/bsd.prefs.mk" + +# currently ocamlopt is only available on i386, sparc and powerpc. +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") +USE_DOTOPT= YES +.else +CAMLOPT= ocamlc +MAKE_ENV+= CAMLOPT=${CAMLOPT:Q} +PLIST_SRC= ${PKGDIR}/PLIST.noopt +.endif + +.if ${OPSYS} == "Darwin" +PLIST_SRC+= ${PKGDIR}/PLIST.stub +.endif + +do-configure: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \ + configure USE_DOTOPT=${USE_DOTOPT} USE_CC=1 CC=${CC} + +.if defined(USE_DOTOPT) +post-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \ + opt +.endif + +.include "../../x11/gtk/buildlink3.mk" +.include "../../lang/ocaml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |