2012-12-10 14:18:28 +01:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-04-28 05:16:02 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mapyrus
|
2013-06-13 22:18:12 +02:00
|
|
|
PORTVERSION= 1.302
|
|
|
|
PORTREVISION= 0
|
2006-04-28 05:16:02 +02:00
|
|
|
CATEGORIES= graphics print java
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2006-04-28 05:16:02 +02:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-04-28 05:16:02 +02:00
|
|
|
COMMENT= A software for creating plots of points, lines, etc
|
|
|
|
|
2011-08-10 22:26:26 +02:00
|
|
|
LICENSE= LGPL21
|
|
|
|
|
2006-04-28 05:16:02 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2012-12-10 14:18:28 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2006-04-28 05:16:02 +02:00
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= ${PORTNAME} pkg-message
|
2013-06-13 22:18:12 +02:00
|
|
|
SUB_LIST= JAVA_VERSION=${JAVA_VERSION} \
|
|
|
|
MAPYRUSJAR=${MAPYRUSJAR}
|
2006-04-28 05:16:02 +02:00
|
|
|
|
|
|
|
MAPYRUSJAR= ${PORTNAME}.jar
|
|
|
|
MAPYRUSDOCS= ${PORTNAME}.pdf
|
|
|
|
|
2006-11-09 00:34:54 +01:00
|
|
|
FIND_DATA= -type f -not \( -iname "copying" -or -iname "*.tex" \)
|
2006-04-28 05:16:02 +02:00
|
|
|
FIND_HERE= userdoc
|
|
|
|
|
2012-07-05 22:30:09 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2006-04-28 05:16:02 +02:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${DATADIR}
|
2007-08-24 15:26:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MAPYRUSJAR} ${DATADIR}/${MAPYRUSJAR}
|
2006-04-28 05:16:02 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
|
2012-07-05 22:30:09 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-04-28 05:16:02 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2007-08-24 15:26:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${MAPYRUSDOCS} ${DOCSDIR}/
|
2006-04-28 05:16:02 +02:00
|
|
|
.endif
|
2012-07-05 22:30:09 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2006-04-28 05:16:02 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKDIR} && ${FIND} ${FIND_HERE} ${FIND_DATA} -exec ${INSTALL_DATA} {} ${EXAMPLESDIR} \;
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2007-08-24 15:26:13 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-04-28 05:16:02 +02:00
|
|
|
|
2007-08-24 15:26:13 +02:00
|
|
|
.include <bsd.port.mk>
|