aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake2max
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-02-05 19:46:55 +0800
committerdinoex <dinoex@FreeBSD.org>2010-02-05 19:46:55 +0800
commit444a47ba39d176ab6be5d165b2147eacd2897112 (patch)
tree504a172369cfbce84e5c69e3e850ca254982188a /games/quake2max
parente8713146f4cf4a0ee32660777c7878acf65c44e0 (diff)
downloadfreebsd-ports-gnome-444a47ba39d176ab6be5d165b2147eacd2897112.tar.gz
freebsd-ports-gnome-444a47ba39d176ab6be5d165b2147eacd2897112.tar.zst
freebsd-ports-gnome-444a47ba39d176ab6be5d165b2147eacd2897112.zip
- update to jpeg-8
Diffstat (limited to 'games/quake2max')
-rw-r--r--games/quake2max/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/games/quake2max/Makefile b/games/quake2max/Makefile
index 8899d1782c25..a8bd111f3d31 100644
--- a/games/quake2max/Makefile
+++ b/games/quake2max/Makefile
@@ -7,7 +7,7 @@
PORTNAME= quake2max
PORTVERSION= 0.45
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= http://qudos.quakedev.com/linux/quake2/engines/Quake2MaX/:src \
${MASTER_SITE_LOCAL:S/$/:data/}
@@ -47,7 +47,7 @@ Q2MAX_DATA= ${PORTNAME}.044.rar
.include <bsd.port.pre.mk>
.if defined(WITH_GLX) || defined(WITH_SDLGL)
-LIB_DEPENDS+= jpeg.10:${PORTSDIR}/graphics/jpeg \
+LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
USE_GL= yes
.endif
@@ -110,6 +110,11 @@ PLIST_SUB+= SDLGL="@comment "
post-extract:
@cd ${WRKSRC} && unrar e ${DISTDIR}/${Q2MAX_DATA} baseq2/_maxpak.pak
+post-patch:
+# Resolve name collision with jpeg-8
+ ${REINPLACE_CMD} -e 's|jpeg_mem_src|local_jpeg_mem_src|' \
+ ${WRKSRC}/ref_gl/gl_image.c
+
do-install:
${MKDIR} ${LIBDIR}/baseq2
.for f in ${Q2MAX_BIN}