diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-12-24 17:17:49 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-12-24 17:17:49 +0000 |
commit | 8b18605a41dd45182de0471e01903894b08e3056 (patch) | |
tree | 416af154acc36448b66377e31aebfee49bb956f7 /x11 | |
parent | feea67700028cbe203353c7c8882fc4ed0f29836 (diff) | |
download | pkgsrc-8b18605a41dd45182de0471e01903894b08e3056.tar.gz |
Initial import of ocaml-graphics, version 3.06:
This package provides the graphics library that comes with the ocaml compiler.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/ocaml-graphics/DESCR | 1 | ||||
-rw-r--r-- | x11/ocaml-graphics/Makefile | 30 | ||||
-rw-r--r-- | x11/ocaml-graphics/PLIST | 10 | ||||
-rw-r--r-- | x11/ocaml-graphics/buildlink3.mk | 20 |
4 files changed, 61 insertions, 0 deletions
diff --git a/x11/ocaml-graphics/DESCR b/x11/ocaml-graphics/DESCR new file mode 100644 index 00000000000..f8d71e9a51e --- /dev/null +++ b/x11/ocaml-graphics/DESCR @@ -0,0 +1 @@ +This package provides the graphics library that comes with the ocaml compiler. diff --git a/x11/ocaml-graphics/Makefile b/x11/ocaml-graphics/Makefile new file mode 100644 index 00000000000..f9b276b88b8 --- /dev/null +++ b/x11/ocaml-graphics/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/12/24 17:17:49 jmmv Exp $ + +.include "../../lang/ocaml/Makefile.common" + +PKGNAME= ${DISTNAME:S/ocaml/ocaml-graphics/} + +COMMENT+= (graphics library) + +USE_X11= yes + +CONFIGURE_ARGS+= -x11include ${X11BASE}/include +CONFIGURE_ARGS+= -x11lib ${X11BASE}/lib +CONFIGURE_ARGS+= -no-tk + +BUILD_DIRS= ${WRKSRC}/otherlibs/graph +BUILD_TARGET= all +INSTALL_TARGET= install +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \ + (${MACHINE_ARCH} == "sparc") +BUILD_TARGET+= allopt +INSTALL_TARGET+= installopt +PLIST_SUBST+= OPT= +.else +PLIST_SUBST+= OPT='@comment ' +.endif + +BUILDLINK_DEPMETHOD.ocaml= full + +.include "../../lang/ocaml/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/ocaml-graphics/PLIST b/x11/ocaml-graphics/PLIST new file mode 100644 index 00000000000..da4a156fba7 --- /dev/null +++ b/x11/ocaml-graphics/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/12/24 17:17:49 jmmv Exp $ +lib/ocaml/graphics.a +lib/ocaml/graphics.cma +lib/ocaml/graphics.cmi +${OPT}lib/ocaml/graphics.cmxa +lib/ocaml/graphics.mli +lib/ocaml/graphicsX11.cmi +lib/ocaml/graphicsX11.mli +lib/ocaml/libgraphics.a +@comment in ocaml: @dirrm lib/ocaml diff --git a/x11/ocaml-graphics/buildlink3.mk b/x11/ocaml-graphics/buildlink3.mk new file mode 100644 index 00000000000..8a8c613896e --- /dev/null +++ b/x11/ocaml-graphics/buildlink3.mk @@ -0,0 +1,20 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/12/24 17:17:49 jmmv Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +OCAML_GRAPHICS_BUILDLINK3_MK:= ${OCAML_GRAPHICS_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= ocaml-graphics +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nocaml-graphics} +BUILDLINK_PACKAGES+= ocaml-graphics + +.if !empty(OCAML_GRAPHICS_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.ocaml-graphics+= ocaml-graphics>=3.06 +BUILDLINK_PKGSRCDIR.ocaml-graphics?= ../../x11/ocaml-graphics +.endif # OCAML_GRAPHICS_BUILDLINK3_MK + +.include "../../lang/ocaml/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |