aboutsummaryrefslogtreecommitdiff
path: root/games/kuklomenos/Makefile
blob: 20b6ed4569f3608ab21b682b1caf8a2a398a6774 (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
45
46
# New ports collection makefile for:	kuklomenos
# Date created:				2008/08/31
# Whom:					chinsan
#
# $FreeBSD$
#

PORTNAME=	kuklomenos
PORTVERSION=	0.4.3
PORTREVISION=	1
CATEGORIES=	games
MASTER_SITES=	http://mbays.freeshell.org/kuklomenos/src/ \
		http://freebsd.unixfreunde.de/sources/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple but challenging abstract shoot-em-up game

LIB_DEPENDS=	curl.5:${PORTSDIR}/ftp/curl

OPTIONS=	VORBIS "Enable Ogg/Vorbis support" on

USE_SDL=	sdl mixer
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--datadir=${DATADIR}

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

.include <bsd.port.pre.mk>

.if defined(WITHOUT_VORBIS)
CONFIGURE_ARGS+=--disable-sound
PLIST_SUB+=	VORBIS="@comment "
.else
LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
PLIST_SUB+=	VORBIS=""
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/^sounds_DATA/s|Makefile.am||g' ${WRKSRC}/sounds/Makefile.in
	@${FIND} ${WRKSRC}/SDL_Mixer -name "*.c" -print0 | ${XARGS} -0 \
		${REINPLACE_CMD} -e 's|<SDL/SDL_mixer.h>|"SDL_mixer.h"|g'

.include <bsd.port.post.mk>