aboutsummaryrefslogtreecommitdiff
path: root/games/zaz/Makefile
blob: 77c9ee83c9b67e2af2ffaa084d7847ad10c188c0 (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
47
48
49
50
51
52
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	zaz
PORTVERSION=	1.0.0
PORTREVISION=	8
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Puzzle game where the player has to arrange balls in triplets

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfreetype.so:print/freetype2 \
		libtheora.so:multimedia/libtheora \
		libvorbis.so:audio/libvorbis \
		libftgl.so:graphics/ftgl

USES=		desktop-file-utils pkgconfig tar:bzip2
GNU_CONFIGURE=	yes
USE_SDL=	sdl image
USE_GL=		gl glu

CPPFLAGS+=	-I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-icondir="${PREFIX}/share/pixmaps"

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

# Unconditially disable NLS for now: the game segfaults with 8bit locales
#.if ${PORT_OPTIONS:MNLS}
#USES+=		gettext
#PLIST_SUB+=	NLS=""
#.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
#.endif

post-patch:
	@${REINPLACE_CMD} -e '/^zazdocdir =/ s|$${prefix}/doc|$${prefix}/share/doc|' \
		${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e '/PKG_CONFIG/ s|vorbisfile |&vorbis |' \
		${WRKSRC}/configure.ac ${WRKSRC}/configure

.include <bsd.port.mk>