summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-tkinter
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-04-04 09:53:12 +0000
committertg <tg@FreeBSD.org>2000-04-04 09:53:12 +0000
commit310b43ee4228aeef30798502b0db9c5054321093 (patch)
tree069a9c4558470602e3dafc66613bde1e62787fdb /x11-toolkits/py-tkinter
parenta4808fa3ede1b62fb3e0fe56ed3a7878e9d50f01 (diff)
downloadFreeBSD-ports-310b43ee4228aeef30798502b0db9c5054321093.zip
FreeBSD-ports-310b43ee4228aeef30798502b0db9c5054321093.tar.gz
Separate the Python Tk module from the main port. I've been
wanting do to this for a long time now. Now we got rid of the stupid dependency on Tcl/Tk and save some checks in python's makefile. Update the dependent ports accordingly.
Diffstat (limited to 'x11-toolkits/py-tkinter')
-rw-r--r--x11-toolkits/py-tkinter/Makefile39
-rw-r--r--x11-toolkits/py-tkinter/distinfo1
-rw-r--r--x11-toolkits/py-tkinter/files/Setup47
-rw-r--r--x11-toolkits/py-tkinter/pkg-comment1
-rw-r--r--x11-toolkits/py-tkinter/pkg-descr1
-rw-r--r--x11-toolkits/py-tkinter/pkg-plist1
6 files changed, 90 insertions, 0 deletions
diff --git a/x11-toolkits/py-tkinter/Makefile b/x11-toolkits/py-tkinter/Makefile
new file mode 100644
index 0000000..8d38458
--- /dev/null
+++ b/x11-toolkits/py-tkinter/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: py-Tkinter
+# Version required: 1.5.2
+# Date created: 12 Jan 1999
+# Whom: Thomas Gellekum <tg@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+DISTNAME= py152
+PKGNAME= py-tkinter-1.5.2
+CATEGORIES= x11-toolkits python
+MASTER_SITES= ftp://www.python.org/pub/python/src/ \
+ ftp://ftp.cwi.nl/pub/python/src/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= tg@FreeBSD.org
+
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python
+LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
+RUN_DEPENDS= python:${PORTSDIR}/lang/python
+
+DIST_SUBDIR= python
+WRKSRC= ${WRKDIR}/Python-1.5.2/Modules
+ALL_TARGET= sharedmods
+MAKE_FLAGS= OPT="${CFLAGS}"
+
+PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
+
+post-extract:
+ @${CP} ${FILESDIR}/Setup ${WRKSRC}
+ @${CP} ${PYTHONSCRIPTDIR}/config/Makefile.pre.in ${WRKSRC}
+
+do-configure:
+ @(cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/_tkinter.so ${PYTHONSCRIPTDIR}/site-packages
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/py-tkinter/distinfo b/x11-toolkits/py-tkinter/distinfo
new file mode 100644
index 0000000..72ca6a7
--- /dev/null
+++ b/x11-toolkits/py-tkinter/distinfo
@@ -0,0 +1 @@
+MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
diff --git a/x11-toolkits/py-tkinter/files/Setup b/x11-toolkits/py-tkinter/files/Setup
new file mode 100644
index 0000000..d0c27c9
--- /dev/null
+++ b/x11-toolkits/py-tkinter/files/Setup
@@ -0,0 +1,47 @@
+*shared*
+
+# The _tkinter module.
+#
+# The TKPATH variable is always enabled, to save you the effort.
+TKPATH=:lib-tk
+
+# The command for _tkinter is long and site specific. Please
+# uncomment and/or edit those parts as indicated. If you don't have a
+# specific extension (e.g. Tix or BLT), leave the corresponding line
+# commented out. (Leave the trailing backslashes in! If you
+# experience strange errors, you may want to join all uncommented
+# lines and remove the backslashes -- the backslash interpretation is
+# done by the shell's "read" command and it may not be implemented on
+# every system.
+
+# *** Always uncomment this (leave the leading underscore in!):
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I${X11BASE}/include -I${PREFIX}/include/tcl8.2 -I${PREFIX}/include/tk8.2 -L${PREFIX}/lib -ltk82 -ltcl82 -L${X11BASE}/lib -lX11
+
+# *** Uncommend and edit to reflect where your X11 header files are:
+# -I/usr/X11R6/include \
+# *** Or uncomment this for Solaris:
+# -I/usr/openwin/include \
+# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
+# -I/usr/local/include/tcl8.1 -I/usr/local/include/tk8.1 \
+# *** Uncomment and edit for Tix extension only:
+# -DWITH_TIX -ltix4.1.8.0 \
+# *** Uncomment and edit for BLT extension only:
+# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
+# *** Uncomment and edit for PIL (TkImaging) extension only:
+# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
+# *** Uncomment and edit for Mesa (what's Mesa?):
+# -lGL -lGLU -lMesatk -lMesaaux \
+# *** Uncomment and edit for TOGL extension only:
+# -DWITH_TOGL togl.c \
+# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
+# -L/usr/local/lib \
+# *** Uncomment and edit to reflect your Tcl/Tk versions:
+# -ltk80 -ltcl80 \
+# *** Uncomment and edit to reflect where your X11 libraries are:
+# -L/usr/X11R6/lib \
+# *** Or uncomment this for Solaris:
+# -L/usr/openwin/lib \
+# *** Always uncomment this; X11 libraries to link with:
+# -lX11 -lXext -lXmu
+
+
diff --git a/x11-toolkits/py-tkinter/pkg-comment b/x11-toolkits/py-tkinter/pkg-comment
new file mode 100644
index 0000000..2af2980
--- /dev/null
+++ b/x11-toolkits/py-tkinter/pkg-comment
@@ -0,0 +1 @@
+Python bindings to the Tk widget set.
diff --git a/x11-toolkits/py-tkinter/pkg-descr b/x11-toolkits/py-tkinter/pkg-descr
new file mode 100644
index 0000000..2af2980
--- /dev/null
+++ b/x11-toolkits/py-tkinter/pkg-descr
@@ -0,0 +1 @@
+Python bindings to the Tk widget set.
diff --git a/x11-toolkits/py-tkinter/pkg-plist b/x11-toolkits/py-tkinter/pkg-plist
new file mode 100644
index 0000000..b8deafa
--- /dev/null
+++ b/x11-toolkits/py-tkinter/pkg-plist
@@ -0,0 +1 @@
+lib/python1.5/site-packages/_tkinter.so
OpenPOWER on IntegriCloud