blob: 5b341e6f1db6843e1d6661b0fae65f8e43862b26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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+
DEPRECATED= Qt4 has been EOL since december 2015
EXPIRATION_DATE= 2019-03-15
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= qmake qt:4
USE_QT= gui linguisttools_build moc_build rcc_build uic_build
PORTDOCS= changelog
PLIST_FILES= bin/darknock share/pixmaps/darknock.png
DESKTOP_ENTRIES="${PORTNAME}" \
"" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \
"${PORTNAME}" \
"Graphics;Qt;" \
"true"
OPTIONS_DEFINE= DOCS NLS
.for lang in fr it pl ro sv tr
NLS_PLIST_FILES+= %%DATADIR%%/locale/darknock_${lang}.qm
.endfor
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
do-install-NLS-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/locale
${INSTALL_DATA} ${WRKSRC}/locale/*.qm ${STAGEDIR}${DATADIR}/locale
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|