# Created by: Maxim Sobolev # $FreeBSD: head/games/gtktetcolor/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= gtktetcolor DISTVERSION= 0.6.5pre3 PORTREVISION= 1 CATEGORIES= games gnome MASTER_SITES= ftp://canopus.iacp.dvo.ru/pub/Games/gtktetcolor/ \ SF/nemysisfreebsdp/games/${PORTNAME}/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Game for GNOME that resembles well-known Tetris and Columns LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= p5-XML-Parser>=0:textproc/p5-XML-Parser USES= gmake pathfix pkgconfig tar:bzip2 USE_GNOME= gnomeprefix intlhack libgnomeui GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PORTDOCS= AUTHORS ChangeLog NEWS README OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext .include post-patch: @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|-D.*_DISABLE_DEPRECATED||g' @${REINPLACE_CMD} -e 's|^Icon.*|Icon=${PORTNAME}|' \ ${WRKSRC}/src/gtktetcolor.desktop.in .if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -e '/^SUBDIRS/s|po||g' ${WRKSRC}/Makefile.in .endif post-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include