blob: 6a24ed989a04f8d53a310c9350a4012272c6c733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# $NetBSD: Makefile,v 1.6 2009/07/07 20:31:33 joerg 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
PKG_DESTDIR_SUPPORT= user-destdir
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"
|