freebsd-ports/games/glightoff/Makefile
Marcus von Appen 3ec57ec255 - Fix NLS option behaviour
PR:		ports/173424
Submitted by:	nemysis <nemysis@gmx.ch> (maintainer)
2012-12-25 14:28:20 +00:00

47 lines
863 B
Makefile

# Created by: nemysis@gmx.ch
# $FreeBSD$
PORTNAME= glightoff
PORTVERSION= 1.0.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= nemysis@gmx.ch
COMMENT= Simple (but not so easy to solve!) puzzle game
LICENSE= GPLv2
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= glib20 gtk20
USE_XORG= x11
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-configure:
.if !${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} 's|src po|src|' ${WRKSRC}/Makefile
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>