41 lines
1,000 B
Makefile
41 lines
1,000 B
Makefile
# $NetBSD: Makefile,v 1.8 2017/09/06 10:40:34 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= ${W2L}beta2
|
|
PKGNAME= writer2latex-0.4b2
|
|
PKGREVISION= 1
|
|
CATEGORIES= textproc
|
|
#MASTER_SITES= http://www.hj-gym.dk/~hj/writer2latex/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
#HOMEPAGE= http://www.hj-gym.dk/~hj/writer2latex/
|
|
COMMENT= Convert OpenOffice.org/StarOffice documents to LaTeX and other formats
|
|
|
|
WRKSRC= ${WRKDIR}/${W2L}
|
|
USE_JAVA2= yes
|
|
USE_JAVA= run
|
|
|
|
W2L= writer2latex04
|
|
W2LPATH= ${PREFIX}/share/${W2L}
|
|
|
|
INSTALLATION_DIRS= bin ${W2LPATH}
|
|
|
|
do-configure:
|
|
.for scr in w2l
|
|
${SED} -e 's|^\(java\)|${PKG_JAVA_HOME}/bin/\1|' \
|
|
-e 's|^\(W2LPATH\).*|\1="${W2LPATH}"|' \
|
|
-e 's|bash|sh|g' \
|
|
< ${WRKSRC}/${scr} > ${WRKSRC}/${scr}.new
|
|
${MV} ${WRKSRC}/${scr}.new ${WRKSRC}/${scr}
|
|
.endfor
|
|
|
|
do-build:
|
|
${RM} -rf ${WRKSRC}/source
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/w2l ${DESTDIR}${PREFIX}/bin/w2l
|
|
${CP} -R ${WRKSRC}/* ${DESTDIR}${W2LPATH}
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|