blob: 5d6b627c3d6713ad699fc07a13486ea9c257df3f (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.8 2013/06/07 15:52:27 ryoon Exp $
#
DISTNAME= OmegaT_3.0.3_Beta_Source
PKGNAME= ${DISTNAME:S/OmegaT_/OmegaT-/:S/_Source//:S/_Beta//:S/_/./g}
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=omegat/}
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://www.omegat.org/
COMMENT= The translation memory (TM) application written in Java
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}
USE_LANGUAGES= # none
USE_JAVA= run
USE_JAVA2= yes
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
USE_TOOLS+= pax
FIND_PREFIX:= ANTDIR=apache-ant
.include "../../mk/find-prefix.mk"
SUBST_CLASSES+= fix-omegat
SUBST_STAGE.fix-omegat= pre-configure
SUBST_MESSAGE.fix-omegat= fixing pathes
SUBST_FILES.fix-omegat= OmegaT
SUBST_SED.fix-omegat= -e 's,@OMEGATDIR@,${PREFIX}/${OMEGATDIR}/,g'
SUBST_SED.fix-omegat+= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME}/,g'
OMEGATDIR= share/OmegaT
OMEGATDOCDIR= share/doc/OmegaT
INSTALLATION_DIRS= bin \
${OMEGATDIR} \
${OMEGATDIR}/lib \
${OMEGATDOCDIR} \
${OMEGATDOCDIR}/images
pre-patch:
${INSTALL_DATA} ${FILESDIR}/OmegaT.in ${WRKSRC}/OmegaT
do-build:
cd ${WRKSRC} \
&& env ${MAKE_ENV} \
${ANTDIR}/bin/ant jar release
do-install:
${INSTALL_DATA} ${WRKSRC}/dist/*txt \
${DESTDIR}${PREFIX}/${OMEGATDOCDIR}
${INSTALL_DATA} ${WRKSRC}/dist/*html \
${DESTDIR}${PREFIX}/${OMEGATDOCDIR}
${INSTALL_DATA} ${WRKSRC}/dist/OmegaT.jar \
${DESTDIR}${PREFIX}/${OMEGATDIR}
cd ${WRKSRC}/dist/docs && pax -rw -pmp * \
${DESTDIR}${PREFIX}/${OMEGATDOCDIR}
${INSTALL_DATA} ${WRKSRC}/dist/images/* \
${DESTDIR}${PREFIX}/${OMEGATDOCDIR}/images
${INSTALL_DATA} ${WRKSRC}/dist/lib/* \
${DESTDIR}${PREFIX}/${OMEGATDIR}/lib
${INSTALL_DATA} ${FILESDIR}/omegat.prefs \
${DESTDIR}${PREFIX}/${OMEGATDIR}
${INSTALL_SCRIPT} ${WRKSRC}/OmegaT ${DESTDIR}${PREFIX}/bin
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"
|