2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2013/03/11 11:46:16 espie Exp $
|
2009-01-07 06:16:56 -05:00
|
|
|
|
|
|
|
COMMENT = enhanced Tk console
|
|
|
|
|
2009-04-24 12:29:55 -04:00
|
|
|
DISTNAME = tkcon-2.5
|
2011-01-05 11:48:22 -05:00
|
|
|
REVISION = 0
|
2009-01-07 06:16:56 -05:00
|
|
|
CATEGORIES = x11 x11/tk
|
|
|
|
HOMEPAGE = http://sourceforge.net/projects/tkcon/
|
|
|
|
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
MODULES = x11/tk
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tkcon/}
|
2010-11-22 03:36:47 -05:00
|
|
|
BUILD_DEPENDS = devel/tcllib>=1.11.1
|
2009-01-07 06:16:56 -05:00
|
|
|
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
|
2011-01-05 11:48:22 -05:00
|
|
|
USE_GROFF = Yes
|
2009-01-07 06:16:56 -05:00
|
|
|
NO_BUILD = Yes
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST = Yes
|
2011-01-05 11:48:22 -05:00
|
|
|
PKG_ARCH = *
|
2009-01-07 06:16:56 -05:00
|
|
|
|
|
|
|
DOCDIR = ${PREFIX}/share/doc/tkcon
|
2011-01-05 11:48:22 -05:00
|
|
|
MODDIR = ${DESTDIR}${MODTCL_MODDIR}/${MODTCL_VERSION}
|
2009-01-07 06:16:56 -05:00
|
|
|
|
2009-04-24 12:29:55 -04:00
|
|
|
do-configure:
|
|
|
|
@${MODTCL_WISH_ADJ} ${WRKSRC}/tkcon.tcl
|
2009-01-07 06:16:56 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tkcon.tcl ${PREFIX}/bin/tkcon
|
2009-04-24 12:29:55 -04:00
|
|
|
# Enable loading as a 'Tcl Module' via [package require]
|
2011-01-05 11:48:22 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MODDIR}
|
|
|
|
ln -sf ${TRUEPREFIX}/bin/tkcon ${MODDIR}/tkcon-2.5.tm
|
2009-01-07 06:16:56 -05:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
.for i in README.txt index.html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${DOCDIR}/$i
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/docs
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCDIR}/docs/
|
2011-01-05 11:48:22 -05:00
|
|
|
rm -f ${DOCDIR}/docs/*.man ${DOCDIR}/docs/*.orig
|
2009-04-24 12:29:55 -04:00
|
|
|
.for s in 1 5 n
|
|
|
|
for i in ${WRKSRC}/docs/*.$s.man ; do \
|
|
|
|
ofn=`basename $$i | sed -e 's/\..*$$/.$s/'` ; \
|
|
|
|
dtplite -o ${PREFIX}/man/man$s/$$ofn nroff $$i ; \
|
|
|
|
done
|
|
|
|
.endfor
|
2009-01-07 06:16:56 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|