aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-fltk
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-04-19 05:14:32 +0800
committerpav <pav@FreeBSD.org>2004-04-19 05:14:32 +0800
commitc84f976ff5681d3808be3d171f32d9f389ad6324 (patch)
tree832ed5dd0815ea40cc847b53528b1722d3a29eb8 /x11-toolkits/py-fltk
parent28d6e50e27e5c9ac8dc572f4b2becd3aa821655f (diff)
downloadfreebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.tar.gz
freebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.tar.zst
freebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.zip
Add py-fltk, a Python wrapper for the Fast Light Tool Kit cross-platform graphical
user-interface library. WWW: http://pyfltk.sourceforge.net/ PR: ports/65286 Submitted by: Radim Kolar <hsn@netmag.cz>
Diffstat (limited to 'x11-toolkits/py-fltk')
-rw-r--r--x11-toolkits/py-fltk/Makefile49
-rw-r--r--x11-toolkits/py-fltk/distinfo2
-rw-r--r--x11-toolkits/py-fltk/files/patch-setup.py14
-rw-r--r--x11-toolkits/py-fltk/pkg-descr6
-rw-r--r--x11-toolkits/py-fltk/pkg-plist73
5 files changed, 144 insertions, 0 deletions
diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile
new file mode 100644
index 000000000000..c4c2efb3810c
--- /dev/null
+++ b/x11-toolkits/py-fltk/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: py-fltk
+# Date created: 6 Apr 2004
+# Whom: Radim Kolar
+#
+# $FreeBSD$
+#
+
+PORTNAME= fltk
+PORTVERSION= 1.1.b2
+CATEGORIES= x11-toolkits
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= pyfltk
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pyFltk-${PORTVERSION:S/.b/b/}
+
+MAINTAINER= hsn@netmag.cz
+COMMENT= Python interface to FLTK window toolkit
+
+LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+USE_XLIB= yes
+USE_REINPLACE= yes
+
+#WRKSRC= ${WRKDIR}/${DISTNAME}
+MAKE_ENV+= FLTK_HOME=${X11BASE}/include OPENGL_HOME=${X11BASE}/include
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+XTRADOCS= CHANGES README TODO
+
+post-build:
+ ${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/test/help.py
+
+do-install:
+ @(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install ${PYDISTUTILS_INSTALLARGS})
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/html
+ ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test/*.py ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test/*.html ${EXAMPLESDIR}
+.for i in ${XTRADOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/py-fltk/distinfo b/x11-toolkits/py-fltk/distinfo
new file mode 100644
index 000000000000..7260e0b40228
--- /dev/null
+++ b/x11-toolkits/py-fltk/distinfo
@@ -0,0 +1,2 @@
+MD5 (pyFltk-1.1b2.tar.gz) = 92db2917295057520466c8a30fb620ae
+SIZE (pyFltk-1.1b2.tar.gz) = 232052
diff --git a/x11-toolkits/py-fltk/files/patch-setup.py b/x11-toolkits/py-fltk/files/patch-setup.py
new file mode 100644
index 000000000000..2be68cbbd466
--- /dev/null
+++ b/x11-toolkits/py-fltk/files/patch-setup.py
@@ -0,0 +1,14 @@
+--- setup.py.orig Tue Nov 11 21:53:44 2003
++++ setup.py Tue Apr 6 19:31:33 2004
+@@ -32,6 +32,11 @@
+ lib_dir_list = [fltk_lib_dir]
+ lib_list = ["fltk", "fltk_images", "fltk_forms",
+ "fltk_gl", "GL", "jpeg", "png", "z"]
++elif sys.platform in ['freebsd4','freebsd5']:
++ def_list = [('UNIX', '1')]
++ lib_dir_list = [fltk_lib_dir,'/usr/X11R6/lib','/usr/local/lib']
++ lib_list = ["fltk", "fltk_images", "fltk_forms",
++ "fltk_gl", "GL", "jpeg", "png", "z"]
+ else:
+ print "Platform not officially supported!"
+ print "You can try to edit the platform specific settings in the file setup.py by creating an entry for the following platform: ", sys.platform
diff --git a/x11-toolkits/py-fltk/pkg-descr b/x11-toolkits/py-fltk/pkg-descr
new file mode 100644
index 000000000000..fca81f120326
--- /dev/null
+++ b/x11-toolkits/py-fltk/pkg-descr
@@ -0,0 +1,6 @@
+pyFLTK is Python wrapper for the Fast Light Tool Kit cross-platform graphical
+user-interface library.
+
+This package wraps FLTK version 1.1 and is quite stable.
+
+WWW: http://pyfltk.sourceforge.net/
diff --git a/x11-toolkits/py-fltk/pkg-plist b/x11-toolkits/py-fltk/pkg-plist
new file mode 100644
index 000000000000..981b2f25fdae
--- /dev/null
+++ b/x11-toolkits/py-fltk/pkg-plist
@@ -0,0 +1,73 @@
+%%PYTHON_SITELIBDIR%%/fltk.py
+%%PYTHON_SITELIBDIR%%/fltk.pyc
+%%PYTHON_SITELIBDIR%%/fltk.pyo
+%%PYTHON_SITELIBDIR%%/_fltk.so
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Group.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Menu_.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Table.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Table_Row.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Widget.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Fl_Window.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Polymorphisms.html
+%%PORTDOCS%%%%DOCSDIR%%/html/pyFltk.html
+%%PORTDOCS%%%%DOCSDIR%%/html/setMenus.html
+%%PORTDOCS%%%%EXAMPLESDIR%%/HelpDialog.html
+%%PORTDOCS%%%%EXAMPLESDIR%%/adjuster.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/arc.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/ask.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/bitmap.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/boxtype.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/browser.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/browserData.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/browser_cols.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/button.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/buttons.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/chart.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/check_browser.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/clock.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/color_chooser.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/counters.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/cube.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/cursor.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/delwin.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/demos.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/dials.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/doublebuffer.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/file_chooser.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/formsbitmap.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/group.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/handle_events.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/hello.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/help.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/iconize.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/idle.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/image.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/listSelect.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/menu.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/menubar.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/message.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/multi.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/pack.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/pixmap.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/postioner.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/radio.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/shapeGL.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/sliders.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/subwindow.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/symbols.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/table.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/tabs.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/testWrapper.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/testhelp.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/timeout.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/tree_demo.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/valuators.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/widgets.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/window.py
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%