diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-06-25 04:03:27 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-06-25 04:03:27 +0800 |
commit | 48acd1d50c5d2e72351c9eb6faf7f7d12aaed961 (patch) | |
tree | 24c3b1871514475aa99de620c141c286da95889c /games | |
parent | 9e6fca65cc02e013166dacf48d0f3fb3c8e7d1c9 (diff) | |
download | freebsd-ports-graphics-48acd1d50c5d2e72351c9eb6faf7f7d12aaed961.tar.gz freebsd-ports-graphics-48acd1d50c5d2e72351c9eb6faf7f7d12aaed961.tar.zst freebsd-ports-graphics-48acd1d50c5d2e72351c9eb6faf7f7d12aaed961.zip |
- Update to version 2006.ue.
- Move to LOCALBASE.
- Support amd64 (Linux binary).
Approved by: maintainer
Diffstat (limited to 'games')
-rw-r--r-- | games/linux-alienarena/Makefile | 44 | ||||
-rw-r--r-- | games/linux-alienarena/distinfo | 6 |
2 files changed, 34 insertions, 16 deletions
diff --git a/games/linux-alienarena/Makefile b/games/linux-alienarena/Makefile index 622c8244716..706271da7a6 100644 --- a/games/linux-alienarena/Makefile +++ b/games/linux-alienarena/Makefile @@ -6,12 +6,15 @@ # PORTNAME= alienarena -DISTVERSION= 2006.ge +DISTVERSION= 2006.ue PORTEPOCH= 1 CATEGORIES= games linux -MASTER_SITES= http://offload1.icculus.org/~ravage/alienarena2006/ +MASTER_SITES= http://offload1.icculus.org/~ravage/alienarena2006/ \ + http://cor.planetquake.gamespy.com/codered/files/ \ + http://www.forsakenweb.com/gamepage/loaders/games/ PKGNAMEPREFIX= linux- -DISTNAME= ${PORTNAME}-${DISTVERSION:S/.//}-i386 +DISTNAME= ${PORTNAME}-${DISTVERSION:S/.//}-x86 +EXTRACT_SUFX= .run MAINTAINER= acardenas@bsd.org.pe COMMENT= Alien Arena 2006 (Linux version) @@ -20,19 +23,14 @@ RUN_DEPENDS= ${LINUXBASE}/usr/X11R6/lib/libGLU.so.1.3:${PORTSDIR}/graphics/linux ${LINUXBASE}/usr/lib/libSDL-1.2.so.0:${PORTSDIR}/devel/linux-sdl12 \ ${DATADIR}/arena/default.cfg:${PORTSDIR}/games/alienarena-data -.if defined(WITH_NVIDIA_GL) -RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver -.endif - -ONLY_FOR_ARCHS= i386 -USE_X_PREFIX= yes +ONLY_FOR_ARCHS= i386 amd64 USE_LINUX= yes NO_BUILD= yes NO_WRKSUBDIR= yes SUB_FILES= linux-alienarena linux-alienarena-ded -SUB_LIST= LIBDIR=${LIBDIR} -PLIST_SUB= LIBDIR=${LIBDIR:S/${PREFIX}\///} +SUB_LIST= LIBDIR="${LIBDIR}" +PLIST_SUB= LIBDIR="${LIBDIR:S/${PREFIX}\///}" LIBDIR= ${PREFIX}/lib/${PKGNAMEPREFIX}${PORTNAME} @@ -45,16 +43,36 @@ DESKTOP_ENTRIES="Alien Arena 2006 (Linux version)" \ .include <bsd.port.pre.mk> +.if ${OSVERSION} < 500000 +BROKEN= does not extract (gzip error) +.endif + +.if defined(WITH_NVIDIA_GL) +RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver +.endif + +.if ${ARCH} == "i386" +ENGINE_ARCH= x86 +.elif ${ARCH} == "amd64" +ENGINE_ARCH= x86_64 +.endif + +do-extract: + @${MKDIR} ${WRKDIR} + @cd ${WRKDIR} && \ + ${TAIL} +377 ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \ + ${TAR} zxf - + do-install: ${MKDIR} ${LIBDIR}/arena ${LIBDIR}/data1 - cd ${WRKSRC} && \ + cd ${WRKSRC}/engine/${ENGINE_ARCH} && \ ${INSTALL_PROGRAM} arena/gamei386.so ${LIBDIR}/arena && \ ${INSTALL_PROGRAM} data1/gamei386.so ${LIBDIR}/data1 ${LN} -sf ${DATADIR}/arena/* ${LIBDIR}/arena ${LN} -sf ${DATADIR}/botinfo ${LIBDIR} ${LN} -sf ${DATADIR}/data1/* ${LIBDIR}/data1 .for f in crx.sdl crded - ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${LIBDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/engine/${ENGINE_ARCH}/${f} ${LIBDIR} .endfor .for f in linux-alienarena linux-alienarena-ded ${INSTALL_SCRIPT} ${WRKDIR}/${f} ${PREFIX}/bin diff --git a/games/linux-alienarena/distinfo b/games/linux-alienarena/distinfo index 781f9de8741..939cc28025b 100644 --- a/games/linux-alienarena/distinfo +++ b/games/linux-alienarena/distinfo @@ -1,3 +1,3 @@ -MD5 (alienarena-2006ge-i386.tar.gz) = fd32c73202b3fe9f79c54588daa35430 -SHA256 (alienarena-2006ge-i386.tar.gz) = 4fa39209bb5501d5fc010782b18956a8df4ea15782d488665086b72b871f051e -SIZE (alienarena-2006ge-i386.tar.gz) = 967542 +MD5 (alienarena-2006ue-x86.run) = 7b6416646db832fbc9761925240b5ff4 +SHA256 (alienarena-2006ue-x86.run) = a9ee5e69e37c1e511a21e3a0a698de0b0a297995827c806df0a08ce0a3276fde +SIZE (alienarena-2006ue-x86.run) = 168878681 |