Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= znotes |
8 |
PORTNAME= znotes |
9 |
PORTVERSION= 0.3.9 |
9 |
PORTVERSION= 0.4.0 |
10 |
CATEGORIES= deskutils |
10 |
CATEGORIES= deskutils |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/ |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
12 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
Lines 22-39
Link Here
|
22 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ |
22 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \ |
23 |
"Utility;TextEditor;Qt;" ${FALSE} |
23 |
"Utility;TextEditor;Qt;" ${FALSE} |
24 |
|
24 |
|
|
|
25 |
OPTIONS= NLS "Build with NLS support" on |
26 |
|
25 |
PLIST_FILES= bin/${PORTNAME} \ |
27 |
PLIST_FILES= bin/${PORTNAME} \ |
26 |
share/pixmaps/${PORTNAME}.png |
28 |
share/pixmaps/${PORTNAME}.png |
27 |
|
29 |
|
28 |
post-patch: |
30 |
post-patch: |
29 |
@${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \ |
31 |
@${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \ |
30 |
${WRKSRC}/znotes.pro |
32 |
${WRKSRC}/${PORTNAME}.pro |
|
|
33 |
@${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \ |
34 |
${WRKSRC}/settings.cpp |
35 |
|
36 |
.include <bsd.port.pre.mk> |
31 |
|
37 |
|
32 |
do-configure: |
38 |
do-configure: |
33 |
cd ${WRKSRC} && ${QMAKE} ${QMAKE_PRO} |
39 |
cd ${WRKSRC} && ${QMAKE} ${QMAKE_PRO} |
34 |
|
40 |
|
35 |
do-install: |
41 |
do-install: |
36 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} |
37 |
${INSTALL_DATA} ${WRKSRC}/znotes.png ${PREFIX}/share/pixmaps/ |
43 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
|
|
44 |
|
45 |
.if defined(WITH_NLS) |
46 |
${MKDIR} ${DATADIR}/translations |
47 |
${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations |
48 |
PLIST_FILES+= share/${PORTNAME}/translations/${PORTNAME}_cs.qm \ |
49 |
share/${PORTNAME}/translations/${PORTNAME}_ru.qm |
50 |
PLIST_DIRS+= share/${PORTNAME}/translations \ |
51 |
share/${PORTNAME} |
52 |
.else |
53 |
.endif |
38 |
|
54 |
|
39 |
.include <bsd.port.mk> |
55 |
.include <bsd.port.post.mk> |