svn commit: r304142 - head/games/cake
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Sep 12 11:10:12 UTC 2012
Author: danfe
Date: Wed Sep 12 11:10:11 2012
New Revision: 304142
URL: http://svn.freebsd.org/changeset/ports/304142
Log:
- Fix segmentation fault due to inclusion of outdated JPEG header
- Remove ABI shlib version from LIB_DEPENDS, define LICENSE
- Sort out knobs, throw in a few comments, augment COMMENT
- Remove dead master site from Makefile and port description
Modified:
head/games/cake/Makefile
head/games/cake/pkg-descr
Modified: head/games/cake/Makefile
==============================================================================
--- head/games/cake/Makefile Wed Sep 12 09:47:56 2012 (r304141)
+++ head/games/cake/Makefile Wed Sep 12 11:10:11 2012 (r304142)
@@ -7,18 +7,23 @@
PORTNAME= cake
PORTVERSION= 2005.12.26
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
-MASTER_SITES= http://www.calodox.scene.org/morbac/cake/download/ \
- ${MASTER_SITE_LOCAL} http://freebsd.nsu.ru/distfiles/
-MASTER_SITE_SUBDIR= danfe
+MASTER_SITES= http://freebsd.nsu.ru/distfiles/
DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//g}
MAINTAINER= danfe at FreeBSD.org
-COMMENT= Quake3 map viewer
+COMMENT= Quake3 map viewer (and powerful 3D game engine)
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
+
+USE_XORG= x11 xext xmu xt xi sm ice
+USE_GL= glut
# Need to pass `-l', but PATCH_ARGS+= won't work because of PATCH_ARGS?=
-# in bsd.port.mk.
+# in bsd.port.mk
PATCH_ARGS= -d ${PATCH_WRKSRC} -N -s -E ${PATCH_STRIP} -l
USE_GMAKE= yes
USE_ZIP= yes
@@ -29,18 +34,18 @@ WRKSRC= ${WRKDIR}/cake_src
PLIST_FILES= bin/cake
-USE_XORG= x11 xext xmu xt xi sm ice
-USE_GL= glut
-LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
-
post-patch: .SILENT
${FIND} -E ${WRKDIR} -type f \( -iregex ".*\.(cpp|h)" -or \
-name Makefile \) \
-exec ${REINPLACE_CMD} -E -e 's/[[:cntrl:]]*$$//' \
-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*push[[:blank:]]*,[[:blank:]]*1[[:blank:]]*\)/#pragma pack(1)/g' \
-e 's/#pragma[[:blank:]]+pack[[:blank:]]*\([[:blank:]]*pop[[:blank:]]*\)/#pragma pack()/g' '{}' \;
+ ${REINPLACE_CMD} -e 's/jpeg\/JPEGLIB\.H/jpeglib.h/' \
+ ${WRKSRC}/cake/texture.cpp
+# Fmod library is not supported on FreeBSD, so no sound :(
${REINPLACE_CMD} -e 's/ENABLE_SOUND 1/ENABLE_SOUND 0/' \
${WRKSRC}/cake/sound.h
+# Use traditional mapping for console key (tilde)
${REINPLACE_CMD} -e 's/167/96/' ${WRKSRC}/main.cpp
# Fix for GCC 4.x
${REINPLACE_CMD} -e 's/Mat3x2:://' ${WRKSRC}/cake/math.h
Modified: head/games/cake/pkg-descr
==============================================================================
--- head/games/cake/pkg-descr Wed Sep 12 09:47:56 2012 (r304141)
+++ head/games/cake/pkg-descr Wed Sep 12 11:10:11 2012 (r304142)
@@ -16,5 +16,3 @@ for id Software's Quake III Arena maps.
* models
* entities (with variable LOD)
* zip compressed files (*.pk3)
-
-WWW: http://www.calodox.scene.org/morbac/cake/
More information about the svn-ports-head
mailing list