diff options
author | rene <rene@FreeBSD.org> | 2013-03-08 16:34:49 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2013-03-08 16:34:49 +0800 |
commit | 0188277bd81dd3bc774fbc5e22e7fa907662adc5 (patch) | |
tree | 823e241784afe095e624a886768481b4d7ed9c9b /games/castlevox | |
parent | 7a68c74e4966c323969307a3e61188070311f441 (diff) | |
download | freebsd-ports-gnome-0188277bd81dd3bc774fbc5e22e7fa907662adc5.tar.gz freebsd-ports-gnome-0188277bd81dd3bc774fbc5e22e7fa907662adc5.tar.zst freebsd-ports-gnome-0188277bd81dd3bc774fbc5e22e7fa907662adc5.zip |
- Add desktop entry
- Convert to optionsNG
- Trim leading article from COMMENT
- Cleanups, overhaul installation
- Sort pkg-plist
- Bump PORTREVISION
PR: ports/172331
Submitted by: nemysis <nemysis@gmx.ch>
Approved by: maintainer timeout (months)
Diffstat (limited to 'games/castlevox')
-rw-r--r-- | games/castlevox/Makefile | 35 | ||||
-rw-r--r-- | games/castlevox/files/CastleVox.in | 8 | ||||
-rw-r--r-- | games/castlevox/pkg-plist | 16 |
3 files changed, 34 insertions, 25 deletions
diff --git a/games/castlevox/Makefile b/games/castlevox/Makefile index 3ad7ffb96053..60831b8ff3b9 100644 --- a/games/castlevox/Makefile +++ b/games/castlevox/Makefile @@ -1,32 +1,41 @@ -# Created by: Martin Otto -# +# Created by: Martin Otto # $FreeBSD$ PORTNAME= CastleVox PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= games java MASTER_SITES= http://sillysoft.net/download/ -DISTNAME= CastleVox-linux +DISTNAME= ${PORTNAME}-linux MAINTAINER= gamato@users.sf.net -COMMENT= A fast world domination game +COMMENT= Fast world domination game FETCH_ARGS= -Fpr USE_JAVA= yes JAVA_VERSION= 1.6+ +NO_BUILD= yes -WRKSRC= ${WRKDIR}/CastleVoxPC +WRKSRC= ${WRKDIR}/${PORTNAME}PC +PORTDOCS= README_Vox.txt DATADIR= ${JAVASHAREDIR}/${PORTNAME} -NO_BUILD= yes -SUB_FILES= CastleVox +SUB_FILES= ${PORTNAME} + +DESKTOP_ENTRIES="Castle Vox" "${COMMENT}" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "${PORTNAME}" "Game;StrategyGame;" false + +.include <bsd.port.options.mk> do-install: - @${MKDIR} ${DATADIR} - (cd ${WRKSRC}/ && ${COPYTREE_SHARE} \*.jar ${DATADIR}) - ${INSTALL_DATA} ${WRKSRC}/VoxIcon.png ${DATADIR} - (cd ${WRKSRC}/ && ${COPYTREE_SHARE} Support ${DATADIR}) - (cd ${WRKSRC}/ && ${COPYTREE_SHARE} docs ${DATADIR}) - ${INSTALL_SCRIPT} ${WRKDIR}/CastleVox ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "Support docs *.jar" ${DATADIR}) + ${INSTALL_DATA} ${WRKSRC}/VoxIcon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif .include <bsd.port.mk> diff --git a/games/castlevox/files/CastleVox.in b/games/castlevox/files/CastleVox.in index 0fa42a640750..b172a695b295 100644 --- a/games/castlevox/files/CastleVox.in +++ b/games/castlevox/files/CastleVox.in @@ -2,7 +2,7 @@ # # $FreeBSD$ -echo "Castle Vox: Starting up..." -cd "%%DATADIR%%" -JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" \ --Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/VoxCore.jar" "$@" +export JAVA_VERSION="%%JAVA_VERSION%%" + +cd "%%DATADIR%%" && exec "%%LOCALBASE%%/bin/java" \ +-Djava.ext.dirs="%%DATADIR%%" -jar "%%DATADIR%%/VoxCore.jar" "${@}" diff --git a/games/castlevox/pkg-plist b/games/castlevox/pkg-plist index 05f8095618a6..3ce8d9cd23f1 100644 --- a/games/castlevox/pkg-plist +++ b/games/castlevox/pkg-plist @@ -1,12 +1,4 @@ bin/CastleVox -%%DATADIR%%/VoxCore.jar -%%DATADIR%%/VoxIcon.png -%%DATADIR%%/jide-charts.jar -%%DATADIR%%/jide-common.jar -%%DATADIR%%/jogg-0.0.7.jar -%%DATADIR%%/jorbis-0.0.15.jar -%%DATADIR%%/tritonus_share.jar -%%DATADIR%%/vorbisspi1.0.3.jar %%DATADIR%%/Support/Maps/Hex Barons.voxb %%DATADIR%%/Support/Maps/Tutorial Map.voxb %%DATADIR%%/Support/Maps/World War II.voxb @@ -43,6 +35,7 @@ bin/CastleVox %%DATADIR%%/Support/Themes/Tutorial Map/updater3.txt %%DATADIR%%/Support/Themes/Tutorial Map/updater4.txt %%DATADIR%%/Support/Themes/Tutorial Map/updater5.txt +%%DATADIR%%/VoxCore.jar %%DATADIR%%/docs/Castle_Vox_Instructions.html %%DATADIR%%/docs/Castle_Vox_Shortcuts.html %%DATADIR%%/docs/Castle_Vox_Version_History.html @@ -63,6 +56,13 @@ bin/CastleVox %%DATADIR%%/docs/docs_files/prefs.png %%DATADIR%%/docs/docs_files/recruit.png %%DATADIR%%/docs/docs_files/teammate.png +%%DATADIR%%/jide-charts.jar +%%DATADIR%%/jide-common.jar +%%DATADIR%%/jogg-0.0.7.jar +%%DATADIR%%/jorbis-0.0.15.jar +%%DATADIR%%/tritonus_share.jar +%%DATADIR%%/vorbisspi1.0.3.jar +share/pixmaps/CastleVox.png @dirrm %%DATADIR%%/docs/docs_files @dirrm %%DATADIR%%/docs @dirrm %%DATADIR%%/Support/Themes/Tutorial Map |