diff options
author | makc <makc@FreeBSD.org> | 2013-10-13 21:03:03 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-10-13 21:03:03 +0800 |
commit | a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e (patch) | |
tree | 9d348bd41c93dc07e16d63761a277862fca2beec /graphics/darknock | |
parent | 59c0a46aa2540ee31e961d5f970ecb9f7804f01e (diff) | |
download | freebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.tar.gz freebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.tar.zst freebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.zip |
- Convert unmaintained ports to USES=qmake
- Add stage support
- Convert LIB_DEPENDS to new syntax
- Minor changes/fixes
Diffstat (limited to 'graphics/darknock')
-rw-r--r-- | graphics/darknock/Makefile | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/graphics/darknock/Makefile b/graphics/darknock/Makefile index 358744797eee..7f817ab819b1 100644 --- a/graphics/darknock/Makefile +++ b/graphics/darknock/Makefile @@ -14,6 +14,7 @@ LICENSE= GPLv2 # (or later) WRKSRC= ${WRKDIR}/${PORTNAME} +USES= qmake USE_QT4= gui linguist_build moc_build qmake_build rcc_build uic_build PORTDOCS= changelog @@ -24,11 +25,10 @@ DESKTOP_ENTRIES= "${PORTNAME}" \ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ "${PORTNAME}" \ "Graphics;Qt;" \ - "false" + "true" LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} @@ -42,22 +42,19 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/share/darknock|${DATADIR}|g' \ ${WRKSRC}/src/main.cpp -pre-build: +pre-configure: @${LRELEASE} ${BUILD_WRKSRC}/${PORTNAME}.pro - @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${PREFIX}/share/pixmaps + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps .if ${PORT_OPTIONS:MNLS} - @${MKDIR} ${DATADIR}/locale - ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${DATADIR}/locale + @${MKDIR} ${STAGEDIR}${DATADIR}/locale + ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale .endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for doc in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} -.endfor +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |