freebsd-ports/editors/omegaT/Makefile

43 lines
1.1 KiB
Makefile

# Created by: Rodrigo OSORIO <rodrigo@FreeBSD.org>
# $FreeBSD$
PORTNAME= omegaT
DISTVERSION= 3.1.8
CATEGORIES= editors java x11
MASTER_SITES= SF/${PORTNAME:tl}/OmegaT%20-%20Standard/OmegaT%20${DISTVERSION}/
DISTNAME= OmegaT_${DISTVERSION}_Source
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Powerful translation memory application written in Java
LICENSE= GPLv2
USES= zip
USE_ANT= yes
USE_JAVA= yes
JAVA_VENDOR= openjdk
JAVA_VERSION= 1.7+
JAVA_BUILD= yes
JAVA_RUN= yes
NO_WRKSUBDIR= yes
USE_LDCONFIG= ${DATADIR}/native
ALL_TARGET= release
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= omegaT.sh omegat.prefs
DESKTOP_ENTRIES="OmegaT" "Translation memory application" \
"${DATADIR}/images/OmegaT.png" \
"omegaT" "Office;WordProcessor;Java;" \
false
post-build:
@cd ${WRKDIR} && ${MV} 'dist' ${PORTNAME}
do-install:
@${MKDIR} ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}
@cd ${WRKDIR} && ${COPYTREE_BIN} ${PORTNAME} ${STAGEDIR}${JAVASHAREDIR}
${INSTALL_SCRIPT} ${WRKDIR}/omegat.prefs ${STAGEDIR}${JAVASHAREDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/omegaT.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>