freebsd-ports/games/gnomebreakout/Makefile
John Marino 4a65d405da USES+= gettext-tools on 6 ports
These ports require msgfmt.  FreeBSD doesn't fail to build these ports
because a default option on gvfs brings in this tool.  The same gvfs
option is off by default on DragonFly and thus the missing dependencies
were unmasked.  Explicitly add gettext-tools to get msgfmt.
2014-12-12 17:11:22 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnomebreakout
PORTVERSION= 0.5.3
PORTREVISION= 14
CATEGORIES= games gnome
MASTER_SITES= SF/${PORTNAME:S/eb/e-b/}/${PORTNAME:S/eb/e-b/}/${PORTVERSION}/ \
http://www.users.on.net/~mipearson/
DISTNAME= gnome-breakout-${PORTVERSION}
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
MAINTAINER= ports@FreeBSD.org
COMMENT= GNOME version of the classic breakout game
USES= gettext-tools pathfix pkgconfig
USE_GNOME= gnomeprefix libgnomeui
USE_XORG= x11
GNU_CONFIGURE= yes
USE_GCC= yes
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lX11 -lm
PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext-runtime:run
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e \
's|@GETTEXT_PACKAGE@|@PACKAGE@|' ${WRKSRC}/po/Makefile.in.in
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-DGNOME_DISABLE_DEPRECATED||; s|-DGTK_DISABLE_DEPRECATED||; \
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||; s|-DG_DISABLE_DEPRECATED||'
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|po src|src|' \
${WRKSRC}/Makefile.in
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>