freebsd-ports/games/zaz/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: zaz
# Date created: 25 Aug 2009
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= zaz
PORTVERSION= 1.0.0
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.9:${PORTSDIR}/print/freetype2 \
theora.0:${PORTSDIR}/multimedia/libtheora \
vorbis.4:${PORTSDIR}/audio/libvorbis \
ftgl.2:${PORTSDIR}/graphics/ftgl
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_SDL= sdl image
USE_GL= gl glu
MAKE_JOBS_SAFE= yes
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
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
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 defined(NOPORTDOCS)
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docDATA||' \
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>