# New ports collection makefile for:	tkxmlive
# Date created:				4 December 2003
# Whom:					nivit@users.sourceforge.net
#
# $FreeBSD$

PORTNAME=		tkxmlive
PORTVERSION=		0.1.5
PORTREVISION=	1
CATEGORIES=		textproc
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=		tkxmlive-0.1.5-1

MAINTAINER=		nivit@FreeBSD.org
COMMENT=		Tcl/Tk XML Intelligence Visual Editor

RUN_DEPENDS+=		wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
			${LOCALBASE}/lib/bwidget/pkgIndex.tcl:${PORTSDIR}/x11-toolkits/bwidget

NO_BUILD=		yes

WRKSRC=			${WRKDIR}/${PORTNAME}

.include <bsd.port.pre.mk>

TK_VER?=		8.4
WISH=			wish${TK_VER}

REPLACE_FILES=		${WRKSRC}/interface.tcl \
			${WRKSRC}/tkxmlive

post-patch: .SILENT
	for FILE in ${REPLACE_FILES}; do \
		${SED} -i .bak\
		-e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" \
		-e "/%%PREFIX%%/s//${PREFIX:S/\//\\\//g}/g" \
		-e "/%%WISH%%/s//${WISH:S/\//\\\//g}/g" \
		$${FILE}; \
	done;

LN_OPTS?=		-sf

FIND_ARGS1=		-type d \! -empty
FIND_ARGS2=		-type f -and -perm -a+x -and \! \
			-name "*.orig" \! -name "*.bak"
FIND_ARGS3=		-type f -and \! -perm -a+x -and \! \
			-name "*.orig" \! -name "*~" \! \
			-regex ".*[[:upper:]]+"

do-install: .SILENT
# Script and data
	cd ${WRKSRC}; \
	DIRS=$$(${FIND} . ${FIND_ARGS1}); \
	for DIR in $${DIRS}; do \
		${MKDIR} ${DATADIR}/$${DIR}; \
	done; \
	FILES=$$(${FIND} . ${FIND_ARGS2}); \
	for FILE in $${FILES}; do \
		${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \
	done; \
	FILES=$$(${FIND} -E . ${FIND_ARGS3}); \
	for FILE in $${FILES}; do \
		${INSTALL_DATA} $${FILE} ${DATADIR}/$${FILE}; \
	done;

# Links to executables
	cd ${WRKSRC}; \
	FILES=${PORTNAME}; \
	for f in $${FILES}; do \
		${LN} ${LN_OPTS} ${DATADIR}/$${f} ${PREFIX}/bin/$${f}; \
	done;

.include <bsd.port.post.mk>
phics)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/about/'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/refs/'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm/compizconfig-python/pkg-plist'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/tree/x11-wm/compizconfig-python/pkg-plist'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/x11-wm/compizconfig-python/pkg-plist'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/diff/x11-wm/compizconfig-python/pkg-plist'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/stats/x11-wm/compizconfig-python/pkg-plist'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm/compizconfig-python/pkg-plist'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm'>x11-wm</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm/compizconfig-python'>compizconfig-python</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm/compizconfig-python/pkg-plist'>pkg-plist</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/x11-wm/compizconfig-python/pkg-plist?showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/x11-wm/compizconfig-python/pkg-plist?id=e570d0ec820ac6409904ee96937dce3f1075f824'>- Convert to USES=libtool and USES=tar:bzip2.</a></td><td>jkim</td><td><span title='2014-06-04 04:16:23 +0800'>2014-06-04</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+1</span></td></tr>