summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>2005-05-11 03:09:29 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>2005-05-11 03:09:29 +0000
commit4eb7870f08800ea6f61bd4c76c103c296748f905 (patch)
treecb6900f1370baded1f3c275a41f2dfeb8c4def48 /textproc
parentAdd JAVA_EXTRACT option that makes sure that java is available at (diff)
Do the unzipping of some files in the post-extract target instead of installation
time so that USE_ZIP takes care of the dependency to unzip.
Notes
Notes: svn path=/head/; revision=135030
Diffstat (limited to 'textproc')
-rw-r--r--textproc/nfbtrans/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/nfbtrans/Makefile b/textproc/nfbtrans/Makefile
index e943f5abba4b..d42e8301b004 100644
--- a/textproc/nfbtrans/Makefile
+++ b/textproc/nfbtrans/Makefile
@@ -28,14 +28,18 @@ MAKEFILE= makefile
BROKEN= "Does not install on ia64 or amd64 (segfault during install)"
.endif
+post-extract:
+ @${UNZIP_CMD} -q -L -a -o ${WRKSRC}/tables.zip -d ${WRKDIR}/tables
+ @${UNZIP_CMD} -q -L -a -o ${WRKSRC}/spanish.zip -d ${WRKDIR}/spanish
+
do-install:
${MKDIR} ${PREFIX}/share/nfbtrans/tables
${INSTALL_PROGRAM} ${WRKSRC}/nfbtrans ${PREFIX}/bin
.for f in braille.tab back.tab english.dic nfbtrans.cnf menu.cnf
${INSTALL_DATA} ${WRKSRC}/$f ${PREFIX}/share/nfbtrans
.endfor
- ${UNZIP_CMD} -q -L -a -o ${WRKSRC}/tables.zip -d ${PREFIX}/share/nfbtrans/tables
- ${UNZIP_CMD} -q -L -a -o ${WRKSRC}/spanish.zip -d ${PREFIX}/share/nfbtrans/spanish
+ @${CP} -pR ${WRKDIR}/tables ${PREFIX}/share/nfbtrans
+ @${CP} -pR ${WRKDIR}/spanish ${PREFIX}/share/nfbtrans
.if !defined(NOPORTDOCS)
@${ECHO} '~0 ~-pw=80 ~-ls=99 ~-pl=56 ~-if=12 ~-fc=. ~o5 ~p- ~-ip=0 ~-oc=1' \
| ${CAT} - ${WRKSRC}/nfbtrans.fmt > ${WRKSRC}/nfbprint.fmt