summaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-28 11:43:39 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-28 11:43:39 +0800
commite04763834f7a4dad4a816d96b160408d17a70502 (patch)
treea2972a86ad95e3dd3490251caf05783f8a8c9b07 /x11-toolkits
parent36fe92dd47a666096bf67f63e5fb398ee7fa3cd2 (diff)
downloadmarcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar.gz
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar.bz2
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar.lz
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar.xz
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.tar.zst
marcuscom-ports-e04763834f7a4dad4a816d96b160408d17a70502.zip
Fix the build with the new GTK+. This may not be the best fix as the built-in
gtk_widget_get_allocation() function may not be better than the one now included with GTK+, but I believe this fix will work. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13059 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/slgtk/Makefile64
-rw-r--r--x11-toolkits/slgtk/distinfo3
-rw-r--r--x11-toolkits/slgtk/files/patch-src_slirprc-gtk.sl11
-rw-r--r--x11-toolkits/slgtk/pkg-descr14
-rw-r--r--x11-toolkits/slgtk/pkg-plist89
5 files changed, 181 insertions, 0 deletions
diff --git a/x11-toolkits/slgtk/Makefile b/x11-toolkits/slgtk/Makefile
new file mode 100644
index 000000000..2a1dd21ea
--- /dev/null
+++ b/x11-toolkits/slgtk/Makefile
@@ -0,0 +1,64 @@
+# New ports collection makefile for: slgtk
+# Date created: 28 May 2008
+# Whom: Alexey Shuvaev <shuvaev@phyisik.uni-wuerzburg.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= slgtk
+PORTVERSION= 0.7.5
+PORTREVISION= 2
+CATEGORIES= x11-toolkits
+MASTER_SITES= ftp://space.mit.edu/pub/cxc/modules/slgtk/
+
+MAINTAINER= shuvaev@physik.uni-wuerzburg.de
+COMMENT= S-Lang binding for GTK+
+
+LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
+
+USE_GNOME= gtk20
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= LDFLAGS=-lncurses
+
+MAN1= imdisplay.1
+
+OPTIONS= FITS "Install gdk-pixbuf FITS image loader" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-ccdebug SLGTK_DEVEL_BUILD=true
+.endif
+
+.if !defined(WITHOUT_FITS)
+ALL_TARGET= dynamic pixbuf_loader
+INSTALL_TARGET= install install_pixbuf_loader
+PLIST_SUB+= FITS=""
+.else
+ALL_TARGET= dynamic
+PLIST_SUB+= FITS="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|\.\.|${EXAMPLESDIR}| ; s|"examples"|"."|' \
+ ${WRKSRC}/examples/main.sl
+ @${REINPLACE_CMD} -e '/rm -f devel/d ; /ln -sf @prefix@ devel/d' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/text/slgtk.txt ${DOCSDIR}
+.endif
+.if !defined(NOPORTEXAMPLES)
+ ${MKDIR} ${EXAMPLESDIR}
+ ${MKDIR} ${EXAMPLESDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.sl ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/packages/wdisplay.sl ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/images/gtk-logo-rgb.gif ${EXAMPLESDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/images/test.xpm ${EXAMPLESDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/images/stars.fits ${EXAMPLESDIR}/images
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/slgtk/distinfo b/x11-toolkits/slgtk/distinfo
new file mode 100644
index 000000000..595633e67
--- /dev/null
+++ b/x11-toolkits/slgtk/distinfo
@@ -0,0 +1,3 @@
+MD5 (slgtk-0.7.5.tar.gz) = 99a2b4e313daebb53218b9af41874d4f
+SHA256 (slgtk-0.7.5.tar.gz) = 06f390bd58c404693a152077c39f2116c7782e42e13aca9423787ecd463066a4
+SIZE (slgtk-0.7.5.tar.gz) = 1014634
diff --git a/x11-toolkits/slgtk/files/patch-src_slirprc-gtk.sl b/x11-toolkits/slgtk/files/patch-src_slirprc-gtk.sl
new file mode 100644
index 000000000..9b4ecf3bf
--- /dev/null
+++ b/x11-toolkits/slgtk/files/patch-src_slirprc-gtk.sl
@@ -0,0 +1,11 @@
+--- src/slirprc-gtk.sl.orig 2009-09-27 23:31:51.000000000 -0400
++++ src/slirprc-gtk.sl 2009-09-27 23:32:06.000000000 -0400
+@@ -308,6 +308,8 @@ accepts_null_args["g_list_append"] = [1]
+ gtk_widget_get_window % prefer my version, which returns
+ % bin_window for GtkLayout
+
++gtk_widget_get_allocation
++
+ gtk_accel_group_activate % gtk/gtkaccelgroup.h: "internal" funcs
+ gtk_accel_group_get_entry
+ gtk_accel_group_lock_entry
diff --git a/x11-toolkits/slgtk/pkg-descr b/x11-toolkits/slgtk/pkg-descr
new file mode 100644
index 000000000..a64756b37
--- /dev/null
+++ b/x11-toolkits/slgtk/pkg-descr
@@ -0,0 +1,14 @@
+The SLgtk package binds the GIMP Toolkit, also known as Gtk,
+to the S-Lang scripting language. It provides an importable module
+which makes most of Gtk and its constituent libraries callable directly
+from S-Lang scripts.
+
+With SLgtk the S-Lang programmer now has access to a powerful,
+cross-platform widget set for creating sophisticated
+graphical user interfaces (GUIs). The package also includes bindings
+to GtkExtra, which are used in the vwhere visualization and filtering guilet,
+as well as a gdk-pixbuf loader for the FITS image file format
+widely used within astronomy, and an easy-to-use but powerful
+image compositing, display, and output tool.
+
+WWW: http://space.mit.edu/home/mnoble/slgtk/
diff --git a/x11-toolkits/slgtk/pkg-plist b/x11-toolkits/slgtk/pkg-plist
new file mode 100644
index 000000000..845dfbdaf
--- /dev/null
+++ b/x11-toolkits/slgtk/pkg-plist
@@ -0,0 +1,89 @@
+bin/imdisplay
+%%FITS%%lib/gtk-2.0/2.10.0/loaders/fitsi_loader.so
+%%FITS%%lib/gtk-2.0/2.10.0/loaders/fitsi_loader.so.0.7.0
+lib/slang/v2/modules/gtk-module.so
+lib/slang/v2/modules/gtkextra-module.so
+lib/slang/v2/modules/libslgtk.so
+lib/slang/v2/modules/libslgtk.so.0
+lib/slang/v2/modules/libslgtk.so.0.7.5
+%%PORTDOCS%%%%DOCSDIR%%/slgtk.txt
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/buttonbox.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/buttons.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cairo.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chained.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/checkbuttons.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/colorsel.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cube.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cursors.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demoutils.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dialogs.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/drawarea.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/entry.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/evtwatch.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/filesel.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fontsel.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fork.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gprompt.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gprompt_example.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gtkmainloop.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/handlebox.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/gtk-logo-rgb.gif
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/test.xpm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/stars.fits
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/labels.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/layout.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/liststore.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/main.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/markers.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/menus.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/modalwin.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/notebook.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/panes.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pixmap.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/plot.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/prevgray.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/progbar.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/radiob.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/range.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/reparent.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rgbselect.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rgbtest.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rulers.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scrollwin.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/slgtktoolbox.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/socket.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/spinb.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/statusbar.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stkcheck.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tabs.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/textview.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/timeout.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/togglebuttons.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/toolbar.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tooltips.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/transparency.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/viswhere.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wdisplay.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/window.sl
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wmhints.sl
+share/slsh/local-packages/gprompt.sl
+share/slsh/local-packages/gtk.sl
+share/slsh/local-packages/gtkextra.sl
+share/slsh/local-packages/gtkplot.sl
+share/slsh/local-packages/help/slgtkfun.hlp
+share/slsh/local-packages/imdisplay.sl
+share/slsh/local-packages/rgbselect.sl
+share/slsh/local-packages/rgbwidget.sl
+share/slsh/local-packages/slirprc-gtk.sl
+share/slsh/local-packages/toolbox.sl
+share/slsh/local-packages/vwdraw.sl
+share/slsh/local-packages/vwhere.sl
+share/slsh/local-packages/vwprefs.sl
+share/slsh/local-packages/vwutils.sl
+@dirrmtry share/slsh/local-packages/help
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/images
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+%%FITS%%@exec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true
+%%FITS%%@unexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true