aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/iwidgets/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/iwidgets/Makefile')
-rw-r--r--x11-toolkits/iwidgets/Makefile36
1 files changed, 24 insertions, 12 deletions
diff --git a/x11-toolkits/iwidgets/Makefile b/x11-toolkits/iwidgets/Makefile
index 216bfbff48b6..045ece82dac1 100644
--- a/x11-toolkits/iwidgets/Makefile
+++ b/x11-toolkits/iwidgets/Makefile
@@ -6,21 +6,18 @@
#
PORTNAME= iwidgets
-PORTVERSION= 3.0.0
-CATEGORIES= x11-toolkits tk82
-MASTER_SITES= ftp://ftp.tcltk.com/pub/itcl/
-DISTNAME= itcl3.0.1
+PORTVERSION= 3.2
+CATEGORIES= x11-toolkits tk83
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=incrtcl
+DISTNAME= itcl3.2
-MAINTAINER= dmlb@ragnet.demon.co.uk
+MAINTAINER= ports@freebsd.org
-LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82 \
- itcl30.1:${PORTSDIR}/lang/itcl \
- itk30.1:${PORTSDIR}/x11-toolkits/itk
+LIB_DEPENDS= itk32.1:${PORTSDIR}/x11-toolkits/itk
-WRKSRC= ${WRKDIR}/itcl3.0.1/iwidgets3.0.0/unix
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-tcl=${PREFIX}/lib/tcl8.2 --with-itcl=${PREFIX}/lib/itcl3.0 --with-tk=${PREFIX}/lib/tk8.2 --with-itk=${PREFIX}/lib/itk3.0
-CONFIGURE_ENV= PORTSDIR=${PORTSDIR}
+EXTRACT_AFTER_ARGS=| ${TAR} -xf - ./itcl3.2/iwidgets\*
+NO_BUILD= yes
MANN= buttonbox.n calendar.n canvasprintbox.n canvasprintdialog.n \
checkbox.n combobox.n dateentry.n datefield.n dialog.n \
@@ -36,4 +33,19 @@ MANN= buttonbox.n calendar.n canvasprintbox.n canvasprintdialog.n \
spinint.n spinner.n spintime.n tabnotebook.n tabset.n \
timeentry.n timefield.n toolbar.n watch.n
+# Install both versions of iwidgets, but only the
+# latest version of man-pages:
+do-install:
+.for d in iwidgets3.0.0 iwidgets2.2.0
+ ${MKDIR} ${PREFIX}/lib/$d/scripts/ ${PREFIX}/lib/$d/demos/images/
+ ${INSTALL_DATA} ${WRKSRC}/$d/generic/* ${PREFIX}/lib/$d/scripts/
+ ${INSTALL_DATA} ${WRKSRC}/$d/*.tcl ${PREFIX}/lib/$d/
+# Everything, but the html:
+ ${INSTALL_DATA} `${GREP} -Fl 'package require' ${WRKSRC}/$d/demos/*` \
+ ${WRKSRC}/$d/demos/*.* ${PREFIX}/lib/$d/demos/
+ ${INSTALL_DATA} ${WRKSRC}/$d/demos/images/* \
+ ${PREFIX}/lib/$d/demos/images/
+.endfor
+ ${INSTALL_MAN} ${WRKSRC}/iwidgets3.0.0/doc/*.n ${PREFIX}/man/mann/
+
.include <bsd.port.mk>