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