pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/ocaml-graphics Initial import of ocaml-graphics, v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac04ca7c3058
branches:  trunk
changeset: 486186:ac04ca7c3058
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Fri Dec 24 17:17:49 2004 +0000

description:
Initial import of ocaml-graphics, version 3.06:

This package provides the graphics library that comes with the ocaml compiler.

diffstat:

 x11/ocaml-graphics/DESCR         |   1 +
 x11/ocaml-graphics/Makefile      |  30 ++++++++++++++++++++++++++++++
 x11/ocaml-graphics/PLIST         |  10 ++++++++++
 x11/ocaml-graphics/buildlink3.mk |  20 ++++++++++++++++++++
 4 files changed, 61 insertions(+), 0 deletions(-)

diffs (77 lines):

diff -r 96472d431ba9 -r ac04ca7c3058 x11/ocaml-graphics/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-graphics/DESCR  Fri Dec 24 17:17:49 2004 +0000
@@ -0,0 +1,1 @@
+This package provides the graphics library that comes with the ocaml compiler.
diff -r 96472d431ba9 -r ac04ca7c3058 x11/ocaml-graphics/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-graphics/Makefile       Fri Dec 24 17:17:49 2004 +0000
@@ -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 -r 96472d431ba9 -r ac04ca7c3058 x11/ocaml-graphics/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-graphics/PLIST  Fri Dec 24 17:17:49 2004 +0000
@@ -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 -r 96472d431ba9 -r ac04ca7c3058 x11/ocaml-graphics/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ocaml-graphics/buildlink3.mk  Fri Dec 24 17:17:49 2004 +0000
@@ -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/+$//}



Home | Main Index | Thread Index | Old Index