summaryrefslogtreecommitdiff
path: root/games/ggz-sdl-games/Makefile
blob: 8bbd09338f8eecd777961f1031257999a093f116 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ex:ts=8
# Ports collection makefile for:	ggz-sdl-games
# Date created:			Nov 7, 2005
# Whom:				yinjieh
#
# $FreeBSD$
#

PORTNAME=	ggz-sdl-games
PORTVERSION=	0.0.13
CATEGORIES=	games
MASTER_SITES=	http://mirrors.dotsrc.org/ggzgamingzone/ggz/%SUBDIR%/ \
		http://ftp.ggzgamingzone.org/pub/ggz/%SUBDIR%/
MASTER_SITE_SUBDIR=	${PORTVERSION}
DIST_SUBDIR=	ggz

MAINTAINER=	yinjieh@csie.nctu.edu.tw
COMMENT=	The GGZ Gaming Zone - SDL-based games

LIB_DEPENDS=	ggzcore.8:${PORTSDIR}/games/ggz-client-libs

USE_GETOPT_LONG=	yes
USE_SDL=	image mixer sdl ttf
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--disable-debug

CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}

post-patch:
	@${REINPLACE_CMD} -e \
		's|SDL/SDL.h|SDL11/SDL.h|;	\
		 s|SDL/SDL_image.h|SDL11/SDL_image.h|;	\
		 s|SDL/SDL_mixer.h|SDL11/SDL_mixer.h|;	\
		 s|SDL/SDL_syswm.h|SDL11/SDL_syswm.h|;	\
		 s|SDL/SDL_ttf.h|SDL11/SDL_ttf.h|'	\
		 ${WRKSRC}/configure		\
		 ${WRKSRC}/geekgame/intro.c	\
		 ${WRKSRC}/geekgame/main.c	\
		 ${WRKSRC}/ttt3d/display.c	\
		 ${WRKSRC}/ttt3d/main.c

.include <bsd.port.mk>