diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/kardsgt/Makefile | 35 | ||||
-rw-r--r-- | games/kardsgt/pkg-plist | 1 | ||||
-rw-r--r-- | games/qgo/Makefile | 16 | ||||
-rw-r--r-- | games/spellathon/Makefile | 38 |
4 files changed, 42 insertions, 48 deletions
diff --git a/games/kardsgt/Makefile b/games/kardsgt/Makefile index 62a663f66a75..b1f6df99a8a8 100644 --- a/games/kardsgt/Makefile +++ b/games/kardsgt/Makefile @@ -10,38 +10,37 @@ MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= Card game suite +USES= qmake USE_QT4= assistantclient corelib gui network \ moc_build qmake_build rcc_build uic_build ALL_TARGET= qmake release MAKE_JOBS_UNSAFE= yes -MAN6= kardsgt.6 +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|^QT +=|#QT +=|g' \ ${WRKSRC}/src/src.pro @${REINPLACE_CMD} -e 's|/usr/share/kardsgt/|${DATADIR}/|g' \ ${WRKSRC}/src/kardsgtinterface.cpp -do-configure: - @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) - do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/release/kardsgt ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/src/doc/kardsgt.6 ${MAN6PREFIX}/man/man6 - @${MKDIR} ${PREFIX}/share/icons - ${INSTALL_DATA} ${WRKSRC}/src/images/kardsgt.png ${PREFIX}/share/icons - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/src/doc/*.dcf ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/src/doc/*.html ${DATADIR} - @${MKDIR} ${DATADIR}/images - ${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.jpg ${DATADIR}/images - ${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.png ${DATADIR}/images -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/release/kardsgt ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/src/doc/kardsgt.6 ${STAGEDIR}${MAN6PREFIX}/man/man6 + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons + ${INSTALL_DATA} ${WRKSRC}/src/images/kardsgt.png ${STAGEDIR}${PREFIX}/share/icons + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/src/doc/*.dcf ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/src/doc/*.html ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/images + ${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.jpg ${STAGEDIR}${DATADIR}/images + ${INSTALL_DATA} ${WRKSRC}/src/doc/images/*.png ${STAGEDIR}${DATADIR}/images +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in CREDITS ChangeLog README - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor .endif diff --git a/games/kardsgt/pkg-plist b/games/kardsgt/pkg-plist index 3a83f5581d2e..c7aba9c2aa30 100644 --- a/games/kardsgt/pkg-plist +++ b/games/kardsgt/pkg-plist @@ -1,4 +1,5 @@ bin/kardsgt +man/man6/kardsgt.6.gz %%PORTDOCS%%%%DOCSDIR%%/CREDITS %%PORTDOCS%%%%DOCSDIR%%/ChangeLog %%PORTDOCS%%%%DOCSDIR%%/README diff --git a/games/qgo/Makefile b/games/qgo/Makefile index 83052c424f17..a5acec124378 100644 --- a/games/qgo/Makefile +++ b/games/qgo/Makefile @@ -13,13 +13,12 @@ COMMENT= Go board and SGF editor written with the Qt library WRKSRC= ${WRKDIR}/${PORTNAME} USE_BZIP2= yes -USES= desktop-file-utils +USES= desktop-file-utils qmake USE_QT4= gui network qtestlib moc_build qmake_build rcc_build uic_build PLIST_FILES= bin/qgo share/applications/qgo.desktop share/pixmaps/qgo.png PLIST_DIRSTRY= share/applications -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e \ '/Icon/s|=.*|=${PREFIX}/share/pixmaps/qgo.png| ; \ @@ -29,14 +28,11 @@ post-patch: @${REINPLACE_CMD} -e \ 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/mainwindow_settings.cpp -do-configure: - @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) - do-install: - (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} qgo ${PREFIX}/bin) - @${MKDIR} ${DESKTOPDIR} - (cd ${WRKSRC}/src && ${INSTALL_DATA} qgo.desktop ${DESKTOPDIR}) - (cd ${WRKSRC}/src/ressources/pics && ${INSTALL_DATA} qgo.png \ - ${PREFIX}/share/pixmaps) + ${INSTALL_PROGRAM} ${WRKSRC}/bin/qgo ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/src/qgo.desktop ${STAGEDIR}${DESKTOPDIR} + ${INSTALL_DATA} ${WRKSRC}/src/ressources/pics/qgo.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps .include <bsd.port.mk> diff --git a/games/spellathon/Makefile b/games/spellathon/Makefile index b3bf3fbf03e8..4bad8c8372d9 100644 --- a/games/spellathon/Makefile +++ b/games/spellathon/Makefile @@ -12,41 +12,39 @@ COMMENT= Word game to test your English vocabulary skills LICENSE= BSD -LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \ - pcre:${PORTSDIR}/devel/pcre \ - png15:${PORTSDIR}/graphics/png \ - freetype:${PORTSDIR}/print/freetype2 \ - expat:${PORTSDIR}/textproc/expat2 \ - fontconfig:${PORTSDIR}/x11-fonts/fontconfig +LIB_DEPENDS= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \ + libpcre.so:${PORTSDIR}/devel/pcre \ + libpng15.so:${PORTSDIR}/graphics/png \ + libfreetype.so:${PORTSDIR}/print/freetype2 \ + libexpat.so:${PORTSDIR}/textproc/expat2 \ + libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig CXXFLAGS+= -fPIC -USES= gettext iconv +USES= gettext iconv qmake USE_GNOME= glib20 USE_QT4= corelib gui moc_build qmake_build rcc_build uic_build USE_XORG= ice sm x11 xau xcb xdmcp xext xrender USE_LDCONFIG= yes +CONFIGURE_WRKSRC= ${WRKSRC}/src/gui + DESKTOP_ENTRIES="Spellathon" "${COMMENT}" "" "${PORTNAME}" "Education;Languages;" "true" -NO_STAGE= yes post-patch: @${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \ 's|$${CC}|$${CXX}|g ; \ - s|$${CFLAGS}|$${CXXFLAGS}|g ; \ - s|qmake-qt4|${TRUE}|' + s|$${CFLAGS}|$${CXXFLAGS}|g ; \ + s|qmake-qt4|${TRUE}|' @${REINPLACE_CMD} \ 's|dict/words.txt|${DATADIR}/words.txt|' ${WRKSRC}/src/logic/defines.h -do-configure: - @(cd ${WRKSRC}/src/gui && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) - do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/spellathon ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/spellathon-cl ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/libspellathon.so.0.0 ${PREFIX}/lib - ${LN} -sf libspellathon.so.0.0 ${PREFIX}/lib/libspellathon.so - ${LN} -sf libspellathon.so.0.0 ${PREFIX}/lib/libspellathon.so.0 - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/dict/words.txt ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/spellathon ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/spellathon-cl ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib + ${LN} -sf libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib/libspellathon.so + ${LN} -sf libspellathon.so.0.0 ${STAGEDIR}${PREFIX}/lib/libspellathon.so.0 + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/dict/words.txt ${STAGEDIR}${DATADIR} .include <bsd.port.mk> |