diff options
author | acm <acm@FreeBSD.org> | 2006-08-04 23:24:57 +0800 |
---|---|---|
committer | acm <acm@FreeBSD.org> | 2006-08-04 23:24:57 +0800 |
commit | f013185ff0b135a3b771d759094ca743c5b434ea (patch) | |
tree | 9e1632a8503f3e80cfe032932d278ad8455bad17 /games/linux-warsow | |
parent | fc85bfdf9f0e6b66fc219b133e026c6c72836806 (diff) | |
download | freebsd-ports-gnome-f013185ff0b135a3b771d759094ca743c5b434ea.tar.gz freebsd-ports-gnome-f013185ff0b135a3b771d759094ca743c5b434ea.tar.zst freebsd-ports-gnome-f013185ff0b135a3b771d759094ca743c5b434ea.zip |
- Update to 0.12
- Integrated with warsow-data
- Added CLIENT, SERVER and NVIDIA options
- Added PLIST file.
Approved by: garga (mentor)
Diffstat (limited to 'games/linux-warsow')
-rw-r--r-- | games/linux-warsow/Makefile | 119 | ||||
-rw-r--r-- | games/linux-warsow/distinfo | 6 | ||||
-rw-r--r-- | games/linux-warsow/files/warsow-wrapper.in | 2 | ||||
-rw-r--r-- | games/linux-warsow/files/wsw_server-wrapper.in | 2 | ||||
-rw-r--r-- | games/linux-warsow/pkg-deinstall | 16 | ||||
-rw-r--r-- | games/linux-warsow/pkg-install | 11 | ||||
-rw-r--r-- | games/linux-warsow/pkg-plist | 11 |
7 files changed, 88 insertions, 79 deletions
diff --git a/games/linux-warsow/Makefile b/games/linux-warsow/Makefile index 04fde176be81..7ef50b850142 100644 --- a/games/linux-warsow/Makefile +++ b/games/linux-warsow/Makefile @@ -6,35 +6,37 @@ # PORTNAME= warsow -PORTVERSION= 0.072a +PORTVERSION= 0.12 CATEGORIES= games linux -MASTER_SITES= http://mirrors-av.club-internet.fr/pub/games/nofrag/warsow/ \ - http://www.kpforum.net/games/ +MASTER_SITES= http://ftp.club-internet.fr/pub/games/nofrag/warsow/ \ + http://mirrors-av.club-internet.fr/pub/games/nofrag/warsow/ \ + http://kenh.rxvt.net/ \ + http://turkeyfiles.escapedturkey.net/warsow/versions/ \ + http://www.gizmo.fi/warsow/ \ + http://warsow.as-mirror.net/ \ + http://wsw.surreal-xenotronic.com/ \ + http://tmp.death-row.org/ PKGNAMEPREFIX= linux- -DISTNAME= ${PORTNAME}_0.072alpha_linux +DISTNAME= ${PORTNAME}_${PORTVERSION}_linux +DIST_SUBDIR= ${PORTNAME} MAINTAINER= acm@FreeBSD.org COMMENT= Free multiplayer first person shooter with cartoon design -RUN_DEPENDS= ${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 \ - ${LINUXBASE}/usr/lib/libjpeg.so.62:${PORTSDIR}/graphics/linux-jpeg +RUN_DEPENDS= ${LINUXBASE}/usr/lib/libkrb5support.so.0:${PORTSDIR}/security/linux-krb5-libs \ + ${LINUXBASE}/lib/libssl.so.5:${PORTSDIR}/security/linux-openssl \ + ${LINUXBASE}/lib/libcom_err.so.2:${PORTSDIR}/sysutils/linux-e2fsprogs \ + ${DATADIR}/basewsw/data0.pk3:${PORTSDIR}/games/warsow-data -ONLY_FOR_ARCHS= i386 -USE_X_PREFIX= yes +ONLY_FOR_ARCHS= i386 amd64 USE_LINUX= yes -NO_BUILD= yes -RESTRICTED= "Redistribution is limited, art is copyrighted" WRKSRC= ${WRKDIR}/${PORTNAME} -WARSOWDIR= ${PREFIX}/lib/${PORTNAME} -WARSOWDIR_REL= ${WARSOWDIR:S,^${PREFIX}/,,} - +NO_BUILD= yes SUB_FILES= warsow-wrapper wsw_server-wrapper - -PLIST= ${WRKDIR}/pkg-plist -PLIST_FILES= bin/warsow bin/wsw_server \ - ${WARSOWDIR_REL}/warsow ${WARSOWDIR_REL}/wsw_server -PORTDOCS= * +WARSOW_EXTRACT+=${PORTNAME}/basewsw/game${ARCHSUFFIX}.so +WARSOW_DIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME} +EXTRACT_AFTER_ARGS= | ${TAR} -xf - ${WARSOW_EXTRACT} DESKTOP_ENTRIES="Warsow" \ "Shoot cartoon enemies" \ @@ -43,46 +45,69 @@ DESKTOP_ENTRIES="Warsow" \ "Application;Game;" \ false +OPTIONS= CLIENT "Install client" on \ + SERVER "Install dedicated server" on \ + NVIDIA "Install support for nvidia" off + .include <bsd.port.pre.mk> -.if ${X_WINDOW_SYSTEM:L} != xfree86-3 -.if defined(WITH_NVIDIA_GL) +.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) +IGNORE= requires at least one of CLIENT and SERVER options +.endif + +.if defined(WITH_NVIDIA) +. if !exists(${LINUXBASE}/usr/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver +. endif .else +. if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri +. endif .endif -.else -RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so.1:${PORTSDIR}/graphics/linux_glx + +.if ${ARCH} == "i386" +ENGINESUFFIX= "" +ARCHSUFFIX= "_i386" +PLIST_SUB+= ENGINESUFFIX=${ENGINESUFFIX} \ + ARCHSUFFIX=${ARCHSUFFIX} +.elif ${ARCH} == "amd64" +ENGINESUFFIX= ".x86_64" +ARCHSUFFIX= "_x86_64" +PLIST_SUB+= ENGINESUFFIX=${ENGINESUFFIX} \ + ARCHSUFFIX=${ARCHSUFFIX} .endif -post-patch: - @${FIND} ${WRKSRC}/basewsw -type d -empty -exec ${TOUCH} "{}/.keep_me" \; +.if !defined(WITHOUT_CLIENT) +RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 \ + ${LINUXBASE}/usr/lib/libvorbis.so.0:${PORTSDIR}/audio/linux-libvorbis \ + ${LINUXBASE}/usr/lib/libjpeg.so.62:${PORTSDIR}/graphics/linux-jpeg \ + ${LINUXBASE}/usr/lib/libcurl.so.3:${PORTSDIR}/ftp/linux-curl +PLIST_SUB+= CLIENT="" +WARSOW_TARGET+= warsow +WARSOW_EXTRACT+=${PORTNAME}/warsow${ENGINESUFFIX} \ + ${PORTNAME}/basewsw/ui${ARCHSUFFIX}.so \ + ${PORTNAME}/basewsw/cgame${ARCHSUFFIX}.so +.else +PLIST_SUB+= CLIENT="@comment " +.endif -pre-install: - @${RM} -f ${PLIST} - @cd ${WRKSRC}/basewsw && \ - ${FIND} * -type f | ${SORT} \ - | ${SED} -e 's|^|${WARSOWDIR_REL}/basewsw/|' >> ${PLIST} && \ - ${FIND} * -type d | ${SORT} -r \ - | ${SED} -e 's|^|@dirrm ${WARSOWDIR_REL}/basewsw/|' >> ${PLIST} +.if defined(WITH_SERVER) +PLIST_SUB+= SERVER="" +WARSOW_TARGET+= wsw_server +WARSOW_EXTRACT+=${PORTNAME}/wsw_server${ENGINESUFFIX} +.else +PLIST_SUB+= SERVER="@comment " +.endif do-install: - cd ${WRKSRC}/basewsw && \ - ${FIND} * -type d -exec ${MKDIR} "${WARSOWDIR}/basewsw/{}" \; && \ - ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${WARSOWDIR}/basewsw/{}" \; -.for f in warsow wsw_server - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${WARSOWDIR} - ${INSTALL_SCRIPT} ${WRKDIR}/${f}-wrapper ${PREFIX}/bin/${f} + ${MKDIR} ${DATADIR}/basewsw + ${INSTALL_DATA} ${WRKSRC}/basewsw/*.so ${DATADIR}/basewsw + ${MKDIR} ${WARSOW_DIR} +.for FILE in ${WARSOW_TARGET} + ${BRANDELF} -t Linux ${WRKSRC}/${FILE}${ENGINESUFFIX} + ${INSTALL_PROGRAM} ${WRKSRC}/${FILE}${ENGINESUFFIX} ${WARSOW_DIR}/${FILE} + ${INSTALL_SCRIPT} ${WRKDIR}/${FILE}-wrapper ${PREFIX}/bin/${PKGNAMEPREFIX}${FILE} .endfor - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -. for f in Shader* bots_navigation.txt changelog.txt contact.txt demoavi.txt \ - entities.def linux_sound_sdl.txt quick* server_admin.txt - ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR} -. endfor -.endif - - @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + ${LN} -s ${DATADIR}/* ${WARSOW_DIR} .include <bsd.port.post.mk> diff --git a/games/linux-warsow/distinfo b/games/linux-warsow/distinfo index 6f8bf6d064ec..d91c3b53b27c 100644 --- a/games/linux-warsow/distinfo +++ b/games/linux-warsow/distinfo @@ -1,3 +1,3 @@ -MD5 (warsow_0.072alpha_linux.tar.gz) = bde7e468b0264d62f5cf987f4e143c0a -SHA256 (warsow_0.072alpha_linux.tar.gz) = c8c33349e8eb19fde2d38dde2e760162151e2e3d05a676a757cb7677fc221e11 -SIZE (warsow_0.072alpha_linux.tar.gz) = 31990632 +MD5 (warsow/warsow_0.12_linux.tar.gz) = ee288d7508237a0670b20cf64516ad36 +SHA256 (warsow/warsow_0.12_linux.tar.gz) = 7ff7b48106fe09663c76f8e305b1532538bd3ee29458a6c4241225266951c926 +SIZE (warsow/warsow_0.12_linux.tar.gz) = 66745206 diff --git a/games/linux-warsow/files/warsow-wrapper.in b/games/linux-warsow/files/warsow-wrapper.in index 84720c7548fd..ac234c3a7ebf 100644 --- a/games/linux-warsow/files/warsow-wrapper.in +++ b/games/linux-warsow/files/warsow-wrapper.in @@ -1,4 +1,4 @@ #!/bin/sh -cd %%PREFIX%%/lib/warsow || exit 1 +cd %%PREFIX%%/lib/linux-warsow || exit 1 exec ./warsow "$@" diff --git a/games/linux-warsow/files/wsw_server-wrapper.in b/games/linux-warsow/files/wsw_server-wrapper.in index 9b55c5fb81ba..f8cc77550285 100644 --- a/games/linux-warsow/files/wsw_server-wrapper.in +++ b/games/linux-warsow/files/wsw_server-wrapper.in @@ -1,4 +1,4 @@ #!/bin/sh -cd %%PREFIX%%/lib/warsow || exit 1 +cd %%PREFIX%%/lib/linux-warsow || exit 1 exec ./wsw_server "$@" diff --git a/games/linux-warsow/pkg-deinstall b/games/linux-warsow/pkg-deinstall deleted file mode 100644 index 6fb33555bef1..000000000000 --- a/games/linux-warsow/pkg-deinstall +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -case $2 in - DEINSTALL) - config_file=$PKG_PREFIX/lib/warsow/basewsw/config.cfg - - if [ -e $config_file ] && ! [ -s $config_file ]; then - rm -f $config_file - fi - ;; - - POST-DEINSTALL) - rmdir $PKG_PREFIX/lib/warsow/basewsw 2>/dev/null || true - rmdir $PKG_PREFIX/lib/warsow 2>/dev/null || true - ;; -esac diff --git a/games/linux-warsow/pkg-install b/games/linux-warsow/pkg-install deleted file mode 100644 index bd7f299115d0..000000000000 --- a/games/linux-warsow/pkg-install +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -[ "$2" != "POST-INSTALL" ] && exit 0 - -config_file=$PKG_PREFIX/lib/warsow/basewsw/config.cfg - -if ! [ -e $config_file ]; then - touch $config_file - chown root:wheel $config_file 2>/dev/null - chmod 666 $config_file -fi diff --git a/games/linux-warsow/pkg-plist b/games/linux-warsow/pkg-plist new file mode 100644 index 000000000000..14f70c175d47 --- /dev/null +++ b/games/linux-warsow/pkg-plist @@ -0,0 +1,11 @@ +%%CLIENT%%bin/linux-warsow +%%SERVER%%bin/linux-wsw_server +%%CLIENT%%lib/linux-warsow/warsow +%%SERVER%%lib/linux-warsow/wsw_server +lib/linux-warsow/basewsw +%%CLIENT%%%%DATADIR%%/basewsw/cgame%%ARCHSUFFIX%%.so +%%DATADIR%%/basewsw/game%%ARCHSUFFIX%%.so +%%CLIENT%%%%DATADIR%%/basewsw/ui%%ARCHSUFFIX%%.so +@dirrm lib/linux-warsow +@dirrmtry %%DATADIR%%/basewsw +@dirrmtry %%DATADIR%% |