aboutsummaryrefslogtreecommitdiff
path: root/games/crossfire-client/Makefile
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-05-07 04:26:12 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-05-07 04:26:12 +0000
commitd69603d48a5ba638e889ad3fcca9206e06679907 (patch)
tree15f76c15dfc3b98985f6fbb4b5b3225541515725 /games/crossfire-client/Makefile
parentd6c135a7d1012004adc95ca5b8660c4926e84ed7 (diff)
downloadports-d69603d48a5ba638e889ad3fcca9206e06679907.tar.gz
ports-d69603d48a5ba638e889ad3fcca9206e06679907.zip
Notes
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}