summaryrefslogblamecommitdiff
path: root/games/zaz/Makefile
blob: 9dda7383c6cd6e54c78e0928e4e63f3d14bddd31 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                   
           

                   
                     
                 





                                                                               



                                                         
 
                   


                         
 

                                                                       
                                                        


                 
                                                                         


                              
                       

                      

                               
      
 


                                                                                      
                           
                                                                             



                                     
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

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

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

LIB_DEPENDS=	freetype:${PORTSDIR}/print/freetype2 \
		theora:${PORTSDIR}/multimedia/libtheora \
		vorbis:${PORTSDIR}/audio/libvorbis \
		ftgl:${PORTSDIR}/graphics/ftgl

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_SDL=	sdl image
USE_GL=		gl glu

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

PORTDOCS=	*

# Unconditially disable NLS for now: the game segfaults with 8bit locales
.include <bsd.port.options.mk>

.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
.if ! ${PORT_OPTIONS:MDOCS}
	@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docDATA||' \
		${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>