aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astro/josm/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/astro/josm/Makefile b/astro/josm/Makefile
index 8c8fbe52e085..1cf7686d4cd8 100644
--- a/astro/josm/Makefile
+++ b/astro/josm/Makefile
@@ -8,7 +8,6 @@ MASTER_SITES= http://josm.openstreetmap.de/download/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION}.jar
EXTRACT_SUFX= # empty
-EXTRACT_ONLY= # empty
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Comprehensive editor for OpenStreetMap.org database
@@ -19,8 +18,9 @@ PORTSCOUT= ignore:1
NO_WRKSUBDIR= yes
+USES= zip:infozip
USE_JAVA= yes
-JAVA_VERSION= 1.7+
+JAVA_VERSION= 1.8+
JOSM_MEMORY_LIMIT?=1024
@@ -30,15 +30,25 @@ NO_ARCH= yes
SUB_FILES= josm.sh
SUB_LIST= JARNAME=${DISTNAME} JOSM_MEMORY_LIMIT=${JOSM_MEMORY_LIMIT}
-PLIST_FILES= bin/josm ${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME}
+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}/
+ @${MKDIR} ${STAGEDIR}${JAVAJARDIR}/
${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>