# Created by: Rusmir Dusko # $FreeBSD: head/games/cutemaze/Makefile 371872 2014-10-31 16:11:33Z amdmi3 $ PORTNAME= cutemaze PORTVERSION= 1.1.1 CATEGORIES= games MASTER_SITES= http://gottcode.org/${PORTNAME}/ DISTNAME= ${PORTNAME}-${DISTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= Simple, top-down game in which mazes are randomly generated LICENSE= GPLv3 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USES= qmake tar:bzip2 USE_QT4= moc_build rcc_build uic_build iconengines_run imageformats_run \ corelib gui svg INSTALLS_ICONS= yes PORTDOCS= ChangeLog NEWS README OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes .include post-patch: .if ! ${PORT_OPTIONS:MNLS} @${REINPLACE_CMD} -i '' '/qm.files/,/qm.path/s/^/#/' \ ${WRKSRC}/cutemaze.pro .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} .for d in 16x16 22x22 scalable @(cd ${WRKSRC}/icons/oxygen && ${COPYTREE_SHARE} ${d} \ ${STAGEDIR}${PREFIX}/share/icons/oxygen) .endfor ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include