diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-09-20 03:36:59 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-09-20 03:36:59 +0000 |
commit | aebb0f60e985ba6ded65c21718bdfbe844a9c59d (patch) | |
tree | ca6fe901c871a58cc797477ca7770f9467757f99 /graphics/mapyrus | |
parent | ffb2ab569dbec2264b32db9181cfbf2aea6372a1 (diff) | |
download | ports-aebb0f60e985ba6ded65c21718bdfbe844a9c59d.tar.gz ports-aebb0f60e985ba6ded65c21718bdfbe844a9c59d.zip |
Notes
Diffstat (limited to 'graphics/mapyrus')
-rw-r--r-- | graphics/mapyrus/Makefile | 2 | ||||
-rw-r--r-- | graphics/mapyrus/distinfo | 6 | ||||
-rw-r--r-- | graphics/mapyrus/files/mapyrus.in | 7 | ||||
-rw-r--r-- | graphics/mapyrus/files/pkg-message.in | 3 |
4 files changed, 13 insertions, 5 deletions
diff --git a/graphics/mapyrus/Makefile b/graphics/mapyrus/Makefile index 378897cb385f..f7d70a7de65b 100644 --- a/graphics/mapyrus/Makefile +++ b/graphics/mapyrus/Makefile @@ -6,7 +6,7 @@ # PORTNAME= mapyrus -PORTVERSION= 0.608 +PORTVERSION= 0.609 CATEGORIES= graphics print java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/graphics/mapyrus/distinfo b/graphics/mapyrus/distinfo index 898bba6001b6..49542a03dd59 100644 --- a/graphics/mapyrus/distinfo +++ b/graphics/mapyrus/distinfo @@ -1,3 +1,3 @@ -MD5 (mapyrus-0.608.zip) = 0cf2997860a39e35071ed3aa8ba72fc0 -SHA256 (mapyrus-0.608.zip) = 14143970c0271a85f2249b7b52918532cbad4dd0f248d6ef957d2ae9b6e7d94a -SIZE (mapyrus-0.608.zip) = 1464625 +MD5 (mapyrus-0.609.zip) = e24d83c9db2fcb2c6cc6cde9caabf002 +SHA256 (mapyrus-0.609.zip) = 1a584ec501eaae852191f830f9566ee0a7200339f3686a8ec230050affa10fe7 +SIZE (mapyrus-0.609.zip) = 1468010 diff --git a/graphics/mapyrus/files/mapyrus.in b/graphics/mapyrus/files/mapyrus.in index da1a60f328ff..760817eabe27 100644 --- a/graphics/mapyrus/files/mapyrus.in +++ b/graphics/mapyrus/files/mapyrus.in @@ -1,4 +1,9 @@ #!/bin/sh # $FreeBSD$ +if [ -z "${DISPLAY}" ]; then + JAVA_AWT_HEADLESS="-Djava.awt.headless=true" +else + JAVA_AWT_HEADLESS="" +fi JAVA_VERSION="%%JAVA_VERSION%%" \ - exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/%%MAPYRUSJAR%%" "$@" + exec "%%LOCALBASE%%/bin/java" "${JAVA_AWT_HEADLESS}" -jar "%%DATADIR%%/%%MAPYRUSJAR%%" "$@" diff --git a/graphics/mapyrus/files/pkg-message.in b/graphics/mapyrus/files/pkg-message.in index 0c3c693dfb57..4d41d677f4d3 100644 --- a/graphics/mapyrus/files/pkg-message.in +++ b/graphics/mapyrus/files/pkg-message.in @@ -4,6 +4,9 @@ java -classpath %%DATADIR%%/%%MAPYRUSJAR%% org.mapyrus.Mapyrus myfile.mapyrus +(If a real X-Windows display is not available, use the +-Djava.awt.headless=true startup variable). + or simply: mapyrus myfile.mapyrus |