summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/ocaml-lablgtk2/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-04-07 12:06:54 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-04-07 12:06:54 +0800
commit454cd39c45454a6f959d1ba99ce2483ad475724e (patch)
treec392c23b86a3c0c306153340271377f3729749ae /x11-toolkits/ocaml-lablgtk2/Makefile
parentbb1593e028231bd7608c33842e319b24115d0d84 (diff)
downloadmarcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar.gz
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar.bz2
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar.lz
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar.xz
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.tar.zst
marcuscom-ports-454cd39c45454a6f959d1ba99ce2483ad475724e.zip
Mark BROKEN with GNOME 2.26.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12229 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/ocaml-lablgtk2/Makefile')
-rw-r--r--x11-toolkits/ocaml-lablgtk2/Makefile162
1 files changed, 162 insertions, 0 deletions
diff --git a/x11-toolkits/ocaml-lablgtk2/Makefile b/x11-toolkits/ocaml-lablgtk2/Makefile
new file mode 100644
index 000000000..5686ae698
--- /dev/null
+++ b/x11-toolkits/ocaml-lablgtk2/Makefile
@@ -0,0 +1,162 @@
+# New ports collection makefile for: lablgtk2
+# Date created: 2004-11-02
+# Whom: Rene Ladan
+#
+# $FreeBSD$
+
+PORTNAME= lablgtk2
+PORTVERSION= 2.10.1
+PORTREVISION= 1
+CATEGORIES= x11-toolkits
+MASTER_SITES= ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ \
+ http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \
+ ftp://ftp.inria.fr/INRIA/caml-light/bazar-ocaml/ \
+ http://caml.inria.fr/distrib/bazar-ocaml/
+PKGNAMEPREFIX= ocaml-
+DISTNAME= lablgtk-${PORTVERSION}
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= An Objective Caml interface to GTK+ 2.x
+
+USE_GMAKE= yes
+USE_GNOME= gtk20
+USE_OCAML= yes
+
+BROKEN= does not build with GNOME 2.26
+
+OPTIONS= GLADE "With glade support" ON \
+ GNOMECANVAS "With gnomecanvas support" ON \
+ GNOMEPANEL "With gnomepanel support" ON \
+ GNOMEUI "With gnomeui support" ON \
+ GTKSPELL "With gtkspell support" ON \
+ GTKTL "With gtkglarea support" ON \
+ RSVG "With rsvg support" ON
+
+DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME}
+
+HAS_CONFIGURE= yes
+ALL_TARGET= all opt
+
+CONFIGURE_ARGS= --prefix=${PREFIX} --with-libdir=${PREFIX}/lib/ocaml
+
+PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
+
+.include <bsd.port.pre.mk>
+
+.if (exists(${LOCALBASE}/bin/lablgl) && exists(${LOCALBASE}/libdata/pkgconfig/gtkgl-2.0.pc)) || defined(WITH_GTKTL)
+CONFIGURE_ARGS+= --with-gl
+BUILD_DEPENDS+= lablgl:${PORTSDIR}/graphics/ocaml-lablgl
+RUN_DEPENDS+= lablgl:${PORTSDIR}/graphics/ocaml-lablgl
+LIB_DEPENDS+= gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
+WITH_GL= yes
+PLIST_SUB+= GL=""
+.else
+CONFIGURE_ARGS+= --without-gl
+PLIST_SUB+= GL="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/libglade-2.0.pc)) || defined(WITH_GLADE)
+CONFIGURE_ARGS+= --with-glade
+USE_GNOME+= libglade2
+WITH_GLADE= yes
+PLIST_SUB+= GLADE=""
+.else
+CONFIGURE_ARGS+= --without-glade
+PLIST_SUB+= GLADE="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/libgnomeui-2.0.pc)) || defined(WITH_GNOMEUI)
+CONFIGURE_ARGS+= --with-gnomeui
+USE_GNOME+= libgnomeui
+WITH_GNOMEUI= yes
+PLIST_SUB+= GNOMEUI=""
+.else
+CONFIGURE_ARGS+= --without-gnomeui
+PLIST_SUB+= GNOMEUI="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/libgnomecanvas-2.0.pc)) || defined(WITH_GNOMECANVAS)
+CONFIGURE_ARGS+= --with-gnomecanvas
+USE_GNOME+= libgnomecanvas
+PLIST_SUB+= GNOMECANVAS=""
+WITH_GNOMECANVAS= yes
+.else
+CONFIGURE_ARGS+= --without-gnomecanvas
+PLIST_SUB+= GNOMECANVAS="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/librsvg-2.0.pc)) || defined(WITH_RSVG)
+CONFIGURE_ARGS+= --with-rsvg
+USE_GNOME+= librsvg2
+WITH_RSVG= yes
+PLIST_SUB+= RSVG=""
+.else
+CONFIGURE_ARGS+= --without-rsvg
+PLIST_SUB+= RSVG="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/libpanelapplet-2.0.pc)) || defined(WITH_GNOMEPANEL)
+CONFIGURE_ARGS+= --with-panel
+USE_GNOME+= gnomepanel
+WITH_PANEL= yes
+PLIST_SUB+= PANEL=""
+.else
+CONFIGURE_ARGS+= --without-panel
+PLIST_SUB+= PANEL="@comment "
+.endif
+
+.if (exists(${LOCALBASE}/libdata/pkgconfig/gtkspell-2.0.pc)) || defined(WITH_GTKSPELL)
+LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
+
+CONFIGURE_ARGS+= --with-gtkspell
+PLIST_SUB+= GTKSPELL=""
+WITH_GTKSPELL= yes
+.else
+CONFIGURE_ARGS+= --without-gtkspell
+PLIST_SUB+= GTKSPELL="@comment "
+.endif
+
+post-extract:
+ @${REINPLACE_CMD} -E \
+ -e 's,^(CFLAGS[[:space:]]*\+=[[:space:]]*-O),\1 ${CFLAGS},' \
+ -e 's,^(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \
+ -e 's,^(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_SCRIPT} \3,' \
+ -e 's,^(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \
+ ${WRKSRC}/src/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/examples/image256x256.rgb \
+ ${WRKSRC}/examples/test.xpm \
+ ${WRKSRC}/examples/*.ml ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}/text
+ @${INSTALL_DATA} ${WRKSRC}/examples/text/* ${EXAMPLESDIR}/text
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+ @${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}/COPYING
+.endif
+.if defined(WITH_GL) && !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/GL
+ @${INSTALL_DATA} ${WRKSRC}/examples/GL/* ${EXAMPLESDIR}/GL
+.endif
+.if defined(WITH_GNOMECANVAS) && !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/canvas
+ @${INSTALL_DATA} ${WRKSRC}/examples/canvas/* ${EXAMPLESDIR}/canvas
+.endif
+.if defined(WITH_GLADE) && !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/glade
+ @${INSTALL_DATA} ${WRKSRC}/examples/glade/* ${EXAMPLESDIR}/glade
+.endif
+.if defined(WITH_PANEL) && !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/panel
+ @${INSTALL_DATA} ${WRKSRC}/examples/panel/* ${EXAMPLESDIR}/panel
+.endif
+.if defined(WITH_RSVG) && !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}/rsvg
+ @${INSTALL_DATA} ${WRKSRC}/examples/rsvg/* ${EXAMPLESDIR}/rsvg
+.endif
+ @${INSTALL_DATA} ${WRKSRC}/META ${PREFIX}/${OCAML_LIBDIR}/${PORTNAME}
+
+.include <bsd.port.post.mk>