diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-06-05 06:51:12 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-06-05 06:51:12 +0800 |
commit | a94588aa982b220e0a6f272de3b02ecbbb110b05 (patch) | |
tree | 5ae68d6ef7506253000a2858c398d8b9f06064cb /games | |
parent | 2a0af607f8f2a4cf6ebc7f0e694f45982809d738 (diff) | |
download | freebsd-ports-gnome-a94588aa982b220e0a6f272de3b02ecbbb110b05.tar.gz freebsd-ports-gnome-a94588aa982b220e0a6f272de3b02ecbbb110b05.tar.zst freebsd-ports-gnome-a94588aa982b220e0a6f272de3b02ecbbb110b05.zip |
games/warsow
- Bump PORTREVISION for dependency change
- Transfer maintainership to games@ team
- Remove dependency for games/warsow-data and MAKE_JOBS_UNSAFE
- Change PLIST_DIRS
- Add DOCS and Option
- Change desktop entry file
games/warsow-data
- Bump PORTREVISION for adding pkg-plist and for dependency change
- Mastersite disappeared, mirror on my FreeBSD LOCAL site
- Transfer maintainership to games@ team
- Add dependency for games/warsow
- Simplify installation handling
- Add pkg-plist
Diffstat (limited to 'games')
-rw-r--r-- | games/warsow-data/Makefile | 34 | ||||
-rw-r--r-- | games/warsow-data/pkg-plist | 189 | ||||
-rw-r--r-- | games/warsow/Makefile | 15 |
3 files changed, 219 insertions, 19 deletions
diff --git a/games/warsow-data/Makefile b/games/warsow-data/Makefile index 9e2741f521a5..ac763ed0b540 100644 --- a/games/warsow-data/Makefile +++ b/games/warsow-data/Makefile @@ -3,16 +3,19 @@ PORTNAME= data PORTVERSION= 1.5 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/warsow.mirror/Warsow%20${PORTVERSION} \ http://www.warsow.net:1337/~warsow/${PORTVERSION}/ \ - http://static.warsow.net/release/:mappack \ - http://rewq.de/scratch/wsw05/:mappack + LOCAL/nemysis/games:mappack + PKGNAMEPREFIX= warsow- DISTNAME= ${PKGNAMEPREFIX:S/-//}_${PORTVERSION:S/.//}_unified +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Warsow data files LICENSE= WARSOW GPLv2 @@ -21,6 +24,8 @@ LICENSE_NAME_WARSOW= Warsow Content License LICENSE_FILE_WARSOW= ${WRKSRC}/docs/license.txt LICENSE_PERMS_WARSOW= dist-mirror pkg-mirror auto-accept +RUN_DEPENDS= warsow:${PORTSDIR}/games/warsow + # Game port is restricted to these architectures, so it makes no sense to # package game data port as well (even it is not being technically built) ONLY_FOR_ARCHS= i386 amd64 @@ -30,22 +35,18 @@ NO_BUILD= yes DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//} DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//} -PORTDATA= basewsw -PORTDOCS= * +PORTDOCS= *.txt -OPTIONS_DEFINE= MAPPACK DOCS -#OPTIONS_DEFAULT= MAPPACK +OPTIONS_DEFINE= DOCS MAPPACK +OPTIONS_DEFAULT= MAPPACK MAPPACK_DESC= Install community map pack .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MMAPPACK} -BROKEN= Unfetchable -MAPPACK_FILE= warsow_comunity_map_pack_01.zip -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MAPPACK_FILE}:mappack -EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} +MAPPACK_FILE= warsow_comunity_map_pack_01.zip +DISTFILES+= ${MAPPACK_FILE}:mappack EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip -PORTDATA+= previews .endif post-extract: @@ -55,8 +56,13 @@ post-extract: do-install: @${MKDIR} ${STAGEDIR}${DATADIR} - cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} basewsw ${STAGEDIR}${DATADIR} + +.if ${PORT_OPTIONS:MMAPPACK} + cd ${WRKSRC} && ${COPYTREE_SHARE} previews ${STAGEDIR}${DATADIR} +.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} - cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/games/warsow-data/pkg-plist b/games/warsow-data/pkg-plist new file mode 100644 index 000000000000..085ef4d12c0f --- /dev/null +++ b/games/warsow-data/pkg-plist @@ -0,0 +1,189 @@ +%%DATADIR%%/basewsw/configs/server/gametypes/bomb.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/ca.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/ctf.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/ctftactics.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/da.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/dm.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/duel.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/ffa.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/headhunt.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/race.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/tdm.cfg +%%DATADIR%%/basewsw/configs/server/gametypes/tdo.cfg +%%DATADIR%%/basewsw/configs/timer/bs/0x.cfg +%%DATADIR%%/basewsw/configs/timer/bs/1x.cfg +%%DATADIR%%/basewsw/configs/timer/bs/2x.cfg +%%DATADIR%%/basewsw/configs/timer/bs/3x.cfg +%%DATADIR%%/basewsw/configs/timer/bs/4x.cfg +%%DATADIR%%/basewsw/configs/timer/bs/5x.cfg +%%DATADIR%%/basewsw/configs/timer/core.cfg +%%DATADIR%%/basewsw/configs/timer/quad/0x.cfg +%%DATADIR%%/basewsw/configs/timer/quad/1x.cfg +%%DATADIR%%/basewsw/configs/timer/quad/2x.cfg +%%DATADIR%%/basewsw/configs/timer/quad/3x.cfg +%%DATADIR%%/basewsw/configs/timer/quad/4x.cfg +%%DATADIR%%/basewsw/configs/timer/quad/5x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/0x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/1x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/2x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/3x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/4x.cfg +%%DATADIR%%/basewsw/configs/timer/ra/5x.cfg +%%DATADIR%%/basewsw/configs/timer/timerconfig.cfg +%%DATADIR%%/basewsw/configs/timer/ya/0x.cfg +%%DATADIR%%/basewsw/configs/timer/ya/1x.cfg +%%DATADIR%%/basewsw/configs/timer/ya/2x.cfg +%%DATADIR%%/basewsw/configs/timer/ya/3x.cfg +%%DATADIR%%/basewsw/configs/timer/ya/4x.cfg +%%DATADIR%%/basewsw/configs/timer/ya/5x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/0x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/1x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/2x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/3x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/4x.cfg +%%DATADIR%%/basewsw/configs/timer/ya2/5x.cfg +%%DATADIR%%/basewsw/cwCTF1.pk3 +%%DATADIR%%/basewsw/cwL1.pk3 +%%DATADIR%%/basewsw/cwL2.pk3 +%%DATADIR%%/basewsw/cwL3.pk3 +%%DATADIR%%/basewsw/cwL4.pk3 +%%DATADIR%%/basewsw/cwL5.pk3 +%%DATADIR%%/basewsw/cwM1.pk3 +%%DATADIR%%/basewsw/cwM2.pk3 +%%DATADIR%%/basewsw/cwM3.pk3 +%%DATADIR%%/basewsw/cwM4.pk3 +%%DATADIR%%/basewsw/cwM5.pk3 +%%DATADIR%%/basewsw/cwM6.pk3 +%%DATADIR%%/basewsw/cwM7.pk3 +%%DATADIR%%/basewsw/cwRACE1.pk3 +%%DATADIR%%/basewsw/cwRACE2.pk3 +%%DATADIR%%/basewsw/cwRACE3.pk3 +%%DATADIR%%/basewsw/cwRACE4.pk3 +%%DATADIR%%/basewsw/cwRACE5.pk3 +%%DATADIR%%/basewsw/cwS1.pk3 +%%DATADIR%%/basewsw/cwS2.pk3 +%%DATADIR%%/basewsw/cw_tex1.pk3 +%%DATADIR%%/basewsw/cw_tex2.pk3 +%%DATADIR%%/basewsw/data0_15.pk3 +%%DATADIR%%/basewsw/data0_15pure.pk3 +%%DATADIR%%/basewsw/dedicated_autoexec.cfg +%%DATADIR%%/basewsw/editortextures.pk3 +%%DATADIR%%/basewsw/map_cwBOMB1.pk3 +%%DATADIR%%/basewsw/map_ui.pk3 +%%DATADIR%%/basewsw/map_wamphi1.pk3 +%%DATADIR%%/basewsw/map_wbomb1.pk3 +%%DATADIR%%/basewsw/map_wbomb2.pk3 +%%DATADIR%%/basewsw/map_wbomb3.pk3 +%%DATADIR%%/basewsw/map_wbomb4.pk3 +%%DATADIR%%/basewsw/map_wbomb5.pk3 +%%DATADIR%%/basewsw/map_wbomb6.pk3 +%%DATADIR%%/basewsw/map_wca1.pk3 +%%DATADIR%%/basewsw/map_wca2.pk3 +%%DATADIR%%/basewsw/map_wctf1.pk3 +%%DATADIR%%/basewsw/map_wctf2.pk3 +%%DATADIR%%/basewsw/map_wctf3.pk3 +%%DATADIR%%/basewsw/map_wctf4.pk3 +%%DATADIR%%/basewsw/map_wctf6.pk3 +%%DATADIR%%/basewsw/map_wda1.pk3 +%%DATADIR%%/basewsw/map_wda2.pk3 +%%DATADIR%%/basewsw/map_wda3.pk3 +%%DATADIR%%/basewsw/map_wda4.pk3 +%%DATADIR%%/basewsw/map_wda5.pk3 +%%DATADIR%%/basewsw/map_wdm1.pk3 +%%DATADIR%%/basewsw/map_wdm10.pk3 +%%DATADIR%%/basewsw/map_wdm11.pk3 +%%DATADIR%%/basewsw/map_wdm12.pk3 +%%DATADIR%%/basewsw/map_wdm13.pk3 +%%DATADIR%%/basewsw/map_wdm14.pk3 +%%DATADIR%%/basewsw/map_wdm15.pk3 +%%DATADIR%%/basewsw/map_wdm16.pk3 +%%DATADIR%%/basewsw/map_wdm17.pk3 +%%DATADIR%%/basewsw/map_wdm18.pk3 +%%DATADIR%%/basewsw/map_wdm19.pk3 +%%DATADIR%%/basewsw/map_wdm2.pk3 +%%DATADIR%%/basewsw/map_wdm3.pk3 +%%DATADIR%%/basewsw/map_wdm4.pk3 +%%DATADIR%%/basewsw/map_wdm5.pk3 +%%DATADIR%%/basewsw/map_wdm6.pk3 +%%DATADIR%%/basewsw/map_wdm7.pk3 +%%DATADIR%%/basewsw/map_wdm9.pk3 +%%DATADIR%%/basewsw/map_wrace1.pk3 +%%DATADIR%%/basewsw/models_nate.pk3 +%%DATADIR%%/basewsw/modules_15.pk3 +%%DATADIR%%/basewsw/tex_36.pk3 +%%DATADIR%%/basewsw/tex_baxandall.pk3 +%%DATADIR%%/basewsw/tex_billboard.pk3 +%%DATADIR%%/basewsw/tex_blx.pk3 +%%DATADIR%%/basewsw/tex_blxbis.pk3 +%%DATADIR%%/basewsw/tex_boqu.pk3 +%%DATADIR%%/basewsw/tex_bricks.pk3 +%%DATADIR%%/basewsw/tex_cha0swsw.pk3 +%%DATADIR%%/basewsw/tex_cleansurface.pk3 +%%DATADIR%%/basewsw/tex_concrete.pk3 +%%DATADIR%%/basewsw/tex_concrete_techwalls.pk3 +%%DATADIR%%/basewsw/tex_decals.pk3 +%%DATADIR%%/basewsw/tex_env.pk3 +%%DATADIR%%/basewsw/tex_etr.pk3 +%%DATADIR%%/basewsw/tex_exwsw.pk3 +%%DATADIR%%/basewsw/tex_factory.pk3 +%%DATADIR%%/basewsw/tex_format.pk3 +%%DATADIR%%/basewsw/tex_glass.pk3 +%%DATADIR%%/basewsw/tex_grates.pk3 +%%DATADIR%%/basewsw/tex_hazelh.pk3 +%%DATADIR%%/basewsw/tex_hexagons.pk3 +%%DATADIR%%/basewsw/tex_jewels.pk3 +%%DATADIR%%/basewsw/tex_lights.pk3 +%%DATADIR%%/basewsw/tex_melee.pk3 +%%DATADIR%%/basewsw/tex_metal.pk3 +%%DATADIR%%/basewsw/tex_nature.pk3 +%%DATADIR%%/basewsw/tex_neon.pk3 +%%DATADIR%%/basewsw/tex_noir.pk3 +%%DATADIR%%/basewsw/tex_plastic.pk3 +%%DATADIR%%/basewsw/tex_refly.pk3 +%%DATADIR%%/basewsw/tex_russus.pk3 +%%DATADIR%%/basewsw/tex_scifi_interior.pk3 +%%DATADIR%%/basewsw/tex_sky.pk3 +%%DATADIR%%/basewsw/tex_solidfake.pk3 +%%DATADIR%%/basewsw/tex_supersymmetry.pk3 +%%DATADIR%%/basewsw/tex_terrain.pk3 +%%DATADIR%%/basewsw/tex_tiles.pk3 +%%DATADIR%%/basewsw/tex_window.pk3 +%%DATADIR%%/basewsw/tex_wood.pk3 +%%DATADIR%%/basewsw/tex_wrace1.pk3 +%%DATADIR%%/basewsw/tex_wsw_cave1.pk3 +%%DATADIR%%/basewsw/tex_wsw_city1.pk3 +%%DATADIR%%/basewsw/tex_wsw_flareshalos.pk3 +%%DATADIR%%/basewsw/tex_zone_neutre.pk3 +%%DATADIR%%/basewsw/tvserver_autoexec.cfg +%%DATADIR%%/basewsw/ui_porkui.pk3 +%%DATADIR%%/previews/cwBOMB1.jpg +%%DATADIR%%/previews/cwCTF1.jpg +%%DATADIR%%/previews/cwL1.jpg +%%DATADIR%%/previews/cwL2.jpg +%%DATADIR%%/previews/cwL3.jpg +%%DATADIR%%/previews/cwL4.jpg +%%DATADIR%%/previews/cwL5.jpg +%%DATADIR%%/previews/cwM1.jpg +%%DATADIR%%/previews/cwM2.jpg +%%DATADIR%%/previews/cwM3.jpg +%%DATADIR%%/previews/cwM4.jpg +%%DATADIR%%/previews/cwM5.jpg +%%DATADIR%%/previews/cwM6.jpg +%%DATADIR%%/previews/cwM7.jpg +%%DATADIR%%/previews/cwRACE1.jpg +%%DATADIR%%/previews/cwRACE2.jpg +%%DATADIR%%/previews/cwRACE3.jpg +%%DATADIR%%/previews/cwRACE4.jpg +%%DATADIR%%/previews/cwRACE5.jpg +%%DATADIR%%/previews/cwS1.jpg +%%DATADIR%%/previews/cwS2.jpg +@dirrmtry %%DATADIR%%/basewsw/configs/server/gametypes +@dirrmtry %%DATADIR%%/basewsw/configs/server +@dirrmtry %%DATADIR%%/basewsw/configs/timer/bs +@dirrmtry %%DATADIR%%/basewsw/configs/timer/quad +@dirrmtry %%DATADIR%%/basewsw/configs/timer/ra +@dirrmtry %%DATADIR%%/basewsw/configs/timer/ya +@dirrmtry %%DATADIR%%/basewsw/configs/timer/ya2 +@dirrmtry %%DATADIR%%/basewsw/configs/timer +@dirrmtry %%DATADIR%%/basewsw/configs +@dirrmtry %%DATADIR%%/previews diff --git a/games/warsow/Makefile b/games/warsow/Makefile index b43a4e596569..83c2c9be8a11 100644 --- a/games/warsow/Makefile +++ b/games/warsow/Makefile @@ -3,22 +3,21 @@ PORTNAME= warsow PORTVERSION= 1.5 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/warsow.mirror/Warsow%20${PORTVERSION} \ http://www.warsow.net:1337/~warsow/${PORTVERSION}/ DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//}_sdk DIST_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= games@FreeBSD.org COMMENT= Futuristic, fast-paced first person shooter LICENSE= GPLv2 LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl -RUN_DEPENDS= ${DATADIR}/basewsw/data0_15.pk3:${PORTSDIR}/games/warsow-data ONLY_FOR_ARCHS= i386 amd64 -MAKE_JOBS_UNSAFE=yes USES= gmake @@ -29,7 +28,7 @@ AS_SDK_DIR= ${WRKSRC}/../libsrcs/angelscript/sdk PLIST_FILES= %%DATADIR%%/basewsw/game_${ARCH}.so \ %%DATADIR%%/libs/angelwrap_${ARCH}.so -PLIST_DIRS= %%DATADIR%%/libs +PLIST_DIRS= %%DATADIR%%/basewsw %%DATADIR%%/libs %%DATADIR%% OPTIONS_DEFINE= CLIENT SERVER FTLIB REF_GL QF OPENAL IRC CIN TV_SRV OPTIONS_DEFAULT= CLIENT SERVER FTLIB REF_GL QF OPENAL IRC CIN TV_SRV @@ -44,6 +43,9 @@ IRC_DESC= Build IRC client module CIN_DESC= Build Cinematics playback module TV_SRV_DESC= Build Warsow TV server +PORTDOCS= *.rtf *.doc sourcecode_quickstart.txt +OPTIONS_DEFINE= DOCS + .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MCLIENT} @@ -56,7 +58,7 @@ PLIST_FILES+= bin/warsow %%DATADIR%%/basewsw/cgame_${ARCH}.so \ DESKTOP_ENTRIES="Warsow" "${COMMENT}" \ "${PREFIX}/share/pixmaps/warsow128x128.xpm" "${PORTNAME}" \ - "Game;" false + "Game;Shooter;" "" . if ${PORT_OPTIONS:MFTLIB} || ${PORT_OPTIONS:MREF_GL} LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png @@ -142,4 +144,7 @@ do-install: ${STAGEDIR}${PREFIX}/share/pixmaps .endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../../docs/|} ${STAGEDIR}${DOCSDIR} + .include <bsd.port.mk> |