freebsd-ports/graphics/mapyrus/Makefile
Nicola Vitale 0488fc4a35 - Fix a typo in mapyrus script, that prevented the program to start
(bump PORTREVISION)
- Remove leading article from COMMENT
- Add support for stage dir
2014-03-30 15:43:49 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= mapyrus
PORTVERSION= 1.302
PORTREVISION= 1
CATEGORIES= graphics print java
MASTER_SITES= SF
MAINTAINER= nivit@FreeBSD.org
COMMENT= Software for creating plots of points, lines, etc
LICENSE= LGPL21
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
USES= zip
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= ${PORTNAME} pkg-message
SUB_LIST= MAPYRUSJAR=${MAPYRUSJAR}
MAPYRUSJAR= ${PORTNAME}.jar
MAPYRUSDOCS= ${PORTNAME}.pdf
FIND_DATA= -type f -not \( -iname "copying" -or -iname "*.tex" \)
FIND_HERE= userdoc
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${MAPYRUSJAR} ${STAGEDIR}${DATADIR}/${MAPYRUSJAR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${MAPYRUSDOCS} ${STAGEDIR}${DOCSDIR}/
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKDIR} && ${FIND} ${FIND_HERE} ${FIND_DATA} -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \;
.include <bsd.port.mk>