- Support staging

- Use upstream installation and don't install unneeded files (1)

Submitted by:	makc (1)
This commit is contained in:
Dmitry Marakasov 2013-10-31 18:58:57 +00:00
parent c9c6be7fe6
commit 0ac579ec98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332273
2 changed files with 11 additions and 54 deletions

View file

@ -14,30 +14,24 @@ LICENSE= GPLv2
USE_QT4= corelib gui qmake_build moc_build rcc_build
USE_SDL= mixer
MAN6= qnetwalk.6
DESTDIRNAME= INSTALL_ROOT
PORTDOCS= ChangeLog README
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/games|$$$${PREFIX}/bin|; \
s|/usr/share/man|$$$${PREFIX}/man|; \
s|/usr/share|$$$${PREFIX}/share|; \
/INSTALLS.*menu/ d' ${WRKSRC}/${PORTNAME}.pro
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "pics sounds translations" ${DATADIR})
@${LN} -sf ${DATADIR}/pics/computer2.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
${INSTALL_DATA} ${WRKSRC}/menu/qnetwalk.desktop ${PREFIX}/share/applications
${INSTALL_MAN} ${MAN6:S|^|${WRKSRC}/|} ${MAN6PREFIX}/man/man6
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>

View file

@ -1,60 +1,23 @@
bin/qnetwalk
man/man6/qnetwalk.6.gz
share/applications/qnetwalk.desktop
share/pixmaps/qnetwalk.png
%%DATADIR%%/pics/background.png
%%DATADIR%%/pics/cable0001.png
%%DATADIR%%/pics/cable0010.png
%%DATADIR%%/pics/cable0011.png
%%DATADIR%%/pics/cable0100.png
%%DATADIR%%/pics/cable0101.png
%%DATADIR%%/pics/cable0110.png
%%DATADIR%%/pics/cable0111.png
%%DATADIR%%/pics/cable1000.png
%%DATADIR%%/pics/cable1001.png
%%DATADIR%%/pics/cable1010.png
%%DATADIR%%/pics/cable1011.png
%%DATADIR%%/pics/cable1100.png
%%DATADIR%%/pics/cable1101.png
%%DATADIR%%/pics/cable1110.png
%%DATADIR%%/pics/computer1.png
%%DATADIR%%/pics/computer2.png
%%DATADIR%%/pics/focus.png
%%DATADIR%%/pics/highscores.png
%%DATADIR%%/pics/homepage.png
%%DATADIR%%/pics/locked.png
%%DATADIR%%/pics/newgame.png
%%DATADIR%%/pics/qnetwalk.png
%%DATADIR%%/pics/quit.png
%%DATADIR%%/pics/server.png
%%DATADIR%%/pics/shadow.png
share/pixmaps/qnetwalk.xpm
%%DATADIR%%/sounds/click.wav
%%DATADIR%%/sounds/connect.wav
%%DATADIR%%/sounds/start.wav
%%DATADIR%%/sounds/turn.wav
%%DATADIR%%/sounds/win.wav
%%DATADIR%%/translations/qnetwalk_de.qm
%%DATADIR%%/translations/qnetwalk_de.ts
%%DATADIR%%/translations/qnetwalk_es.qm
%%DATADIR%%/translations/qnetwalk_es.ts
%%DATADIR%%/translations/qnetwalk_fr.qm
%%DATADIR%%/translations/qnetwalk_fr.ts
%%DATADIR%%/translations/qnetwalk_it.qm
%%DATADIR%%/translations/qnetwalk_it.ts
%%DATADIR%%/translations/qnetwalk_nl.qm
%%DATADIR%%/translations/qnetwalk_nl.ts
%%DATADIR%%/translations/qnetwalk_pl.qm
%%DATADIR%%/translations/qnetwalk_pl.ts
%%DATADIR%%/translations/qnetwalk_pt_BR.qm
%%DATADIR%%/translations/qnetwalk_pt_BR.ts
%%DATADIR%%/translations/qnetwalk_ru.qm
%%DATADIR%%/translations/qnetwalk_ru.ts
%%DATADIR%%/translations/qnetwalk_tr.qm
%%DATADIR%%/translations/qnetwalk_tr.ts
%%DATADIR%%/translations/qnetwalk_ua.qm
%%DATADIR%%/translations/qnetwalk_ua.ts
%%DATADIR%%/translations/qnetwalk_zh_CN.qm
%%DATADIR%%/translations/qnetwalk_zh_CN.ts
@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%/sounds
@dirrm %%DATADIR%%/pics
@dirrm %%DATADIR%%