53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.14 2011/09/16 09:48:10 espie Exp $
|
|
|
|
COMMENT= OpenStreetMap map editor
|
|
|
|
SVN_REV= 3592
|
|
DISTNAME= josm-1.5.${SVN_REV}
|
|
REVISION= 1
|
|
|
|
PKG_ARCH= *
|
|
|
|
CATEGORIES= geo
|
|
|
|
HOMEPAGE= http://josm.openstreetmap.de/
|
|
MASTER_SITES= http://www.darwinsys.com/mirror/
|
|
|
|
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= java \
|
|
textproc/intltool
|
|
MODJAVA_VER= 1.6+
|
|
MODJAVA_BUILD= ant
|
|
MODJAVA_BUILD_ARGS= -Dant.build.javac.source="1.5" \
|
|
-Dant.build.javac.target="1.5"
|
|
MODJAVA_BUILD_TARGET= dist
|
|
MAKE_ENV+= JAVA_HOME=${JAVA_HOME}
|
|
|
|
BUILD_DEPENDS= devel/apache-ant
|
|
RUN_DEPENDS= java/javaPathHelper \
|
|
devel/desktop-file-utils
|
|
NO_REGRESS= Yes
|
|
|
|
INSTALL_DIR = josm
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/${INSTALL_DIR}
|
|
${INSTALL_DATA} $(WRKDIST)/dist/josm-custom.jar ${PREFIX}/share/${INSTALL_DIR}/josm-latest.jar
|
|
@${SUBST_CMD} -c files/josm.sh $(PREFIX)/bin/josm
|
|
chown ${BINOWN}:${BINGRP} $(PREFIX)/bin/josm
|
|
chmod +x $(PREFIX)/bin/josm
|
|
${INSTALL_MAN} $(FILESDIR)/josm.1 ${PREFIX}/man/man1/josm.1
|
|
${INSTALL_DATA} $(WRKDIST)/images/logo.png ${PREFIX}/share/${INSTALL_DIR}/osm_logo.png
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
@${SUBST_CMD} -c ${FILESDIR}/josm.desktop ${PREFIX}/share/applications/josm.desktop
|
|
chown ${SHAREOWN}:${SHAREGRP} $(PREFIX)/share/applications/josm.desktop
|
|
|
|
.include <bsd.port.mk>
|