Lines 3-63
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= bubble-chains |
4 |
PORTNAME= bubble-chains |
5 |
PORTVERSION= 0.1.1 |
5 |
PORTVERSION= 0.1.1 |
6 |
DISTVERSIONSUFFIX= -src |
6 |
PORTREVISION= 9 |
7 |
PORTREVISION= 8 |
|
|
8 |
CATEGORIES= games |
7 |
CATEGORIES= games |
9 |
MASTER_SITES= http://bubble-chains.sintegrial.com/files/ \ |
|
|
10 |
SF/nemysisfreebsdp/${CATEGORIES}/:icons |
11 |
DISTFILES= chains-${DISTVERSIONFULL}${EXTRACT_SUFX} \ |
12 |
${PORTNAME}.png:icons |
13 |
EXTRACT_ONLY= ${DISTFILES:N*\:icons:C/:.*//} |
14 |
|
8 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= The aim is to remove all of the targets on each level |
10 |
COMMENT= 2D arcade-puzzle game based on Qt/SDL |
17 |
|
11 |
|
18 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
19 |
|
13 |
|
20 |
BROKEN= unfetchable |
14 |
BUILD_DEPENDS= icotool:graphics/icoutils |
21 |
DEPRECATED= does not fetch |
15 |
|
22 |
EXPIRATION_DATE=2016-04-23 |
16 |
USE_GITHUB= yes |
23 |
|
17 |
GH_ACCOUNT= SanskritFritz |
24 |
WRKSRC= ${WRKDIR}/chains-${DISTVERSION}-src |
18 |
|
25 |
|
19 |
USES= dos2unix qmake |
26 |
USES= 7z dos2unix qmake |
20 |
DOS2UNIX_GLOB= *.cpp *.css *.dat *.h *.htm *.pro *.rc *.ui |
27 |
DOS2UNIX_GLOB= *.pro *.cpp *.h *.ui *.ui *.rc *.htm *.dat *.css |
21 |
QMAKE_SOURCE_PATH= ${WRKSRC}/Game.pro |
28 |
USE_SDL= sdl image mixer |
22 |
USE_GL= gl |
29 |
USE_GL= glut glew glu |
23 |
USE_QT4= corelib network opengl svg xml \ |
|
|
24 |
moc_build rcc_build uic_build \ |
25 |
iconengines_run imageformats_run |
26 |
USE_SDL= mixer sdl |
30 |
USE_XORG= xrandr |
27 |
USE_XORG= xrandr |
31 |
USE_QT4= moc_build rcc_build uic_build iconengines_run imageformats_run \ |
|
|
32 |
corelib svg xml opengl network |
33 |
LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lSDL |
34 |
|
28 |
|
35 |
PORTDOCS= README |
|
|
36 |
OPTIONS_DEFINE= DOCS |
29 |
OPTIONS_DEFINE= DOCS |
37 |
|
30 |
|
38 |
DESKTOP_ENTRIES="Bubble Chains" "" "${PORTNAME}" \ |
31 |
DESKTOP_ENTRIES="Bubble Chains" "" "bubble-chains" "bubble-chains" \ |
39 |
"${PORTNAME}" "Game;ArcadeGame;" "" |
32 |
"Game;ArcadeGame;Qt;" "" |
40 |
|
33 |
|
41 |
post-patch: |
34 |
post-patch: |
42 |
@${REINPLACE_CMD} -e 's|/usr/local/games/chains|${DATADIR}|' \ |
35 |
@${REINPLACE_CMD} -e \ |
43 |
${WRKSRC}/main.cpp ${WRKSRC}/Game.pro |
36 |
's|bin/chains|bin/bubble-chains| ; \ |
44 |
|
37 |
s|/usr/bin|${PREFIX}/bin| ; \ |
45 |
post-configure: |
38 |
s|/usr/share/chains|${DATADIR}|' \ |
46 |
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS ?=|; \ |
39 |
${WRKSRC}/Game.pro |
47 |
s|CXXFLAGS =|CXXFLAGS ?=|' \ |
40 |
@${REINPLACE_CMD} -e \ |
48 |
${WRKSRC}/Makefile |
41 |
's|/usr/share/chains|${DATADIR}|' \ |
49 |
|
42 |
${WRKSRC}/main.cpp |
50 |
do-install: |
43 |
|
51 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/chains \ |
44 |
post-build: |
52 |
${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
45 |
.for i in 16 32 48 |
53 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}) |
46 |
@${MKDIR} ${WRKDIR}/icons/hicolor/${i}x${i}/apps |
54 |
|
47 |
${LOCALBASE}/bin/icotool -x -b 32 -w ${i} \ |
55 |
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ |
48 |
-o ${WRKDIR}/icons/hicolor/${i}x${i}/apps/bubble-chains.png \ |
56 |
${STAGEDIR}${PREFIX}/share/pixmaps/ |
49 |
${WRKSRC}/icon.ico |
57 |
${INSTALL_DATA} ${WRKSRC}/icon.ico \ |
50 |
.endfor |
58 |
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico |
51 |
|
|
|
52 |
post-install: |
53 |
@(cd ${WRKDIR} && ${COPYTREE_SHARE} icons \ |
54 |
${STAGEDIR}${PREFIX}/share) |
59 |
|
55 |
|
|
|
56 |
post-install-DOCS-on: |
60 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
57 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
61 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
58 |
(cd ${WRKSRC} && ${INSTALL_DATA} README \ |
|
|
59 |
${STAGEDIR}${DOCSDIR}) |
62 |
|
60 |
|
63 |
.include <bsd.port.mk> |
61 |
.include <bsd.port.mk> |