aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/tktable
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-07-23 10:36:01 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-07-23 10:36:01 +0000
commit9ff05dcf62b2261a89120ba1b22f745c23cbbab6 (patch)
treeb2e2eabcbd7070bc6fb8fc4dbfa4ba374abf8f2f /x11-toolkits/tktable
parent41405efa6cc04df3290cfa20dd53478a4b73f039 (diff)
downloadports-9ff05dcf62b2261a89120ba1b22f745c23cbbab6.tar.gz
ports-9ff05dcf62b2261a89120ba1b22f745c23cbbab6.zip
Notes
Diffstat (limited to 'x11-toolkits/tktable')
-rw-r--r--x11-toolkits/tktable/Makefile51
-rw-r--r--x11-toolkits/tktable/distinfo1
-rw-r--r--x11-toolkits/tktable/files/patch-Makefile.in32
-rw-r--r--x11-toolkits/tktable/pkg-descr6
-rw-r--r--x11-toolkits/tktable/pkg-plist9
5 files changed, 99 insertions, 0 deletions
diff --git a/x11-toolkits/tktable/Makefile b/x11-toolkits/tktable/Makefile
new file mode 100644
index 000000000000..146f88b76009
--- /dev/null
+++ b/x11-toolkits/tktable/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: tktable
+# Date created: 25 Jun 2003
+# Whom: thierry@pompo.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= tktable
+PORTVERSION= 2.8
+CATEGORIES= x11-toolkits tk83
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME:S/tk/Tk/}${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A table/matrix widget extension to tk/tcl
+
+LIB_DEPENDS= tk83.1:${PORTSDIR}/x11-toolkits/tk83
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix=${PREFIX} \
+ --with-tcl=${LOCALBASE}/lib/tcl${TK_VER} \
+ --with-tk=${LOCALBASE}/lib/tk${TK_VER} \
+ --with-tclinclude=${LOCALBASE}/include/tcl${TK_VER} \
+ --with-tkinclude=${LOCALBASE}/include/tk${TK_VER} \
+ --with-x=${X11BASE}
+USE_REINPLACE= yes
+
+TK_VER= 8.3
+PLIST_SUB= DESTDIR=lib/${DISTNAME}
+
+post-patch:
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e "s:install-libraries install-doc:install-libraries:" \
+ ${WRKSRC}/Makefile.in
+.else
+ @${REINPLACE_CMD} -e "s:%%DOCSDIR%%:${DOCSDIR}:g" ${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+.if defined(MAINTAINER_MODE)
+test: build
+ (cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test)
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/tktable/distinfo b/x11-toolkits/tktable/distinfo
new file mode 100644
index 000000000000..d87505fd3c4e
--- /dev/null
+++ b/x11-toolkits/tktable/distinfo
@@ -0,0 +1 @@
+MD5 (Tktable2.8.tar.gz) = 6d29fe86f925acf58bb3a268cc511564
diff --git a/x11-toolkits/tktable/files/patch-Makefile.in b/x11-toolkits/tktable/files/patch-Makefile.in
new file mode 100644
index 000000000000..1d5de029ff38
--- /dev/null
+++ b/x11-toolkits/tktable/files/patch-Makefile.in
@@ -0,0 +1,32 @@
+--- Makefile.in.orig Wed Oct 16 09:40:33 2002
++++ Makefile.in Wed Jul 23 12:19:40 2003
+@@ -98,6 +98,7 @@
+ datadir = @datadir@
+ mandir = @mandir@
+ includedir = @includedir@
++docsdir = %%DOCSDIR%%
+
+ DESTDIR =
+
+@@ -241,7 +242,6 @@
+ @mkdir -p $(DESTDIR)$(pkglibdir)
+ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
+ $(INSTALL_DATA) $(srcdir)/license.txt $(DESTDIR)$(pkglibdir)
+- $(INSTALL_DATA) $(srcdir)/README.txt $(DESTDIR)$(pkglibdir)
+
+ #========================================================================
+ # This rule installs platform-independent files, such as header files.
+@@ -255,10 +255,11 @@
+ #========================================================================
+
+ install-doc: doc
+- @mkdir -p $(DESTDIR)$(pkglibdir)/html
++ @mkdir -p $(docsdir)/html
++ $(INSTALL_DATA) $(srcdir)/README.txt $(docsdir)
+ @list='$(PKG_MAN_PAGES)'; for p in $$list; do \
+ html=`basename $$p|sed -e 's/.[^.]*$$//'`.html; \
+- $(INSTALL_DATA) $(srcdir)/doc/$$html $(DESTDIR)$(pkglibdir)/html/; \
++ $(INSTALL_DATA) $(srcdir)/doc/$$html $(docsdir)/html/; \
+ done
+
+ html:
diff --git a/x11-toolkits/tktable/pkg-descr b/x11-toolkits/tktable/pkg-descr
new file mode 100644
index 000000000000..25f1be201339
--- /dev/null
+++ b/x11-toolkits/tktable/pkg-descr
@@ -0,0 +1,6 @@
+TkTable is a full-featured 2D table widget (in the spreadsheet sense)
+extension for Tk.
+
+It supports images, embedded windows, varying colors and fonts, and more.
+
+WWW: http://tktable.sourceforge.net/
diff --git a/x11-toolkits/tktable/pkg-plist b/x11-toolkits/tktable/pkg-plist
new file mode 100644
index 000000000000..31e1ca6ba348
--- /dev/null
+++ b/x11-toolkits/tktable/pkg-plist
@@ -0,0 +1,9 @@
+%%DESTDIR%%/libTktable2.8.so
+%%DESTDIR%%/tkTable.tcl
+%%DESTDIR%%/pkgIndex.tcl
+%%DESTDIR%%/license.txt
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/html/tkTable.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DESTDIR%%