diff options
Diffstat (limited to 'graphics/darknock/Makefile')
-rw-r--r-- | graphics/darknock/Makefile | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/graphics/darknock/Makefile b/graphics/darknock/Makefile index d2c3c66ebfeb..0f85cb6cd2ed 100644 --- a/graphics/darknock/Makefile +++ b/graphics/darknock/Makefile @@ -2,26 +2,23 @@ # $FreeBSD$ PORTNAME= darknock -DISTVERSION= 0.3.0 -PORTREVISION= 3 +PORTVERSION= 0.3.0 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Program that can detect edges in images -USE_QT4= qmake_build moc_build rcc_build uic_build linguist_build gui +LICENSE= GPLv2 # (or later) + WRKSRC= ${WRKDIR}/${PORTNAME} -LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 -MAKE_JOBS_SAFE= yes -PORTDOCS= changelog copyright +USE_QT4= gui linguist_build moc_build qmake_build rcc_build uic_build +MAKE_JOBS_SAFE= yes -.if !defined(WITHOUT_NLS) -PLIST_SUB+= NLS="" -.else -PLIST_SUB+= NLS="@comment " -.endif +PORTDOCS= changelog +PLIST_FILES= bin/darknock share/pixmaps/darknock.png DESKTOP_ENTRIES= "${PORTNAME}" \ "${COMMENT}" \ @@ -30,25 +27,36 @@ DESKTOP_ENTRIES= "${PORTNAME}" \ "Graphics;Qt;" \ "false" +LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +.for lang in fr it pl ro sv tr +PLIST_FILES+= %%DATADIR%%/locale/darknock_${lang}.qm +.endfor +PLIST_DIRS+= %%DATADIR%%/locale %%DATADIR%% +.endif + post-patch: @${REINPLACE_CMD} -e 's|/usr/share/darknock|${DATADIR}|g' \ ${WRKSRC}/src/main.cpp pre-build: @${LRELEASE} ${BUILD_WRKSRC}/${PORTNAME}.pro - @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${QMAKESPEC} + @(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 -.if !defined(WITHOUT_NLS) + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${PREFIX}/share/pixmaps +.if ${PORT_OPTIONS:MNLS} @${MKDIR} ${DATADIR}/locale - @${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${DATADIR}/locale + ${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${DATADIR}/locale .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for doc in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor .endif |