aboutsummaryrefslogtreecommitdiffstats
path: root/games/crossfire-client/Makefile
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-05-07 12:26:12 +0800
committeranholt <anholt@FreeBSD.org>2003-05-07 12:26:12 +0800
commitd2ce609ea32cbd6682f22d7455fa56305a8dafb7 (patch)
treea67ed59742a513de3ec3ba85a568a465f2cec3c4 /games/crossfire-client/Makefile
parentd42802acacc91a47ccbbd0fc5810d427a96732fc (diff)
downloadfreebsd-ports-gnome-d2ce609ea32cbd6682f22d7455fa56305a8dafb7.tar.gz
freebsd-ports-gnome-d2ce609ea32cbd6682f22d7455fa56305a8dafb7.tar.zst
freebsd-ports-gnome-d2ce609ea32cbd6682f22d7455fa56305a8dafb7.zip
Update to 1.5.0.
PR: ports/51853 Submitted by: Ports Fury
Diffstat (limited to 'games/crossfire-client/Makefile')
-rw-r--r--games/crossfire-client/Makefile33
1 files changed, 15 insertions, 18 deletions
diff --git a/games/crossfire-client/Makefile b/games/crossfire-client/Makefile
index 78779afa4d38..28155295b4cd 100644
--- a/games/crossfire-client/Makefile
+++ b/games/crossfire-client/Makefile
@@ -5,44 +5,41 @@
# $FreeBSD$
#
-PORTNAME= crossfire
-PORTVERSION= 1.4.0
+PORTNAME= crossfire-client
+PORTVERSION= 1.5.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ftp.ifi.uio.no/pub/crossfire/ \
ftp://ftp.real-time.com/pub/games/crossfire/
-MASTER_SITE_SUBDIR= ${PORTNAME}
-PKGNAMESUFFIX= -client
-DISTFILES= ${PORTNAME}-client-${PORTVERSION}.tar.gz \
- ${PORTNAME}-client-images-${PORTVERSION}.tar.gz \
- ${PORTNAME}-client-sounds-${PORTVERSION}.tar.gz
+MASTER_SITE_SUBDIR= ${PORTNAME:S/-client//}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ${PORTNAME}-images-${PORTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}-sounds-1.4.0${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Multiplayer graphical arcade and adventure game made for X11
-LIB_DEPENDS= SDL_image.10:${PORTSDIR}/graphics/sdl_image
-
-SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
-
-WRKSRC= ${WRKDIR}/${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
-
USE_X_PREFIX= yes
USE_PERL5= yes
USE_XPM= yes
USE_GNOME= gtk12
-USE_REINPLACE= yes
USE_GMAKE= yes
USE_AUTOCONF_VER= 253
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
- CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --with-sound-dir=${DATADIR}/sounds \
--disable-gnome # Gnome client currently broken
MAN1= cfclient.1 gcfclient.1
-DATADIR= ${PREFIX}/share/${PKGBASE}
+.if defined(WITHOUT_SDL)
+CONFIGURE_ARGS+= --disable-sdl
+.else
+LIB_DEPENDS+= SDL_image.10:${PORTSDIR}/graphics/sdl_image
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
+.endif
post-install:
@${MKDIR} ${DATADIR}