Index: head/games/worldofpadman/Makefile =================================================================== --- head/games/worldofpadman/Makefile (revision 352065) +++ head/games/worldofpadman/Makefile (revision 352066) @@ -1,164 +1,152 @@ # Created by: Alejandro Pulver # $FreeBSD$ PORTNAME= worldofpadman PORTVERSION= 1.2.20080621 PORTREVISION= 10 CATEGORIES= games MASTER_SITES= ftp://ftp.snt.utwente.nl/pub/games/worldofpadman/linux/:full,update \ ${MASTER_SITE_LOCAL:S|$|alepulver/:source|} DISTFILES= worldofpadman.run:full \ wop_patch_1_2.run:update \ ${SRC_FILE}.tar.bz2:source EXTRACT_ONLY= worldofpadman.run \ wop_patch_1_2.run MAINTAINER= ports@FreeBSD.org COMMENT= Open source FPS game inspired by the Padman comic strip NO_PACKAGE= package will be ~600MB; set FORCE_PACKAGE if you really want it USES= gmake makeself MAKE_ENV= DEFAULT_BASEDIR="${DATADIR}" PTHREAD_LIBS="${PTHREAD_LIBS}" ALL_TARGET= release SRC_FILE= ${PORTNAME}-${PORTVERSION} VM_ARCHS= amd64 i386 powerpc OPTIONS_DEFINE= CURL CURL_DLOPEN GAMELIBS MP3 OPENAL OPENAL_DLOPEN \ OPTIMIZED_CFLAGS VORBIS OPTIONS_MULTI= FLAVOR OPTIONS_MULTI_FLAVOR= CLIENT SERVER SMP_CLIENT OPTIONS_DEFAULT= CLIENT CURL CURL_DLOPEN SERVER OPTIMIZED_CFLAGS \ VORBIS SMP_CLIENT +OPTIONS_SUB= yes FLAVOR_DESC= Clients and servers CLIENT_DESC= Build client CURL_DLOPEN_DESC= Enable dynamic loading of cURL SERVER_DESC= Build dedicated server GAMELIBS_DESC= Force building game libraries OPENAL_DLOPEN_DESC= Enable dynamic loading of OpenAL SMP_CLIENT_DESC= Build SMP (threaded) client -NO_STAGE= yes .include .for arch in ${ARCH} . if ${VM_ARCHS:M${arch}} != "" HAVE_VM_COMPILED= yes . endif .endfor .if defined(HAVE_VM_COMPILED) MAKE_ENV+= HAVE_VM_COMPILED=true .endif .if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSMP_CLIENT} # cURL . if ${PORT_OPTIONS:MCURL} LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl MAKE_ENV+= USE_CURL=1 . if ${PORT_OPTIONS:MCURL_DLOPEN} MAKE_ENV+= USE_CURL_DLOPEN=1 . endif . endif # OpenAL . if ${PORT_OPTIONS:MOPENAL} USES+= openal:al MAKE_ENV+= USE_OPENAL=1 . if ${PORT_OPTIONS:MOPENAL_DLOPEN} MAKE_ENV+= USE_OPENAL_DLOPEN=1 . endif . endif # SDL USE_GL= glu USE_SDL= sdl # Vorbis . if ${PORT_OPTIONS:MVORBIS} LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis MAKE_ENV+= USE_CODEC_VORBIS=1 . endif .endif .if ${PORT_OPTIONS:MCLIENT} MAKE_ENV+= BUILD_CLIENT=1 -PLIST_SUB+= CLIENT="" WOPBIN+= wop -.else -PLIST_SUB+= CLIENT="@comment " .endif .if ${PORT_OPTIONS:MSERVER} MAKE_ENV+= BUILD_SERVER=1 -PLIST_SUB+= SERVER="" WOPBIN+= wopded -.else -PLIST_SUB+= SERVER="@comment " .endif .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) MAKE_ENV+= BUILD_GAME_SO=1 -PLIST_SUB+= GAMELIBS="" -.else -PLIST_SUB+= GAMELIBS="@comment " .endif .if ${PORT_OPTIONS:MMP3} LIB_DEPENDS+= libmad.so:${PORTSDIR}/audio/libmad MAKE_ENV+= USE_CODEC_MP3=1 .endif .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} MAKE_ENV+= USE_OPTIMIZED_CFLAGS=1 .endif .if ${PORT_OPTIONS:MSMP_CLIENT} MAKE_ENV+= BUILD_CLIENT_SMP=1 -PLIST_SUB+= SMPCLIENT="" WOPBIN+= wop-smp -.else -PLIST_SUB+= SMPCLIENT="@comment " .endif post-extract: @${TAR} jxf ${DISTDIR}/${SRC_FILE}.tar.bz2 -C ${WRKDIR} @${MKDIR} ${WRKDIR}/wop .for f in wop-data wop-data-1.2 extras @cd ${WRKDIR} && ${TAR} xf ${f}.tar -C wop .endfor @cd ${WRKDIR} && ${TAR} xf readme.tar post-patch: # Do not log debug output of bots (can be enabled with "homedir"/"gamedir") @${REINPLACE_CMD} -e 's|"botlib\.log"|"/dev/null"|' \ ${WRKSRC}/code/botlib/be_interface.c + @${REINPLACE_CMD} '/callMask/ s|static||' \ + ${WRKSRC}/code/qcommon/vm_x86.c do-install: - @${MKDIR} ${DATADIR}/wop - ${CP} -a ${WRKDIR}/wop/* ${DATADIR}/wop + @${MKDIR} ${STAGEDIR}${DATADIR}/wop + ${CP} -a ${WRKDIR}/wop/* ${STAGEDIR}${DATADIR}/wop ${INSTALL_DATA} ${WRKDIR}/wop.png \ - ${PREFIX}/share/pixmaps/${PORTNAME}.png + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png .for bin in ${WOPBIN} # Rename wop* -> worldofpadman* to avoid conflicts with `games/wop' ${INSTALL_PROGRAM} ${WRKSRC}/build/release/${bin} \ - ${PREFIX}/bin/${bin:S/wop/${PORTNAME}/} + ${STAGEDIR}${PREFIX}/bin/${bin:S/wop/${PORTNAME}/} .endfor .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) - ${INSTALL_PROGRAM} ${WRKSRC}/build/release/baseq3/*.so ${DATADIR}/wop + ${INSTALL_PROGRAM} ${WRKSRC}/build/release/baseq3/*.so \ + ${STAGEDIR}${DATADIR}/wop .endif -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${CP} -a ${WRKDIR}/readme/* ${DOCSDIR} -.endif - @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${CP} -a ${WRKDIR}/readme/* ${STAGEDIR}${DOCSDIR} generate-distfile: @if [ -f ${DISTDIR}/${SRC_FILE}.tar.bz2 ]; then \ ${ECHO_CMD} "ERROR: the distfile already exists."; \ ${FALSE}; \ fi svn export https://wop-engine.svn.sourceforge.net/svnroot/wop-engine/trunk ${SRC_FILE} tar cjf ${DISTDIR}/${SRC_FILE}.tar.bz2 ${SRC_FILE} ${RM} -rf ${SRC_FILE} .include Index: head/games/worldofpadman/pkg-plist =================================================================== --- head/games/worldofpadman/pkg-plist (revision 352065) +++ head/games/worldofpadman/pkg-plist (revision 352066) @@ -1,101 +1,101 @@ %%CLIENT%%bin/worldofpadman -%%SMPCLIENT%%bin/worldofpadman-smp +%%SMP_CLIENT%%bin/worldofpadman-smp %%SERVER%%bin/worldofpadmanded %%PORTDOCS%%%%DOCSDIR%%/banner.html %%PORTDOCS%%%%DOCSDIR%%/copyright_de.html %%PORTDOCS%%%%DOCSDIR%%/copyright_en.html %%PORTDOCS%%%%DOCSDIR%%/credits_de.html %%PORTDOCS%%%%DOCSDIR%%/credits_en.html %%PORTDOCS%%%%DOCSDIR%%/hud_de.html %%PORTDOCS%%%%DOCSDIR%%/hud_en.html %%PORTDOCS%%%%DOCSDIR%%/index_de.html %%PORTDOCS%%%%DOCSDIR%%/index_en.html %%PORTDOCS%%%%DOCSDIR%%/main_de.html %%PORTDOCS%%%%DOCSDIR%%/main_en.html %%PORTDOCS%%%%DOCSDIR%%/menu_de.html %%PORTDOCS%%%%DOCSDIR%%/menu_en.html %%PORTDOCS%%%%DOCSDIR%%/modes_de.html %%PORTDOCS%%%%DOCSDIR%%/modes_en.html %%PORTDOCS%%%%DOCSDIR%%/navigation_de.html %%PORTDOCS%%%%DOCSDIR%%/navigation_en.html %%PORTDOCS%%%%DOCSDIR%%/pictures/dvd_thumb.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/english.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/german.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/hud/centerhud.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/hud/lefthud.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/hud/righthudbb.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/hud/righthudsyc.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/bot_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/callvote.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/main_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/musik.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/options_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/player_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/menu/server_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/misc/balloon.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/misc/health.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/misc/server_hud_kl.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/misc/teleporter.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/floater.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/health.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/jumper.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/killerducks.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/padpower.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/puppetmaster.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/revival.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/shard.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/shield.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/speedy.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/teleporter.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/powerups/visionless.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/readme01.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/readme02.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/readme03.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/readme04.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/readme05.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/readme_back.png %%PORTDOCS%%%%DOCSDIR%%/pictures/readme_header.gif %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/balloony.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/betty.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/boaster.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/bubbleg.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/imperius.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/nipper.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/pumper.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/punchy.jpg %%PORTDOCS%%%%DOCSDIR%%/pictures/weapons/splasher.jpg %%PORTDOCS%%%%DOCSDIR%%/powerups_de.html %%PORTDOCS%%%%DOCSDIR%%/powerups_en.html %%PORTDOCS%%%%DOCSDIR%%/readme.css %%PORTDOCS%%%%DOCSDIR%%/start_de.html %%PORTDOCS%%%%DOCSDIR%%/start_en.html %%PORTDOCS%%%%DOCSDIR%%/weapons_de.html %%PORTDOCS%%%%DOCSDIR%%/weapons_en.html share/pixmaps/worldofpadman.png %%DATADIR%%/wop/server-allgametypes.cfg %%DATADIR%%/wop/server-bigballoon.cfg %%DATADIR%%/wop/server-lastpadstanding.cfg %%DATADIR%%/wop/server-sprayyourcolour.cfg %%DATADIR%%/wop/server-wop_kickchat.cfg %%DATADIR%%/wop/server-wop_padpack.cfg %%DATADIR%%/wop/wop_001.pk3 %%DATADIR%%/wop/wop_002.pk3 %%DATADIR%%/wop/wop_003.pk3 %%DATADIR%%/wop/wop_004.pk3 %%DATADIR%%/wop/wop_005.pk3 %%DATADIR%%/wop/wop_006.pk3 %%DATADIR%%/wop/wop_padpack02.pk3 %%DATADIR%%/wop/wop_vms.pk3 %%DATADIR%%/wop/wop_vms12.pk3 %%GAMELIBS%%%%DATADIR%%/wop/cgame.so %%GAMELIBS%%%%DATADIR%%/wop/qagame.so %%GAMELIBS%%%%DATADIR%%/wop/ui.so @dirrm %%DATADIR%%/wop @dirrm %%DATADIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures/weapons %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures/powerups %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures/misc %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures/menu %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures/hud %%PORTDOCS%%@dirrm %%DOCSDIR%%/pictures %%PORTDOCS%%@dirrm %%DOCSDIR%%