mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
fabf4f2275
- STAGE-clean - Fix a run-time error when no LANG environment variable is defined
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
# Created by: nivit@users.sourceforge.net
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tkxmlive
|
|
PORTVERSION= 0.1.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF
|
|
DISTNAME= tkxmlive-0.1.5-1
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Tcl/Tk XML intelligence visual editor
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/bwidget/pkgIndex.tcl:${PORTSDIR}/x11-toolkits/bwidget
|
|
|
|
NO_BUILD= yes
|
|
USES= tk:run
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
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} ${STAGEDIR}${DATADIR}/$${DIR}; \
|
|
done; \
|
|
FILES=$$(${FIND} . ${FIND_ARGS2}); \
|
|
for FILE in $${FILES}; do \
|
|
${INSTALL_SCRIPT} $${FILE} ${STAGEDIR}${DATADIR}/$${FILE}; \
|
|
done; \
|
|
FILES=$$(${FIND} -E . ${FIND_ARGS3}); \
|
|
for FILE in $${FILES}; do \
|
|
${INSTALL_DATA} $${FILE} ${STAGEDIR}${DATADIR}/$${FILE}; \
|
|
done;
|
|
|
|
# Links to executables
|
|
cd ${WRKSRC}; \
|
|
FILES=${PORTNAME}; \
|
|
for f in $${FILES}; do \
|
|
${LN} ${LN_OPTS} ${DATADIR}/$${f} ${STAGEDIR}${PREFIX}/bin/$${f}; \
|
|
done;
|
|
|
|
.include <bsd.port.post.mk>
|