blob: 85cd2c408027185ad18726208b285afbaaca82c4 (
plain)
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
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= bubble-chains
PORTVERSION= 0.1.1
PORTREVISION= 9
CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= 2D arcade-puzzle game based on Qt/SDL
LICENSE= GPLv2
BUILD_DEPENDS= icotool:graphics/icoutils
USE_GITHUB= yes
GH_ACCOUNT= SanskritFritz
USES= dos2unix qmake
DOS2UNIX_GLOB= *.pro *.cpp *.h *.ui *.rc *.htm *.dat *.css
USE_SDL= mixer sdl
USE_GL= gl
USE_XORG= xrandr
USE_QT4= moc_build rcc_build uic_build iconengines_run imageformats_run \
corelib svg xml opengl network
QMAKE_SOURCE_PATH= ${WRKSRC}/Game.pro
PORTDOCS= README
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Bubble Chains" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's|bin/chains|bin/bubble-chains|; \
s|/usr/bin|${PREFIX}/bin|; \
s|/usr/share/chains|${DATADIR}|' \
${WRKSRC}/Game.pro
@${REINPLACE_CMD} -e 's|/usr/share/chains|${DATADIR}|' \
${WRKSRC}/main.cpp
post-build:
.for i in 16 32 48
@${MKDIR} ${WRKDIR}/icons/hicolor/${i}x${i}/apps
${LOCALBASE}/bin/icotool -x -b 32 -w ${i} \
-o ${WRKDIR}/icons/hicolor/${i}x${i}/apps/bubble-chains.png \
${WRKSRC}/icon.ico
.endfor
post-install:
cd ${WRKDIR} && ${COPYTREE_SHARE} icons ${STAGEDIR}${PREFIX}/share
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|