- Update to bsd.java.mk 2.0
- Use USE_ANT - Use SUB_FILES to configure launcher shell script - Use javavmwrapper in launcher shell script - Bumped PORTREVISION to let users take advantage of javavmwrapper - Use %%JAVAJARDIR%% in pkg-plist PR: 97684 Submitted by: hq Approved by: maintainer
This commit is contained in:
parent
292924ef4d
commit
785d56e4e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163172
4 changed files with 23 additions and 27 deletions
|
@ -7,35 +7,30 @@
|
|||
|
||||
PORTNAME= openmap
|
||||
PORTVERSION= 4.6.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= astro java devel graphics
|
||||
MASTER_SITES= http://openmap.bbn.com/src/
|
||||
|
||||
MAINTAINER= des@FreeBSD.org
|
||||
COMMENT= Java toolkit for manipulating and displaying geographic data
|
||||
|
||||
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant
|
||||
RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
|
||||
|
||||
USE_JAVA= 1.4+
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.4+
|
||||
|
||||
PKGMESSAGE= ${WRKSRC}/LICENSE
|
||||
|
||||
ANT_PROPERTIES= openmap.home=${WRKSRC} \
|
||||
idl2java.compiler=${JAVA_HOME}/bin/idlj
|
||||
ANT_CMD= ${LOCALBASE}/bin/ant ${ANT_PROPERTIES:C/^/-D/}
|
||||
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)
|
||||
${SED} \
|
||||
-e 's,%%CLASSPATH%%,${LOCALBASE}/bin/classpath,' \
|
||||
-e 's,%%JAVAVM%%,${LOCALBASE}/bin/java,' \
|
||||
-e 's,%%DATADIR%%,${DATADIR},' \
|
||||
<${FILESDIR}/openmap.sh >${WRKDIR}/openmap.sh
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && ${ANT_CMD})
|
||||
|
||||
do-install:
|
||||
(cd ${WRKSRC}/lib && \
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
cd %%DATADIR%%
|
||||
exec %%JAVAVM%% \
|
||||
-classpath $(%%CLASSPATH%%) \
|
||||
com.bbn.openmap.app.OpenMap "%@"
|
10
astro/openmap/files/openmap.sh.in
Normal file
10
astro/openmap/files/openmap.sh.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
cd "%%DATADIR%%"
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" \
|
||||
exec "%%LOCALBASE%%/bin/java" \
|
||||
-classpath $(%%LOCALBASE%%/bin/classpath) \
|
||||
com.bbn.openmap.app.OpenMap "%@"
|
|
@ -2639,11 +2639,11 @@
|
|||
%%PORTDOCS%%%%DOCSDIR%%/user-guide-4.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/user-guide.html
|
||||
bin/openmap
|
||||
share/java/classes/milStd2525_png.jar
|
||||
share/java/classes/omcorba.jar
|
||||
share/java/classes/omj3d.jar
|
||||
share/java/classes/omsvg.jar
|
||||
share/java/classes/openmap.jar
|
||||
%%JAVAJARDIR%%/milStd2525_png.jar
|
||||
%%JAVAJARDIR%%/omcorba.jar
|
||||
%%JAVAJARDIR%%/omj3d.jar
|
||||
%%JAVAJARDIR%%/omsvg.jar
|
||||
%%JAVAJARDIR%%/openmap.jar
|
||||
@dirrm %%DATADIR%%/data/shape/cntry02
|
||||
@dirrm %%DATADIR%%/data/shape
|
||||
@dirrm %%DATADIR%%/data
|
||||
|
|
Loading…
Reference in a new issue