summaryrefslogtreecommitdiff
path: root/x11/py-Tk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-05-14 22:12:37 +0000
committertron <tron@pkgsrc.org>1998-05-14 22:12:37 +0000
commit938118e8ac18acfb1e1ed1be2f1c02635b95d7f6 (patch)
tree6d56a4c9cdbe4f08d8a53c317820260443ac5c45 /x11/py-Tk
parent036fa2e9f531096f107fc5a43c13ba30ed8cb9a2 (diff)
downloadpkgsrc-938118e8ac18acfb1e1ed1be2f1c02635b95d7f6.tar.gz
Add "py-Tk" package made by Jaromir Dolecek.
Diffstat (limited to 'x11/py-Tk')
-rw-r--r--x11/py-Tk/Makefile38
-rw-r--r--x11/py-Tk/files/Setup.in2
-rw-r--r--x11/py-Tk/files/md51
-rw-r--r--x11/py-Tk/pkg/COMMENT1
-rw-r--r--x11/py-Tk/pkg/DESCR3
-rw-r--r--x11/py-Tk/pkg/PLIST2
6 files changed, 47 insertions, 0 deletions
diff --git a/x11/py-Tk/Makefile b/x11/py-Tk/Makefile
new file mode 100644
index 00000000000..e5d4be3459d
--- /dev/null
+++ b/x11/py-Tk/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 1998/05/14 22:12:37 tron Exp $
+#
+
+DISTNAME= pyth151
+PKGNAME= py-Tk-1.5.1
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.python.org/pub/python/src/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= dolecek@ics.muni.cz
+
+DEPENDS+= python-1.5.1:../../lang/python
+DEPENDS+= tk-8.0p2:../../x11/tk80
+DEPENDS+= tcl-8.0p2:../../lang/tcl80
+
+WRKSRC= ${WRKDIR}/Python-1.5.1/Modules
+ALL_TARGET= default
+EXTRACT_AFTER_ARGS= Python-1.5.1/Modules/_tkinter.c \
+ Python-1.5.1/Modules/tkappinit.c
+
+PYTHON_CONFIGDIR= ${LOCALBASE}/lib/python1.5/config/
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha"
+IGNORE="Needs dynamic loading"
+.endif
+
+do-configure:
+ ${SED} -e 's%@LOCALBASE@%${LOCALBASE}%g' \
+ -e 's%@X11BASE@%${X11BASE}%g' ${FILESDIR}/Setup.in \
+ >${WRKSRC}/Setup.in
+ ( cd ${WRKSRC} ;\
+ ${LN} -s ${PYTHON_CONFIGDIR}/Makefile.pre.in ;\
+ ${MAKE} -f Makefile.pre.in boot)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/_tkinter.so ${LOCALBASE}/lib/python1.5/lib-dynload
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/py-Tk/files/Setup.in b/x11/py-Tk/files/Setup.in
new file mode 100644
index 00000000000..b7d0dc6237d
--- /dev/null
+++ b/x11/py-Tk/files/Setup.in
@@ -0,0 +1,2 @@
+*shared*
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT -I@LOCALBASE@/include/tk8.0 -I@LOCALBASE@/include/tcl8.0 -I@X11BASE@/include -L@X11BASE@/lib -lX11 -L@LOCALBASE@/lib -ltk80 -ltcl80
diff --git a/x11/py-Tk/files/md5 b/x11/py-Tk/files/md5
new file mode 100644
index 00000000000..63166bf98ac
--- /dev/null
+++ b/x11/py-Tk/files/md5
@@ -0,0 +1 @@
+MD5 (pyth151.tgz) = eb8ef6e37e543058a2d47996ecf62427
diff --git a/x11/py-Tk/pkg/COMMENT b/x11/py-Tk/pkg/COMMENT
new file mode 100644
index 00000000000..e2a8b6647b0
--- /dev/null
+++ b/x11/py-Tk/pkg/COMMENT
@@ -0,0 +1 @@
+Tkinter -- Python interface to Tcl/Tk
diff --git a/x11/py-Tk/pkg/DESCR b/x11/py-Tk/pkg/DESCR
new file mode 100644
index 00000000000..2ad8d875b3f
--- /dev/null
+++ b/x11/py-Tk/pkg/DESCR
@@ -0,0 +1,3 @@
+This package provides C binding to libtk and libtcl, necessary for
+Tkinter to work. All other needed files (Tkinter.py and frineds)
+are part of standard Python installation.
diff --git a/x11/py-Tk/pkg/PLIST b/x11/py-Tk/pkg/PLIST
new file mode 100644
index 00000000000..68f5a61f2a0
--- /dev/null
+++ b/x11/py-Tk/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 1998/05/14 22:12:37 tron Exp $
+lib/python1.5/lib-dynload/_tkinter.so