Index: Makefile =================================================================== --- Makefile (revision 334215) +++ Makefile (working copy) @@ -1,10 +1,10 @@ # $FreeBSD$ PORTNAME= chessx -PORTVERSION= 0.9.6 +DISTVERSION= 1-0-0 CATEGORIES= games -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} -DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g} +MASTER_SITES= SF/chessx/chessx/${PORTVERSION} +EXTRACT_SUFX= .tgz MAINTAINER= yamagi@yamagi.org COMMENT= Qt4 chess database application @@ -11,39 +11,18 @@ LICENSE= GPLv2 # (or later) -WRKSRC= ${WRKDIR}/${PORTNAME} +USES= shared-mime-info qmake +USE_QT4= corelib gui svg xml network linguist_build \ + moc_build qmake_build rcc_build uic_build +QMAKE_ARGS+= QMAKE_LRELEASE=${LOCALBASE}/bin/lrelease-qt4 -USE_QT4= corelib gui svg xml network moc_build qmake_build rcc_build uic_build -MAKE_JOBS_SAVE= yes - OPTIONS_DEFINE= STOCKFISH CRAFTY -STOCKFISH_DESC= Build with Stockfish Chess Engine -CRAFTY_DESC= Build with Crafty Chess Application -OPTIONS_DEFAULT=STOCKFISH CRAFTY +OPTIONS_DEFAULT= STOCKFISH CRAFTY -NO_STAGE= yes -.include +STOCKFISH_DESC= Install Stockfish Chess Engine +STOCKFISH_RUN_DEPENDS= stockfish:${PORTSDIR}/games/stockfish -.if ${PORT_OPTIONS:MSTOCKFISH} -RUN_DEPENDS+= stockfish:${PORTSDIR}/games/stockfish -.endif +CRAFTY_DESC= Install Crafty Chess Application +CRAFTY_RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty -.if ${PORT_OPTIONS:MCRAFTY} -RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty -.endif - -PLIST_FILES= bin/${PORTNAME} \ - share/pixmaps/${PORTNAME}.png - -DESKTOP_ENTRIES="ChessX" "" "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ - "${PORTNAME}" "Game;BoardGame;" true - -do-configure: - @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) - -do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} release/${PORTNAME} ${PREFIX}/bin) - (cd ${WRKSRC}/data/images && ${INSTALL_DATA} chessx.png \ - ${PREFIX}/share/pixmaps/${PORTNAME}.png) - .include Index: distinfo =================================================================== --- distinfo (revision 334215) +++ distinfo (working copy) @@ -1,2 +1,2 @@ -SHA256 (chessx-0-9-6.tar.gz) = 37ec638736b0e20fbdfb5db374bf971d76d81fe267ace3bde8b4e5c2d2e9c601 -SIZE (chessx-0-9-6.tar.gz) = 3213601 +SHA256 (chessx-1-0-0.tgz) = 822512e9142fd2aa7e9034ee84470d99f2c1df86d2b8cd97774e9e7bc97b7d72 +SIZE (chessx-1-0-0.tgz) = 3545265 Index: files/patch-chessx.pro =================================================================== --- files/patch-chessx.pro (revision 0) +++ files/patch-chessx.pro (working copy) @@ -0,0 +1,27 @@ +--- ./chessx.pro.orig 2013-10-30 20:52:41.000000000 +0000 ++++ ./chessx.pro 2013-11-18 16:36:14.764197702 +0000 +@@ -309,17 +309,14 @@ + } + + unix:!macx { +- target.path = /usr/local/bin/chessx +- pixmaps.path = /usr/share/pixmaps ++ target.path = $$PREFIX/bin ++ pixmaps.path = $$PREFIX/share/pixmaps + pixmaps.files = data/images/chessx.png +- desktop.path = /usr/share/applications +- desktop.files = chessx.desktop +- desktop.extra += xdg-mime install --mode system chessx-x-chess-pgn.xml && +- desktop.extra += xdg-mime default chessx.desktop application/x-chess-pgn && +- desktop.extra += xdg-icon-resource install --context mimetypes --size 32 ./data/images/chessx-32.png application-x-chess-pgn && +- desktop.extra += xdg-icon-resource install --context mimetypes --size 64 ./data/images/chessx-64.png application-x-chess-pgn && +- desktop.extra += xdg-icon-resource install --context mimetypes --size 128 ./data/images/chessx.png application-x-chess-pgn +- INSTALLS += target desktop pixmaps ++ desktop.path = $$PREFIX/share/applications ++ desktop.files = unix/chessx.desktop ++ mime.path = $$PREFIX/share/mime/packages ++ mime.files += unix/chessx-x-chess-pgn.xml ++ INSTALLS += target desktop pixmaps mime + } + + RESOURCES = resources.qrc Index: pkg-plist =================================================================== --- pkg-plist (revision 0) +++ pkg-plist (working copy) @@ -0,0 +1,4 @@ +bin/chessx +share/applications/chessx.desktop +share/mime/packages/chessx-x-chess-pgn.xml +share/pixmaps/chessx.png