2009-02-24 21:56:43 +01:00
|
|
|
# New ports collection makefile for: josm
|
|
|
|
# Date created: 2009/02/24
|
|
|
|
# Whom: Gleb Smirnoff <glebius@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= josm
|
2011-10-04 15:58:52 +02:00
|
|
|
PORTVERSION= 4487
|
2009-02-24 21:56:43 +01:00
|
|
|
CATEGORIES= astro java
|
2009-03-19 15:46:42 +01:00
|
|
|
MASTER_SITES= http://josm.openstreetmap.de/download/:josm \
|
2011-01-12 03:09:55 +01:00
|
|
|
http://mirror.amdmi3.ru/distfiles/:josm \
|
|
|
|
http://mirror.amdmi3.ru/distfiles/:wmsplugin
|
2009-03-19 15:46:42 +01:00
|
|
|
DISTNAME= ${PORTNAME}-snapshot-${PORTVERSION}.jar
|
|
|
|
DISTFILES= ${DISTNAME}:josm ${WEBKITIMG_SRC}:wmsplugin
|
2009-12-16 14:06:56 +01:00
|
|
|
EXTRACT_ONLY= # empty
|
2009-02-24 21:56:43 +01:00
|
|
|
|
2010-12-05 22:25:05 +01:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2009-02-24 21:56:43 +01:00
|
|
|
COMMENT= A comprehensive editor for OpenStreetMap.org database
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
2009-03-19 15:46:42 +01:00
|
|
|
|
2009-02-24 21:56:43 +01:00
|
|
|
USE_JAVA= YES
|
|
|
|
JAVA_VERSION= 1.5+
|
|
|
|
|
|
|
|
SUB_FILES= josm.sh
|
2009-03-19 15:46:42 +01:00
|
|
|
SUB_LIST= JARNAME=${DISTNAME}
|
|
|
|
|
|
|
|
WEBKITIMG= webkit-image
|
|
|
|
WEBKITIMG_SRC= ${WEBKITIMG}.cpp
|
|
|
|
|
2011-07-27 03:53:42 +02:00
|
|
|
PLIST_FILES= bin/josm ${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME}
|
|
|
|
|
2011-10-04 15:58:52 +02:00
|
|
|
OPTIONS= WEBKIT_IMAGE "Build webkit-image (needed for Yahoo imagery)" off
|
2011-07-27 03:53:42 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_WEBKIT_IMAGE)
|
|
|
|
PLIST_FILES+= bin/webkit-image
|
|
|
|
|
|
|
|
USE_QT_VER= 4
|
2011-08-11 18:07:47 +02:00
|
|
|
QT_COMPONENTS= corelib gui webkit moc_build
|
2009-02-24 21:56:43 +01:00
|
|
|
|
2009-03-19 15:46:42 +01:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2011-01-12 03:09:55 +01:00
|
|
|
${MOC} ${DISTDIR}/${WEBKITIMG_SRC} > ${WEBKITIMG}.h && \
|
|
|
|
${CXX} ${CFLAGS} ${PTHREAD_LIBS} -I. -I${QT_INCDIR} -L${QT_LIBDIR} \
|
|
|
|
${DISTDIR}/${WEBKITIMG_SRC} -o ${WEBKITIMG} -lQtCore -lQtWebKit \
|
|
|
|
-lQtGui
|
2011-07-27 03:53:42 +02:00
|
|
|
.else
|
2011-08-11 18:07:47 +02:00
|
|
|
# setting NO_BUILD here won't work
|
|
|
|
do-build:
|
|
|
|
@${DO_NADA}
|
2011-07-27 03:53:42 +02:00
|
|
|
.endif
|
2009-02-24 21:56:43 +01:00
|
|
|
|
|
|
|
do-install:
|
2011-01-12 03:09:55 +01:00
|
|
|
${MKDIR} ${JAVAJARDIR}/
|
2009-03-19 15:46:42 +01:00
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${JAVAJARDIR}/
|
2009-02-24 21:56:43 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/josm.sh ${PREFIX}/bin/josm
|
2011-07-27 03:53:42 +02:00
|
|
|
.if defined(WITH_WEBKIT_IMAGE)
|
2009-03-19 15:46:42 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${WEBKITIMG} ${PREFIX}/bin
|
2011-07-27 03:53:42 +02:00
|
|
|
.endif
|
2009-02-24 21:56:43 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|