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 /deskutils | |
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 'deskutils')
-rw-r--r-- | deskutils/cdcat/Makefile | 44 | ||||
-rw-r--r-- | deskutils/launchy/Makefile | 11 | ||||
-rw-r--r-- | deskutils/nagaina/Makefile | 36 | ||||
-rw-r--r-- | deskutils/qlabels/Makefile | 14 |
4 files changed, 43 insertions, 62 deletions
diff --git a/deskutils/cdcat/Makefile b/deskutils/cdcat/Makefile index a6cdd460c615..ca2a8df45b05 100644 --- a/deskutils/cdcat/Makefile +++ b/deskutils/cdcat/Makefile @@ -20,19 +20,21 @@ LICENSE_COMB= multi BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/archivers/p7zip:patch \ ${NONEXISTENT}:${PORTSDIR}/multimedia/mediainfo:build -LIB_DEPENDS= tar:${PORTSDIR}/devel/libtar \ - exif:${PORTSDIR}/graphics/libexif +LIB_DEPENDS= libtar.so:${PORTSDIR}/devel/libtar \ + libexif.so:${PORTSDIR}/graphics/libexif OPTIONS_DEFINE= DOCS -BUILD_WRKSRC= ${WRKSRC}/src +CONFIGURE_WRKSRC= ${WRKSRC}/src +BUILD_WRKSRC= ${CONFIGURE_WRKSRC} +USES= qmake USE_BZIP2= yes USE_QT4= corelib gui xml \ linguist_build moc_build qmake_build uic_build INSTALLS_ICONS= yes -QMAKEFLAGS+= INCLUDEPATH+="${L7Z_WRKSRC}/Lib7Zip" \ +QMAKE_ARGS+= INCLUDEPATH+="${L7Z_WRKSRC}/Lib7Zip" \ INCLUDEPATH+="${MIF_WRKSRC}/MediaInfoLib/Source" \ INCLUDEPATH+="${MIF_WRKSRC}/ZenLib/Source" \ LIBS+="${L7Z_WRKSRC}/Lib7Zip/lib7zip.a" \ @@ -42,6 +44,7 @@ QMAKEFLAGS+= INCLUDEPATH+="${L7Z_WRKSRC}/Lib7Zip" \ DEFINES+="MEDIAINFO_STATIC" \ DEFINES+="MEDIAINFO_UNICODE" \ DEFINES+="USE_LIBEXIF" +QMAKE_PRO= ${PORTNAME}.pro LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 # spoof tinderbox: build deps for multimedia/mediainfo @@ -63,7 +66,6 @@ L7Z_VERSION= 1.6.3 L7Z_DISTFILE= ${L7Z_NAME}-${L7Z_VERSION}.tar.gz L7Z_WRKSRC= ${WRKDIR}/${L7Z_NAME} -NO_STAGE= yes .include <bsd.port.pre.mk> P7Z_WRKSRC= $$(cd ${PORTSDIR}/archivers/p7zip && ${MAKE} -V WRKSRC) @@ -75,7 +77,7 @@ post-extract: post-patch: @${REINPLACE_CMD} -e \ - '/LIBS/s|^|#|' ${BUILD_WRKSRC}/${PORTNAME}.pro + '/LIBS/s|^|#|' ${BUILD_WRKSRC}/${QMAKE_PRO} @${REINPLACE_CMD} -e \ 's|/dev/sr0|/dev/cd0|' ${BUILD_WRKSRC}/config.cpp @${REINPLACE_CMD} -e \ @@ -86,35 +88,29 @@ pre-configure: CC="${CC}" CFLAGS="${CFLAGS}" \ CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ P7ZIP_SOURCE_DIR="${P7Z_WRKSRC}" - -do-configure: - @${LRELEASE} ${BUILD_WRKSRC}/${PORTNAME}.pro - @cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \ - ${PORTNAME}.pro ${QMAKEFLAGS} + @${LRELEASE} ${BUILD_WRKSRC}/${QMAKE_PRO} pre-build: @cd ${L7Z_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} \ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} do-install: - ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${DATADIR} - @${MKDIR} ${DATADIR}/translations - ${INSTALL_DATA} ${BUILD_WRKSRC}/lang/*.qm ${DATADIR}/translations - @${MKDIR} ${PREFIX}/share/icons/hicolor/scalable/apps + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR}/translations + ${INSTALL_DATA} ${BUILD_WRKSRC}/lang/*.qm ${STAGEDIR}${DATADIR}/translations + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_logo.svg \ - ${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}_logo.svg + ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}_logo.svg .for size in 16 22 32 48 64 - @${MKDIR} ${PREFIX}/share/icons/hicolor/${size}x${size}/apps + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}_logo_${size}x${size}.png \ - ${PREFIX}/share/icons/hicolor/${size}x${size}/apps/${PORTNAME}_logo.png + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}x${size}/apps/${PORTNAME}_logo.png .endfor .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/deskutils/launchy/Makefile b/deskutils/launchy/Makefile index 59337ad3cf12..64cfc7bfc6eb 100644 --- a/deskutils/launchy/Makefile +++ b/deskutils/launchy/Makefile @@ -13,12 +13,13 @@ COMMENT= Open source keystroke launcher BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs RUN_DEPENDS= ${LOCALBASE}/bin/xdg-open:${PORTSDIR}/devel/xdg-utils +USES= qmake USE_DOS2UNIX= readme.lyx readme.txt USE_QT4= qmake_build moc_build rcc_build uic_build gui network PORTDOCS= * MAKE_JOBS_UNSAFE= yes -NO_STAGE= yes + .include <bsd.port.options.mk> post-patch: @@ -31,14 +32,10 @@ post-patch: ${WRKSRC}/plugins/weby/weby.pro \ ${WRKSRC}/src/src.pro -do-configure: - @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \ - ${QMAKE} ${QMAKEFLAGS} -r Launchy.pro) - post-install: .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/?eadme.* ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/?eadme.* ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/deskutils/nagaina/Makefile b/deskutils/nagaina/Makefile index d3ca566c70ec..3e11f73035ab 100644 --- a/deskutils/nagaina/Makefile +++ b/deskutils/nagaina/Makefile @@ -9,22 +9,22 @@ CATEGORIES= deskutils MASTER_SITES= GOOGLE_CODE MAINTAINER= ports@FreeBSD.org -COMMENT= Notes-taking application based on Qt4 +COMMENT= Notes-taking application based on Qt 4 LICENSE= GPLv2 -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 OPTIONS_DEFINE= DOCS WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -USES= gettext iconv +USES= gettext iconv qmake USE_GNOME= glib20 USE_QT4= corelib gui xml moc_build qmake_build rcc_build uic_build USE_XORG= ice sm x11 xau xcb xdmcp xext xrender @@ -33,28 +33,20 @@ PORTDOCS= CHANGELOG TODO PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.png DESKTOP_ENTRIES= "Nagaina" \ - "${COMMENT}" \ + "Notes-taking application" \ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ "${PORTNAME}" \ "Qt;Office;Utility;" \ - "false" + "true" -NO_STAGE= yes .include <bsd.port.options.mk> -do-configure: - @(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}) - post-install: - (cd ${WRKSRC}/bin \ - && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin) - (cd ${WRKSRC}/images \ - && ${INSTALL_DATA} ${PORTNAME}.png ${PREFIX}/share/pixmaps) + ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} -.for doc in ${PORTDOCS} - (cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR}) -.endfor + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/deskutils/qlabels/Makefile b/deskutils/qlabels/Makefile index ee3910a78630..aa5cc7835b3c 100644 --- a/deskutils/qlabels/Makefile +++ b/deskutils/qlabels/Makefile @@ -12,6 +12,7 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Labels and business cards creating +USES= qmake USE_BZIP2= yes USE_QT4= xml gui corelib qmake_build uic_build moc_build rcc_build WRKSRC= ${WRKDIR}/${DISTNAME:C/_/-/} @@ -21,24 +22,19 @@ DESKTOP_ENTRIES= "qLabels" \ "" \ "qlabels" \ "Office;Qt;" \ - "false" + "true" -NO_STAGE= yes post-patch: @${REINPLACE_CMD} 's|/usr|${PREFIX}|g' \ ${WRKSRC}/qlabels.pro \ ${WRKSRC}/lib/templates.cpp \ ${WRKSRC}/lib/papers.cpp -pre-build: - @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS} qlabels.pro - post-install: .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for doc in Changelog LICENSE - @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} -.endfor + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Changelog ${WRKSRC}/LICENSE \ + ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |