mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
b9398223bd
Approved by: portmgr blanket
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= darknock
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 5
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Program that can detect edges in images
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= qmake
|
|
USE_QT4= gui linguisttools_build moc_build rcc_build uic_build
|
|
|
|
PORTDOCS= changelog
|
|
PLIST_FILES= bin/darknock share/pixmaps/darknock.png
|
|
|
|
DESKTOP_ENTRIES= "${PORTNAME}" \
|
|
"${COMMENT}" \
|
|
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \
|
|
"${PORTNAME}" \
|
|
"Graphics;Qt;" \
|
|
"true"
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
|
|
.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
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/share/darknock|${DATADIR}|g' \
|
|
${WRKSRC}/src/main.cpp
|
|
|
|
pre-configure:
|
|
@${LRELEASE} ${BUILD_WRKSRC}/${PORTNAME}.pro
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/images/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/locale
|
|
${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|