aboutsummaryrefslogtreecommitdiff
path: root/astro/josm
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2011-07-27 01:53:42 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2011-07-27 01:53:42 +0000
commitb0659b3ce0dfe9537777aa70b3e5f9253e42e096 (patch)
tree3ae8e798804564a9f7398fd7fbd5090dd1e39360 /astro/josm
parent18954bb085364608e1446657bfab404d4c1eb898 (diff)
downloadports-b0659b3ce0dfe9537777aa70b3e5f9253e42e096.tar.gz
ports-b0659b3ce0dfe9537777aa70b3e5f9253e42e096.zip
Notes
Diffstat (limited to 'astro/josm')
-rw-r--r--astro/josm/Makefile25
-rw-r--r--astro/josm/distinfo4
2 files changed, 20 insertions, 9 deletions
diff --git a/astro/josm/Makefile b/astro/josm/Makefile
index 0cce26356b45..e13d3f76d5e9 100644
--- a/astro/josm/Makefile
+++ b/astro/josm/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= josm
-PORTVERSION= 4064
+PORTVERSION= 4223
CATEGORIES= astro java
MASTER_SITES= http://josm.openstreetmap.de/download/:josm \
http://mirror.amdmi3.ru/distfiles/:josm \
@@ -20,10 +20,6 @@ COMMENT= A comprehensive editor for OpenStreetMap.org database
NO_WRKSUBDIR= yes
-USE_QT_VER= 4
-QT_COMPONENTS= corelib gui imageformats moc_build network script \
- rcc_build uic_build webkit
-
USE_JAVA= YES
JAVA_VERSION= 1.5+
@@ -33,8 +29,18 @@ SUB_LIST= JARNAME=${DISTNAME}
WEBKITIMG= webkit-image
WEBKITIMG_SRC= ${WEBKITIMG}.cpp
-PLIST_FILES= bin/josm ${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME} \
- bin/webkit-image
+PLIST_FILES= bin/josm ${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME}
+
+OPTIONS= WEBKIT_IMAGE "Build webkit-image (needed for Yahoo imagery)" on
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_WEBKIT_IMAGE)
+PLIST_FILES+= bin/webkit-image
+
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui imageformats moc_build network script \
+ rcc_build uic_build webkit
do-build:
cd ${WRKSRC} && \
@@ -42,11 +48,16 @@ do-build:
${CXX} ${CFLAGS} ${PTHREAD_LIBS} -I. -I${QT_INCDIR} -L${QT_LIBDIR} \
${DISTDIR}/${WEBKITIMG_SRC} -o ${WEBKITIMG} -lQtCore -lQtWebKit \
-lQtGui
+.else
+NO_BUILD= yes
+.endif
do-install:
${MKDIR} ${JAVAJARDIR}/
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/
${INSTALL_SCRIPT} ${WRKDIR}/josm.sh ${PREFIX}/bin/josm
+.if defined(WITH_WEBKIT_IMAGE)
${INSTALL_PROGRAM} ${WRKDIR}/${WEBKITIMG} ${PREFIX}/bin
+.endif
.include <bsd.port.mk>
diff --git a/astro/josm/distinfo b/astro/josm/distinfo
index dc078dfd9d79..ad0001bd2598 100644
--- a/astro/josm/distinfo
+++ b/astro/josm/distinfo
@@ -1,4 +1,4 @@
-SHA256 (josm-snapshot-4064.jar) = 09fb7b2fd203cba3730f13104d21a2ddce3a3ae6a1dc54251c8ae2d18ea36357
-SIZE (josm-snapshot-4064.jar) = 6710490
+SHA256 (josm-snapshot-4223.jar) = c90c53734c0265814eaf1a75de0faafa3db670a493261c4dfca87badca0b8f80
+SIZE (josm-snapshot-4223.jar) = 6456517
SHA256 (webkit-image.cpp) = 431f5b956c0e3d1615289dd6cb64effb988b30ace7c80f5a51f9546aa80d300d
SIZE (webkit-image.cpp) = 2718