aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-02-04 13:07:50 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-02-04 13:07:50 +0000
commita2980c0e843b2c2a50eabb3e8b296aa5671a70eb (patch)
tree82cdf9119515a1021d25735aa12c7a075849a443 /x11-toolkits
parent749e4a100919814580854438c46221320cfe64de (diff)
downloadports-a2980c0e843b2c2a50eabb3e8b296aa5671a70eb.tar.gz
ports-a2980c0e843b2c2a50eabb3e8b296aa5671a70eb.zip
Remove dependency on Gnome2 libraries which are unused in the ports tree
Discussed with: danfe (maintainer)
Notes
Notes: svn path=/head/; revision=564026
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/ocaml-lablgtk2/Makefile77
-rw-r--r--x11-toolkits/ocaml-lablgtk2/pkg-plist1
2 files changed, 6 insertions, 72 deletions
diff --git a/x11-toolkits/ocaml-lablgtk2/Makefile b/x11-toolkits/ocaml-lablgtk2/Makefile
index 73d6f4dbeab2..d42f8eff80d0 100644
--- a/x11-toolkits/ocaml-lablgtk2/Makefile
+++ b/x11-toolkits/ocaml-lablgtk2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= lablgtk2
PORTVERSION= 2.18.11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits
PKGNAMEPREFIX= ocaml-
@@ -21,17 +21,8 @@ USE_OCAML_CAMLP4= yes
USE_OCAML_LDCONFIG= yes
USE_OCAML_WASH= yes
-OPTIONS_DEFINE= GLADE GNOMECANVAS GNOMEUI GTKGLAREA GTKSOURCEVIEW2 \
- GTKSPELL LIBRSVG2 DOCS EXAMPLES
-OPTIONS_DEFAULT= GLADE GNOMECANVAS GNOMEUI GTKGLAREA GTKSOURCEVIEW2 \
- GTKSPELL LIBRSVG2
-
-GNOMECANVAS_DESC= GnomeCanvas support
-GNOMEUI_DESC= GNOME 2 UI support
-GTKGLAREA_DESC= GtkGLArea support
-GTKSOURCEVIEW2_DESC= GtkSourceView 2 support
-GTKSPELL_DESC= GtkSpell support
-#GNOMEPANEL_DESC= GNOME Panel support
+OPTIONS_DEFINE= LIBRSVG2 DOCS EXAMPLES
+OPTIONS_DEFAULT= LIBRSVG2
HAS_CONFIGURE= yes
ALL_TARGET= all opt
@@ -42,7 +33,9 @@ GH_ACCOUNT= garrigue
GH_PROJECT= lablgtk
CONFIGURE_ARGS= --prefix=${PREFIX} --with-libdir=${PREFIX}/${OCAML_LIBDIR} \
- --without-gtksourceview
+ --without-gtksourceview --without-gnomeui \
+ --without-panel --without-gtkspell --without-gl \
+ --without-gtksourceview2 --without-glade --without-gnomecanvas
CONFIGURE_ENV= CAMLP4O="camlp4 pa_o.cmo pa_op.cmo pr_dump.cmo"
PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]]
@@ -59,41 +52,6 @@ EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
PORTEXAMPLES= *
.endif
-.if ${PORT_OPTIONS:MGTKGLAREA}
-CONFIGURE_ARGS+= --with-gl
-BUILD_DEPENDS+= lablgl:graphics/ocaml-lablgl
-RUN_DEPENDS+= lablgl:graphics/ocaml-lablgl
-LIB_DEPENDS+= libgtkgl-2.0.so:x11-toolkits/gtkglarea2
-EXAMPLES_SUBDIRS+= GL
-.else
-CONFIGURE_ARGS+= --without-gl
-.endif
-
-.if ${PORT_OPTIONS:MGLADE}
-CONFIGURE_ARGS+= --with-glade
-USE_GNOME+= libglade2
-PLIST_SUB+= GLADE=""
-EXAMPLES_SUBDIRS+= glade
-.else
-CONFIGURE_ARGS+= --without-glade
-PLIST_SUB+= GLADE="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MGNOMEUI}
-CONFIGURE_ARGS+= --with-gnomeui
-USE_GNOME+= libgnomeui
-.else
-CONFIGURE_ARGS+= --without-gnomeui
-.endif
-
-.if ${PORT_OPTIONS:MGNOMECANVAS}
-CONFIGURE_ARGS+= --with-gnomecanvas
-USE_GNOME+= libgnomecanvas
-EXAMPLES_SUBDIRS+= canvas
-.else
-CONFIGURE_ARGS+= --without-gnomecanvas
-.endif
-
.if ${PORT_OPTIONS:MLIBRSVG2}
CONFIGURE_ARGS+= --with-rsvg
USE_GNOME+= librsvg2
@@ -102,29 +60,6 @@ EXAMPLES_SUBDIRS+= rsvg
CONFIGURE_ARGS+= --without-rsvg
.endif
-#.if ${PORT_OPTIONS:MGNOMEPANEL}
-#CONFIGURE_ARGS+= --with-panel
-#USE_GNOME+= gnomepanel
-#EXAMPLES_SUBDIRS+= panel
-#.else
-CONFIGURE_ARGS+= --without-panel
-#.endif
-
-.if ${PORT_OPTIONS:MGTKSOURCEVIEW2}
-CONFIGURE_ARGS+= --with-gtksourceview2
-USE_GNOME+= gtksourceview2
-EXAMPLES_SUBDIRS+= sourceview
-.else
-CONFIGURE_ARGS+= --without-gtksourceview2
-.endif
-
-.if ${PORT_OPTIONS:MGTKSPELL}
-LIB_DEPENDS+= libgtkspell.so:textproc/gtkspell
-CONFIGURE_ARGS+= --with-gtkspell
-.else
-CONFIGURE_ARGS+= --without-gtkspell
-.endif
-
post-patch:
@${REINPLACE_CMD} -E \
-e 's|^(CFLAGS[[:space:]]*\+=[[:space:]]*-O)|\1 ${CFLAGS}|' \
diff --git a/x11-toolkits/ocaml-lablgtk2/pkg-plist b/x11-toolkits/ocaml-lablgtk2/pkg-plist
index 4e46bbdfd708..7bc97bcdba5a 100644
--- a/x11-toolkits/ocaml-lablgtk2/pkg-plist
+++ b/x11-toolkits/ocaml-lablgtk2/pkg-plist
@@ -1,3 +1,2 @@
bin/gdk_pixbuf_mlsource
-%%GLADE%%bin/lablgladecc2
bin/lablgtk2