freebsd-ports/astro/josm/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Gleb Smirnoff <glebius@FreeBSD.org>
# $FreeBSD$
PORTNAME= josm
2017-07-31 15:27:12 +02:00
PORTVERSION= 12545
CATEGORIES= astro java
MASTER_SITES= http://josm.openstreetmap.de/download/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION}.jar
EXTRACT_SUFX= # empty
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Comprehensive editor for OpenStreetMap.org database
LICENSE= GPLv2+
2015-04-28 22:00:22 +02:00
2016-09-06 22:13:40 +02:00
PORTSCOUT= ignore:1
NO_WRKSUBDIR= yes
USES= zip:infozip
USE_JAVA= yes
JAVA_VERSION= 1.8+
JOSM_MEMORY_LIMIT?=1024
2012-10-09 17:26:58 +02:00
NO_BUILD= yes
2015-06-12 22:03:00 +02:00
NO_ARCH= yes
2012-10-09 17:26:58 +02:00
SUB_FILES= josm.sh
SUB_LIST= JARNAME=${DISTNAME} JOSM_MEMORY_LIMIT=${JOSM_MEMORY_LIMIT}
PLIST_FILES= bin/josm \
${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME} \
share/pixmaps/josm.png
DESKTOP_ENTRIES="JOSM" \
"" \
"${PORTNAME}" \
"${PORTNAME}" \
"Education;Geoscience;Maps;" \
true
pre-everything::
@${ECHO_CMD} "You can change limit of memory available to josm by defining"
@${ECHO_CMD} "JOSM_MEMORY_LIMIT variable in /etc/make.conf. Default is 1024 (MB)."
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/
2013-09-25 05:51:17 +02:00
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${STAGEDIR}${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/josm.sh ${STAGEDIR}${PREFIX}/bin/josm
${INSTALL_DATA} ${WRKSRC}/images/logo.png ${STAGEDIR}${PREFIX}/share/pixmaps/josm.png
.include <bsd.port.mk>