mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- 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)
This commit is contained in:
parent
5617aba98d
commit
1f50f7f2b8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=313626
@ -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+
|
||||
|
||||
WRKSRC= ${WRKDIR}/CastleVoxPC
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
NO_BUILD= yes
|
||||
|
||||
SUB_FILES= CastleVox
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}PC
|
||||
PORTDOCS= README_Vox.txt
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
|
||||
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>
|
||||
|
@ -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" "${@}"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user