freebsd-ports/astro/openmap/Makefile
Mark Linimon 06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00

55 lines
1.6 KiB
Makefile

# New ports collection makefile for: openmap
# Date created: 2005-07-30
# Whom: des
#
# $FreeBSD$
#
PORTNAME= openmap
PORTVERSION= 4.6.4
CATEGORIES= astro java devel graphics geography
MASTER_SITES= http://openmap.bbn.com/src/
MAINTAINER= des@FreeBSD.org
COMMENT= Java toolkit for manipulating and displaying geographic data
RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
USE_JAVA= yes
JAVA_VERSION= 1.5+
PKGMESSAGE= ${WRKSRC}/LICENSE
USE_ANT= yes
MAKE_ARGS+= -Dopenmap.home=${WRKSRC} \
-Didl2java.compiler=${JAVA_HOME}/bin/idlj
SUB_FILES= openmap.sh
do-configure:
(cd ${WRKSRC} && ${FIND} . -type f -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's,/usr/local/openmap,${DATADIR},g')
(cd ${WRKSRC} && ${FIND} . -type f -name \*.bak -delete)
do-install:
(cd ${WRKSRC}/lib && \
${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} *.jar ${JAVAJARDIR})
${MKDIR} ${DATADIR}
(cd ${WRKSRC}/share && ${FIND} . -type f -print | \
${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${DATADIR})
${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0555
${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0444
${INSTALL_SCRIPT} -o ${BINOWN} -g ${BINGRP} \
${WRKDIR}/openmap.sh ${PREFIX}/bin/openmap
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} -o ${SHAREOWN} -g ${SHAREGRP} \
AUTHORS LICENSE README ${DOCSDIR})
.if !defined(NOPORTDOCS)
(cd ${WRKSRC}/doc && ${FIND} . -type f -print | \
${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0555
${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0444
.endif
.include <bsd.port.mk>