Update games/stransball2 to version 1.5_10
[dports.git] / games / capicity / Makefile
1 # Created by: Rusmir Dusko <nemysis@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       capicity
5 PORTVERSION=    1.0
6 PORTREVISION=   1
7 CATEGORIES=     games
8 MASTER_SITES=   SF/capitalism/Capi%20City/${PORTVERSION}/
9 DISTNAME=       CapiCity_${DISTVERSION}
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Qt client for the Monopd server
13
14 LICENSE=        GPLv2 # or later
15 LICENSE_FILE=   ${WRKSRC}/copying.txt
16
17 LIB_DEPENDS=    libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
18                 libpcre.so:${PORTSDIR}/devel/pcre \
19                 libpng15.so:${PORTSDIR}/graphics/png \
20                 libfreetype.so:${PORTSDIR}/print/freetype2 \
21                 libexpat.so:${PORTSDIR}/textproc/expat2 \
22                 libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
23
24 WRKSRC=         ${WRKDIR}/CapiCity_${PORTVERSION}
25
26 USES=           iconv qmake
27 USE_XORG=       ice sm x11 xau xcb xdmcp xext xrender
28 USE_QT4=        moc_build rcc_build uic_build iconengines_run imageformats_run \
29                 corelib gui network script xml
30
31 PORTDOCS=       README changelog
32
33 INSTALLS_ICONS= yes
34 ICON_SIZES=     16x16 22x22 24x24 32x32 48x48 64x64
35
36 DESKTOP_ENTRIES="Capi City" "" "${PORTNAME}" \
37                 "${PORTNAME}" "Game;BoardGame;" ""
38
39 OPTIONS_DEFINE= DOCS NLS
40 OPTIONS_SUB=    yes
41
42 NLS_CONFIGURE_ENABLE=   nls
43 NLS_USES=               gettext
44
45 .include <bsd.port.options.mk>
46
47 do-install:
48         ${INSTALL_PROGRAM} ${WRKSRC}/CapiCity \
49                 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
50
51 .for d in games images
52         @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
53 .endfor
54
55 .if ${PORT_OPTIONS:MNLS}
56         @(cd ${WRKSRC} && ${COPYTREE_SHARE} ts ${STAGEDIR}${DATADIR})
57 .endif
58
59 .for s in ${ICON_SIZES}
60         @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
61         ${INSTALL_DATA} ${WRKSRC}/icons/${s}.png \
62                 ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
63 .endfor
64         ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
65                 ${STAGEDIR}${PREFIX}/share/pixmaps/
66
67         @${MKDIR} ${STAGEDIR}${DOCSDIR}
68         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
69
70 .include <bsd.port.mk>