# Created by: cartola (Carlos E. G. Carvalho) # $FreeBSD$ PORTNAME= freemind PORTVERSION= 0.9.0 PORTEPOCH= 1 CATEGORIES= deskutils editors java MASTER_SITES= SF DISTNAME= ${PORTNAME}-bin-max-${PORTVERSION} MAINTAINER= wenheping@gmail.com COMMENT= Free mind-mapping software written in Java LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/license BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \ zip:${PORTSDIR}/archivers/zip RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper USE_ZIP= yes USE_JAVA= yes JAVA_VERSION= 1.6+ DATADIR= ${JAVASHAREDIR}/${PORTNAME}-${PORTVERSION} DATAFILES= accessories browser doc lib plugins patterns.xml EXTRACT_AFTER_ARGS= -d ${WRKSRC} ZIP_CMD= zip SUB_FILES= freemind.sh NO_STAGE= yes do-build: (cd ${WRKSRC}; \ ${UNZIP_CMD} lib/freemind.jar freemind.properties; \ ${REINPLACE_CMD} -e '/^keystroke_node_increase_font_size/ s/PLUS/EQUALS/;/^keystroke_branch_increase_font_size/ s/PLUS/EQUALS/;s|./doc/freemind.mm|file:${DATADIR}/doc/freemind.mm|' freemind.properties; \ ${ZIP_CMD} -u lib/freemind.jar freemind.properties) do-install: cd ${WRKSRC} \ && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; \ && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; ${INSTALL_SCRIPT} ${WRKDIR}/freemind.sh ${PREFIX}/bin/freemind .include